Recently Updated Topics

Showing topics posted in the last 7 days.

This stream auto-updates   

  1. Past hour
  2. Renewals and Resend Links Hi, Renewal and resend links pages for Visual Page Selector have been added. Use renewals if you wish to renew a Visual Page Selector order whose subscription has expired (1 year). Resend are for orders that are yet to expire. Use this if you can't find or didn't get the confirmation email sent after your purchase.
  3. Renewals and Resend Links Hi, Renewal and resend links pages for Dynamic Selects have been added. Use renewals if you wish to renew a Dynamic Selects order whose subscription has expired (1 year). Resend are for orders that are yet to expire. Use this if you can't find or didn't get the confirmation email sent after your purchase.
  4. Renewals and Resend Links Hi, Renewal and resend links pages for Variations have been added. Use renewals if you wish to renew a Variations order whose subscription has expired (1 year). Resend are for orders that are yet to expire. Use this if you can't find or didn't get the confirmation email sent after your purchase.
  5. Thanks all - was mostly curious if anyone had yet done it, and their decision over how it was implemented. Very much appreciating the discussion!
  6. Renewals and Resend Links Hi, Renewal and resend links pages for Media Manager have been added. Use renewals if you wish to renew a Media Manager order whose subscription has expired (1 year). Resend are for orders that are yet to expire. Use this if you can't find or didn't get the confirmation email sent after your purchase.
  7. thanks for everything @abdus ! I merged the database of the crashed one with the backup db. After some trys it worked again : ) I still don't know how did that happen, added three fields to a template in the backend -> Reno crashed -> Default Admin Theme worked for 5 seconds -> then these errors. It was a PW 3.0.71 installation. Well, hope won't happen in future.
  8. I've faced the same issue, and landed up changing the domain extension to .local instead of .dev due to the ICANN name collision. It's been working like a dream so far. Note that, if you do this, you will need to manually edit your hosts file, as well as your Apache vhosts (shortcuts to all of these are available in the system tray menu) for existing sites.
  9. Today
  10. Margie recommends you to see also a comparison of CMS CRITIC Which is built on the framework of ProcessWire ... Mike Johnson wrote an interesting article citing PW to WP ... On the other hand, this page I like SPAIN CULTURE, but I do not know that government ...
  11. I hope this is the correct place to post this. I currently am building a "dashboard" that displays some stats etc, but also handles login/logout with a form. Currently, when a user uses the form on the homepage, they redirected (if the credentials are correct) to the backend of processwire. However, I was hoping to direct the user back to the dashboard and display an alert (for now until I get a library to handle this). I got it somewhat working if I dont redirect the user. However, if I refresh the page, the alert still "pops up". Does anyone know of a way to redirect to the home page, but then display an alert? My Code to login: <?php if($input->post->user && $input->post->pass) { $user = $sanitizer->username($input->post->user); $pass = $input->post->pass; if($session->login($user, $pass)) { // login successful $session->redirect($dash); } } ?>
  12. Yes. if($input->urlSegment1 == 'bar') { // display photo gallery } else if($input->urlSegment1 == 'foo2') { // display map } else { // display main content } // OR.. if($input->urlSegment2 && $input->urlSegment2 == 'whatever') { // do whatever } else { // blah blah } Have a look the the tut here, especially the second section.
  13. No problem at all -- I'm sure you're quite a busy-bee. Thank you, looking forward to testing it.
  14. At the top of your template files, inside a <?php ?> tag, preferably before outputting anything. You can't send a new header after you've already sent them (i.e. output any data) For example: (in your home.php) <?php namespace ProcessWire; $session->redirect("/about/");
  15. Module

    I've just added this module to a dev site and when trying to call the module for rendering I'm getting an error – Parse Error: syntax error, unexpected ',' (line 8910 of /Applications/MAMP/htdocs/xxx/site/modules/WirePDF/mpdf/mpdf.php) Additional: Looking at WirePDF module, it was saying I had two versions, one in the Pages2PDF folder and one separate one, I think one might be a Handover from a previous attempt to use teh same module. I deleted the Pages2PDF folder and the WirePDF one and did a fresh install, now I get teh error message Compile Error: 'break' not in the 'loop' or 'switch' context (line 2416 of /Applications/MAMP/htdocs/xxx/site/modules/Pages2Pdf/mpdf/classes/svg.php)
  16. Something like this? https://stackoverflow.com/questions/14961556/convert-one-dimensional-array-into-a-multi-dimensional-array
  17. Is it possible to use Pagefile class independent of a Page or Pagefiles class? Looking at Pagefile::__constructor, it needs both $page and $pagefiles to instantiate. I guess they're limited to internal use only. Probably because they're saved in DB
  18. Thanks for your help. I now removed the Pages2JSON module altogether. If I allow display in the browser, i.e. remove if ($config->ajax) I can see the JSON neatly and quickly displayed in the browser. However, When using it in my search-form, it's not doing anything. It calls my autocomplete page, but when I check the contents in Google Chrome > Network > XHR, it's always empty. Status code 200, but no content. My JS looks like this: var actionURL = '<?=$autompleteURL?>'; // Save form action url in variable $.typeahead({ input: '#q', hint: true, dynamic: true, debug: true, display: ["title", "project_desc_short"], source: { url: actionURL // Ajax request to get JSON from the action url }, callback: { // Redirect to url after clicking or pressing enter onClickAfter: function (node, a, item, event) { // window.location.href = item.url; // Set window location to site url // console.log(item.url); } } }); I've added dynamic: true + debug: true hoping it would give me some hints, but I don't get JS errors either. Do you have any idea what I've been missing?
  19. OK, found the culprit, is the static variable $alreadyFormatted which is set to true at line 527 (module version 106): 525 public function formatExtraValue(HookEvent $event) { 526 if (!self::$alreadyFormatted) { 527 self::$alreadyFormatted = true; I don't know its purpose, but in my case (a loop retrieving captions for an image from every blog post) it stops the text formatter from processing any item after the first one. So I commented it out, I'll see if anything goes wrong.
  20. Also, with @adrian's Tracy Debugger module, you can try this to identify possible modules causing the issues: https://processwire.com/blog/posts/introducing-tracy-debugger/#module-disabler-panel Also there is a tool which might help tracing down problematic hooks: Event Interceptor Panel
  21. Thank you! It works like this: <img <?php echo $page->images->first()->srcset('featured-image'); ?>>
  22. Mhh... I think I ran into this problem before and solved it somehow, but can't remember how... 'item_tpl' => '<a href="{url}">{title} <span>({numChildren})</span></a>', The {numChildren} counts hidden and unpublished item as well.
  23. Thanks guys.. @abdus I'm not familiar with a lot of your method but I'm looking forward to reading up on them and improving my PHP. I'm not familiar with return for example. In the short term I might break down my single PHP block into smaller more manageable blocks and rework it a little. I did try using your example to test it and I got a server error but aside from that am I correct in thinking that the actual Related Product heading isn't based on any conditional. @szabesz and @fbg13 thanks for the tips.
  24. module

    Awesome, thanks!
  25. Yesterday
  26. Sorting by published works for the last two years or so. (Not sure about before that or about PW 2.6 though) $pages->find('template=MyTemplate, limit=15, sort=-published') most certainly works.
  27. $field = []; $childrenByField =[]; foreach($children as $child) { $tableCount = count($child->prod_vid_bandwidth); if($tableCount>0) { foreach($child->prod_vid_bandwidth as $item) { $value = number_format($item->band_lo,1,'.',''); $field[$value][] = $child; } } } foreach($field as $f => $items) { $childrenByField[] = "$f"; } if(!empty($childrenByField)) $prod_vid_bandwidth_lo = implode(" OR ", $childrenByField); $field = []; $childrenByField =[]; foreach($children as $child) { $tableCount = count($child->prod_vid_bandwidth); if($tableCount>0) { foreach($child->prod_vid_bandwidth as $item) { $field[$item->lo_unit][] = $child; } }} foreach($field as $f => $items) { $childrenByField[] = "$f"; } if(!empty($childrenByField)) $prod_vid_bandwidth_loU = implode(" OR ", $childrenByField); $field = []; $childrenByField =[]; foreach($children as $child) { $tableCount = count($child->prod_vid_bandwidth); if($tableCount>0) { foreach($child->prod_vid_bandwidth as $item) { $value = number_format($item->band_hi,1,'.',''); $field[$value][] = $child; } }} foreach($field as $f => $items) { $childrenByField[] = "$f"; } if(!empty($childrenByField)) $prod_vid_bandwidth_hi = implode(" OR ", $childrenByField); $field = []; $childrenByField =[]; foreach($children as $child) { $tableCount = count($child->prod_vid_bandwidth); if($tableCount>0) { foreach($child->prod_vid_bandwidth as $item) { $field[$item->hi_unit][] = $child; } }} foreach($field as $f => $items) { $childrenByField[] = "$f"; } if(!empty($childrenByField)) $prod_vid_bandwidth_hiU = implode(" OR ", $childrenByField); unset($tableCount); Here's the code that finally output my table fields. Note that my floats were being converted to integers so I had to force the display of their decimal places with number_format(). Originally, I hoped to cycle through the fields and output standardized strings of HTML based on their type and structure, but in the end I am omitting too many fields, and need to specialize the output code a little too much to make that feasible. So I am working my way through 170 fields, but hopefully this will put me ahead in this project when I'm done (toward integrating a Pages2PDF tie-in from these fields later), rather than being as behind as I feel! Thanks so much to everyone who chimed in to give me a hand!
  1. Load more activity