Jump to content

BFD Calendar

  • Content Count

  • Joined

  • Last visited

Community Reputation

69 Excellent

About BFD Calendar

  • Rank
    Sr. Member
  • Birthday 09/20/1959

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location

Recent Profile Visitors

3,750 profile views
  1. You have to place this "<script src="https://maps.googleapis.com/maps/api/js?key=[your_API]"></script>" in the <head> part of your template or "head.inc" or whatever. But you also have to register your site(s) with a Google Cloud Platform https://console.cloud.google.com/apis/credentials for it to allow the API on that site.
  2. @Tom. For what it's worth, this is how I solved my problem, maybe it helps you to find your solution. // DATE CALCULATION $laserdate = date('d F Y', strtotime($feature->lendout_time)); $lasertimestart = date('H:i:s', strtotime($feature->lendout_time)); $lasertimestop = date('H:i:s', strtotime($feature->return_time)); $start_time = new DateTime($feature->lendout_time); $since_start = $start_time->diff(new DateTime($feature->return_time)); $minutes = $since_start->h * 60; $minutes += $since_start->i; $lasertime = gmdate("H:i:s", strtotime($feature->return_time) - strtotime($feature->lendout_time)); // RESULT if($feature->return_time) { echo "<li><span class='verdana'>{$laserdate} -> {$studentspage->title} | {$feature->machine} => <b>{$lasertimestart} -> {$lasertimestop}</b> = {$since_start->h}:{$since_start->i}:{$since_start->s} or <font color='green'><b>{$minutes} minutes - done</b></font></span>.</li>"; } else { echo "<li><a href='{$feature->url}'><span class='verdana'>{$laserdate} -> {$studentspage->title} | {$feature->machine} => <b>{$lasertimestart} -> <font color='red'>busy</b></font></span>.</a></li>"; }; You can see it working here below the Google calendar: https://mekano.info/en/calendar/
  3. I tried it before and it didn't work. Just now made a new api key and set it everywhere and it seems to work. Of course now anybody can get your api key.... I did restrict the usage in credentials but still.
  4. Well I'm wrestling with this already for some time and just gave up for a while. I have an api key in the module configuration, I have billing enabled, my credit card is valid,.... no idea what's missing where.
  5. Just celebrated the creation of my 25000th page on the first website www.birthfactdeathcalendar.net I made with ProcessWire, about five years ago. 25000 pages means over 17000 individual public pages and a few thousand as selectlists (cities, states, countries, occupations,....). All of this would never have been possible with the great support of members here. Thank you all! And the lucky winner is Sabine Pass, Texas, United States, where Jiles Perry Richardson aka The Big Bopper was born on 24 October 1930.
  6. If you want to move an existing PW site to another server I suggest http://modules.processwire.com/modules/process-export-profile/. I just used it for a site and it worked perfectly, copied all files, database, templates, modules and assets. And it's just about fool proof simple. I used Soma's install script (https://processwire.com/download/core/), easiest way to get going.
  7. Ah, got that. It wasn't obvious that the field requirement change on the template would only affect the field on that template and not on another. Phew, all those hidden treasures in PW, I could fill a BFD calendar with discovering just those....
  8. Can I make a field required based on the template where it's used? Field -> Input -> Required (yes) -> Required only if "template!=people". On www.birthfactdeathcalendar.net I have pages about 'events' that require a 'day', 'month' and 'year' value. They are page reference fields. I use the same fields for 'people' pages to store their birthdates, but since I don't always know them the fields are not required there. If I'm right it only works with a selector "field!=something".
  9. We use the search page mostly to check if a student attended the obligatory workshop to use a lasercutter. Every student page has a populated 'stu_programme' field. The search also finds other pages as well of course (tools, machines,....). I finally ended up with this: if($item->stu_programme) { $programme = "{$item->stu_programme->title}"; } else { $programme = ""; } @Zeka This helps of course, since not every student page has a populated 'workshops_list' field. So including both solutions passed all my tests for now, thanks!
  10. I'm getting an error from sending a search in the search box: "Notice: Trying to get property of non-object in /home/mekanoinsa/www/site/assets/cache/FileCompiler/site/templates/_func.php on line 45Fatal error: Uncaught Error: Call to a member function each() on null in /home/mekanoinsa/www/site/assets/cache/FileCompiler/site/templates/_func.php:49 Stack trace: #0 /home/mekanoinsa/www/site/assets/cache/FileCompiler/site/templates/search.php(42): renderNav(Object(ProcessWire\PageArray)) #1 /home/mekanoinsa/www/wire/core/TemplateFile.php(287): require('/home/mekanoins...') #2 /home/mekanoinsa/www/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #3 /home/mekanoinsa/www/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___render', Array) #4 /home/mekanoinsa/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #5 /home/mekanoinsa/www/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #6 /home/mekanoinsa/www/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #7 /home/mekanoinsa/www/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___renderPage', Array) #8 /h in /home/mekanoinsa/www/site/assets/cache/FileCompiler/site/templates/_func.php on line 49 This is the code part in _func.php // markup for the text $programme = "{$item->stu_programme->title}"; $out .= "<div class='list'><div class='listtext'><span class='verdana_18_bold'><a href='$item->url'>$item->title</a></span><br><br><span class='verdana'><b>$programme</b><br>"; $out .= $item->workshops_list->each( "<font color='green'>| {title}</font>" ); // if the item has summary text, include that too if($item->summary) $out .= "<br><br>$item->summary"; // end markup for the text $out .= "</div>"; Weird, it doesn't happen all the time and I can't figure out what makes the difference....
  11. It looks like the Dev Map doesn't show. Safari, Firefox, Chrome on Mac.
  12. A few questions about this Gcal embed: I have more than one Google Calendar but on the PW page I can only see my primary calendar, which is private, but not a secondary. Is it possible to show it as well? Can I change the view from month to week? Is it possible to add or edit events from within PW?
  13. Am I right that this field cannot be used in a FormBuilder form? I'm trying to make a form with a start and stop button to calculate time students spend on one of our lasercutting machines. [edit] In the meantime I found it. Now I just wanted to know if I can have the time 'auto fill in' in a field 'laser_start' as soon as a new form is created, like I can with a Datetime field. And also have a button or picker to enter the time in a field 'laser_stop' when I edit the page created by Formbuilder. Another issue: the Time Format always jumps to 'Minutes (00-59) & seconds (00-59).' when I choose 'Hours (0-24), Minutes (00-59) & seconds (00-59)' upon save in the Details tab.
  14. Happy as it is now. All the covers of the mixtapes have their own vintage cassette image incorporated in one way or another, to pleasure cassette aficionados. Future project will be to put our full Club Moral Stocklist online, basically all cassettes: https://archive.org/search.php?query=club moral stocklist
  15. Just installed the new version and it works like a charm, drastically fantastically! One little thing is that on the Soundmanager demo (http://www.schillmania.com/projects/soundmanager2/demo/cassette-tape/) you can see the tape as a thin line moving from the left reel to the right, that isn't there in the module. I'm really happy with how it looks now. The first original Carl Cryplant thematic mix tapes I did in the 1980s were on real C-90 cassettes.
  • Create New...