Jump to content

BFD Calendar

Members
  • Posts

    400
  • Joined

  • Last visited

About BFD Calendar

  • Birthday 09/20/1959

Contact Methods

  • Website URL
    http://www.performan.org

Profile Information

  • Gender
    Male
  • Location
    Belgium

Recent Profile Visitors

7,141 profile views

BFD Calendar's Achievements

Sr. Member

Sr. Member (5/6)

80

Reputation

  1. Works simple and effective. But is it possible to have the sound start playing automatically? And maybe hide the player?
  2. On an 'exhibitions' template I have a Page Auto Complete field 'works_id_list' with a multiple page array, where I can choose works that were to be seen in this exhibition. On the front page, the list of works can be seen. Most of the 'works' have the parent 'Works', but recently I want to add pages from a different parent as well. I can add them in the 'Custom find' or 'Selector string' part, and find/select them but they are not validated because they are not in the parent 'Works'. Although it says in the template part of 'selectable pages' "Select the template of the pages that are selectable. May be used instead of, or in addition to, the parent above." there seems to be no way to remove the parent, only change it to a different one. Any way to solve this?
  3. By trial and error I managed to solve the issue. I had a 'qrcode' field on the product template and for some reason that didn't work. By removing the field in the PW template and the php file and even removing the module the error was gone. No idea what one had to do with the other but anyway, problem solved.
  4. Just recently I'm getting errors when viewing or editing product pages, still using Padloper 1.3.0 on PW 3.0.123 with no recent upgrades or changes. When just trying to access a page the error is Error: Exception: Method Field::getContext does not exist or is not callable in this context (in /home/mekanoinsa/www/wire/core/Wire.php line 519) When trying to edit the error is Error: Exception: Method Field::getContext does not exist or is not callable in this context (in /home/mekanoinsa/www/wire/core/Wire.php line 519) #0 /home/mekanoinsa/www/wire/core/Wire.php(386): ProcessWire\Wire->___callUnknown('getContext', Array) #1 /home/mekanoinsa/www/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___callUnknown', Array) #2 /home/mekanoinsa/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Field), 'callUnknown', Array) #3 /home/mekanoinsa/www/wire/core/Wire.php(445): ProcessWire\Wire->__call('callUnknown', Array) #4 /home/mekanoinsa/www/site/modules/FieldtypeQRCode/FieldtypeQRCode.module(326): ProcessWire\Wire->__call('getContext', Array) #5 /home/mekanoinsa/www/wire/core/Wire.php(389): ProcessWire\FieldtypeQRCode->___wakeupValue(Object(ProcessWire\Page), Object(ProcessWire\Field), '') #6 /home/mekanoinsa/www/wire/core/Wire.php(416): ProcessWire\Wire->_callMethod('___wakeupValue', Array) #7 /home/mekanoinsa/www/wire/core/Page.php(1422): ProcessWire\W Any idea what's going on?
  5. Using Padloper on a daily basis at our University Modelbuilding Lab to sell materials and charge for laser cutting (https://www.mekano.info/en/materials/). The actual shop part is only accessible to our staff members as we only sell stuff at our counter. At busy times we sell over 100 products a day.
  6. @Jozsef Used Ryan's TexformatterVideoEmbed and it works now. Thanks for guiding me there.
  7. Anybody using this module succesfully or willing to test if it works?
  8. As of today the module doesn't embed YouTube videos anymore. I made a new page with a video embedded and the video didn't show. Previously I had two pages where the video was alright. Since I cleared the video cache in the module they don't show up anymore either. PW 3.0.98 Module version 1.2.5. Sample page that used to have a video: https://www.performan.org/works/hit-the-deck-robin/
  9. Simple, but nevertheless many thanks! Should be if($user->hasRole('student')) {
  10. Alright, and how to introduce this into my setup where I want to echo "x" if role = 'admin', echo "y" if role = 'student' and echo "z" for everybody else?
  11. Can the access roles be used in an 'if - else' condition as well then? I like your module because it's a simple login and protection, we have 2000 students and I don't want any of them getting near the admin interface. Maybe not for our 'materials' shop, but for some online courses and tests I'll probably continue using it.
  12. I was wondering if it's possible to have a 'protected' and a 'non protected' version of a page. Now I'm using this code: if($user->isLoggedin()) { // SHOP FOR ADMIN echo "{$materialsimage} &nbsp;&nbsp;<a href='{$p->url}'><span class='verdana_14'><b>{$p->title}</b></a> - <span class='verdana_14'>{$p->pad_price} &euro;</span>.</span><br>"; echo $modules->get("PadRender")->addToCart($p, $askQty = true, $page); // $p is the product, we do ask quantity, we redirect back to current page echo "<hr>"; } else { // SHOP FOR STUDENTS echo "{$materialsimage} &nbsp;&nbsp;<a href='{$p->url}'><span class='verdana_14'><b>{$p->title}</b></a> - <span class='verdana_14'>{$p->pad_price} &euro;</span>.</span><br>"; echo "<hr>"; } I want to change that into sections SHOP FOR STUDENTS and SHOP FOR VISITORS, where visitors can view what we sell but only students (logged in with PageProtector) can actually buy things. Is it possible in the Page Protector $options? Or what should go into the if() else() part to make in work?
  13. We have a website with information about our modelbuilding workshop for students, https://www.mekano.info. Until now reservations for several things are done by staff in the admin area. The Padloper webshop is also only used by staff, students can see the list of materials but not 'buy' since we sell at a counter only. Because of health safety measures we want to change a few things and have students do more from individual accounts; online courses and tests, reservations for workshop use, tools and equipment, lasercutting, 3D-printing and so on, and buying materials from the webshop, which they can pick up safely when paid. We already have about 2000 students in our website, those pages are used to do all the above by staff and also to check if a certain student finished a course before being allowed to use specific equipment. Some questions; will ProcessWire handle 2000+ user accounts with various privileges (lasercutting:yes, 3dprinting:yes, cncmilling:no, ...), letting students only acces pages/forms (Formbuilder module) for which they have the right privileges, have a simple login without getting into the admin interface (Page Protector module?). Can privileges update automatically when an online test was successful? All not too much burdening our website as it is quite slow with over 30000 pages now. Any other modules that could be helpful.... Thanks for advice!
  14. For some reason I couldn't upload a picture/screenshot - keeps queued forever.... The fonts are considered as pages and they are all in the top 10, although nobody sees them as a page. Anyway these are the top pageviews in a week time: /index.html - 382 - avg time 0:02:39 /site/templates/styles/fonts/optistymie-boldcondensed.ttf - 507 - avg time 0:00:05 /site/templates/styles/fonts/NobelRegular.ttf - 502 - avg time 0:00:17 /site/templates/styles/fonts/CentSchbookBdCnBT.ttf - 500 /site/templates/styles/fonts/NobelBold.ttf - 235 /site/templates/styles/fonts/NobelBoldCondensed.ttf - 123 Total pageviews is 32.343 - avg time 00:02:07. Can I find info here on how to use Google fonts in PW? Thanks,
×
×
  • Create New...