Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

52 Excellent

About tinacious

  • Rank
    Full Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Toronto, Canada
  • Interests
    ProcessWire! Web design & front-end development, Responsive Design, Accessibility, WordPress, Drupal, PHP frameworks.

Recent Profile Visitors

4,945 profile views
  1. This looks like a huge time-saver. Thanks for this!
  2. Thanks for the reply but that just mangles it further, adding 2 additional mangled characters.
  3. Hello all. Thank you in advance for your help. I am making a bilingual website in French and English using ProcessWire. It's my first time doing a multi-language site. I am storing a date object with ProcessWire in the database using the date field and retrieving it in PHP. I am detecting the language that the user is viewing the site in and then setting the PHP locale like this in a PHP object called $strings: setlocale(LC_ALL, ($is_english ? 'en_US' : 'fr_FR')); Then when I am getting the date, I am doing this: $formatted_date = strftime($strings['date_format'], $page->date); The characters with accents (like décembre) are getting mangled. Am I doing something wrong? I haven't been able to figure it out. When the client adds French characters in the TinyMCE or other fields, they are not mangled, which leads me to believe I may be doing something incorrectly with the above code. Is there an optimal way of retrieving dates in different languages for multi-lingual ProcessWire sites? Thanks!
  4. Hi all. Does anyone have any experience with creating a REST API for ProcessWire? Would this be feasible? I briefly looked into the PHP to JSON library used by the WordPress JSON API plugin. Is that the right approach to take with ProcessWire or would you recommend another approach? Thanks!
  5. Hi all, I've had some issues during the migration process with using a remote database including login and performance issues. I was wondering if there were specific measures to take into account when using a remote database. My first issue is the performance. I noticed that now since I've been using a remote database that the site takes longer to load. Is there anything I can do to improve the site performance like cache the database or anything? Everything is very slow, especially in the admin pages when loading the pages list, editing an item, etc. My other issue was not being able to log in to the site. I would get the "Login failed" error and sometimes "This request was aborted because it appears to be forged." I have tried a number of suggestions I've found on the forums including making sure my assets folder has permissions 777, deleting the contents of /assets/sessions/, changing the session name to $config->sessionName = session_name(); or just commenting it out altogether. None of these worked. This was the line in my config.php that worked: $config->protectCSRF = false; With that suggestion also came the disclaimer that it may not be the best approach. I want to use best practices so would like to know what the best way for working with remote databases securely would be? Thanks for your help.
  6. Thanks Adrian, I decided to just use the Google Maps API and the values created by the ProcessWire module to assist in that. I used the visibility: off for the POI and that worked. Thanks.
  7. Thanks but this is the code I have: In the head: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> And then in the body: <?php // Render the map $map = $modules->get('MarkupGoogleMap'); echo $map->render($page, 'address_map', array('type' => 'ROADMAP')); ?> Where would I put the code you suggest?
  8. I'm attaching a screenshot. Timeless Nails, Tango Palace, etc. I hear they're called POI (points of interest) but I am unsure how to add any settings for disabling these with the module. Thanks!
  9. This is an amazing module! I've only scraped the surface but just from reading through this thread it seems very powerful. I was wondering if there was a quick way to hide the businesses that show up on the map. I'm using this to make a restaurant site and I'm trying to avoid having other restaurants (but businesses in general) pop up on the map.
  10. Hi all, I'm currently making a web app using ProcessWire. It will be in Danish and I am having trouble making the date render out in Danish. Any suggestions? Thanks!
  11. I got this error too. Turns out I had put /assets/files/ in my .gitignore and cloned it on a new machine, I suppose in an attempt to de-clutter all my testing uploads and what not. It wasn't working because the /files/ directory wasn't there. I just created the folder "files" manually and the error went away.
  12. Hi everyone, I made a walkthrough of a web app I built using ProcessWire for the Tenova Group mining company. They needed an intranet application to keep track of their daily plant operations. I designed and developed a ProcessWire solution that would allow registered employees at Tenova HYL to record events regularly in an event log. Storing all of the events in this manner would allow registered users to find the events they're looking for using keyword search, date filters as well as filters based on other criteria. Each event also allows the user to upload supporting files for download, such as Word documents and PDFs, as well as upload relevant images to be displayed in a modal window. A high-performing, powerful solution using the ProcessWire CMS. Read about the project here in my portfolio. See the video here: Tina Holly tinaciousdesign.com
  13. Amazing! This definitely made the magic happen. You're amazing, thank you so much for your help!
  14. Hey Ryan, Thanks for your help. Here's the HTML I'm using. The text inputs are jQuery UI datepickers. <div class="filters"> <h3><a href="#">Date Filters</a></h3> <form action="<?php echo $page->url?>" method="post"> <div class="inputs"> <label for="date_start">From</label> <input type="text" id="date_start" value=""> <label for="date_end">To</label> <input type="text" id="date_end" value=""> <input type="submit" value="Filter Date" class="button"> </div> </form> </div> <?php if($input->post->date_start) { $startdate = strtotime($input->post->date_start); if($startdate) $selector = "date_start>=$startdate"; } if($input->post->date_end) { $enddate = strtotime($input->post->date_end); if($enddate) $selector = "date_end<=$enddate"; } I'm not doing this correctly I'm sure, I don't have much experience with creating forms in ProcessWire. Visual attached. Hopefully it doesn't add confusion but the HTML id's for the inputs are the same as their field name in ProcessWire.
  15. Hi everyone, I'm wondering what the best way to sort a page by date is. I have a few pages that render a list of pages based on specific criteria, e.g. template. I want to provide 2 date pickers on each of those pages to allow users to search by date range on that specific page. I'm wondering what the best way to go about it is. The date has formatting attached to it. I'm wondering if I should use the unformatted version instead of the formatted one. Would this make it easier to work with in this situation? I was thinking of using jQuery UI datepickers and a button to submit the form and apply the date range filter to the results that are rendered on the page. if($page->id == 1) { $events = $pages->get("name=event")->children; } else if($page->name == 'users') { $events = $pages->find("created_users_id=$username, template=log-item"); } else { $sort_type = $page->template; $events = $pages->find("$sort_type=$page"); } if(count($events)) { foreach($events as $event) { // ... } } The date I will be working with has been stored in the $page->date_start field. Currently it is formatted using ProcessWire's options. I'm wondering what the best way to tie date filtering functionality into the above query would be, if even possible, and if not, which way should I go about doing it? Thanks!
  • Create New...