dab

Members
  • Content count

    33
  • Joined

  • Last visited

Community Reputation

6 Neutral

About dab

  • Rank
    Jr. Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

845 profile views
  1. @justb3a ......thanks this is even better - perfect!
  2. For some sites the "spam message" might not be approprate So I changed line 215 in SimpleContactForm.module to $this->_("Sorry, but your message didn't pass our %s test. Please try another %s."), and change lines 155 (& the following) & 172 (& the following) in \lib\SpamProtection.php to $this->_('spam'), and $this->_('time'), So the message will read " Sorry, but your message didn't pass our spam test. Please try another time. " Thanks again @justb3a
  3. @justb3a Perfect! Resolved in this version. Many thanks.
  4. justb3a, thanks for such a lovely script! This works perfectly with SimpleContactForm 1.0.0 on Processwire 3.0.42 <?php $scf = $modules->get('SimpleContactForm'); $options = array( 'btnClass' => 'button fit big', 'btnText' => 'SEND MESSAGE!', 'successMessage' => 'Message Sent!', 'errorMessage' => 'Sorry - message send error!' ); echo $scf->render($options); ?> But if you just use this (without specifiying the successmessage) e.g. <?php $scf = $modules->get('SimpleContactForm'); $options = array( 'btnClass' => 'button fit big', 'btnText' => 'SEND MESSAGE!' ); echo $scf->render($options); ?> The form processes (send) correctly, but the form output on the web page after sending is shown as: <p class='form--success--message'>SEND MESSAGE!</p> Showing the 'btnText', rather than the correct 'default success message'. Have I missed someting obvious? I've posted just incase anyone else is having the same issues.
  5. All possible.....for the maps you can select what items you show on your map based on any field (for your specific turtle page): $items = $pages->find("marker_colour=red"); My code here: // LEAFLET MAP WITH BICYCLE ICONS $items = $pages->find("marker_icon=bicycle"); $map = wire('modules')->get('MarkupLeafletMap'); $options = array( 'markerFormatter' => function($page, $marker_options) { if ($page->marker_icon->title) { $marker_options['icon'] = $page->marker_icon->title; } if ($page->marker_colour->title) { $marker_options['markerColor'] = $page->marker_colour->title; } // And the icon colour. This is another text field. Colour values like White, Black or an RGB value are ok here. if ($page->marker_icon_colour->title) { $marker_options['iconColor'] = $page->marker_icon_colour->title; } return $marker_options; }, 'popupFormatter' => function($page) { $out[] = "<strong>$page->summary</strong>"; $out[] = "<a href=\"$page->url\" ><img src=\"{$page->summary_image->url}\" class=\"image fit\" /></a>"; $out[] = "<img src=\"{$page->summary_image->url}\" width=\"200\" height=\"200\" />"; // ** NB: Use escaped double quotes if HTML attributes needed ** return implode('<br/>', $out); } ); and for items from different categories (species for your big map): $items = $pages->find("marker_colour=red|green|blue"); Remember you can use: 'red', 'darkred', 'orange', 'green', 'darkgreen', 'blue', 'purple', 'darkpuple' & 'cadetblue' and any icons from your version of Awesome icons: http://fontawesome.io/icons/ Beneath each map you can summarise revevant posts for each region or each species with the page find function based on an "options field type": $features = $pages->find('species=loggerhead');
  6. Best approach is to just make your template responsive. I've found this template very easy to implement: http://getskeleton.com/
  7. Yes, change lines 165 & 166 in MarkupLoadRSS.module to to 'stripTags' => false, // Strip any markup tags that appear in the feed? (default: true) 'encodeEntities' => false, // Whether to automatically decode and re-encode the entities for all fields (default: true) Works a treat !
  8. @netcarver A fantastic job, very quickly completed. Nice work !
  9. Sorted - I've now got netcarver woking on this
  10. Hi, looking for someone who can help me with adding custom markers to and custom popup fields to a template on a small project... As per these two posts... https://processwire.com/talk/topic/9745-module-leaflet-map/?do=findComment&comment=93661 https://processwire.com/talk/topic/9745-module-leaflet-map/?do=findComment&comment=114967 PM me if you can help. Thanks.
  11. Module

    Error seems to have resolved with new cron. Thanks will try with "/dev/null 2>&1" if it repeats.
  12. Module

    Thanks....No ProCache running. Most odd. I'll try & see if I can find way was causing this.
  13. Module

    I love this module, thanks . All working fine but on Cpanel every time I run script is run via cron it generates an output file in the web root folder e.g. index.html?hash\=d5c0307523750320573253247177dc.9999 Files soon build up when the script is run every 5 min! Any way to suppress the output file (it contains an html copy of the page being updated)?
  14. Success, adding to MarkupGoogleMap.js... (not RCDMap.js!) var ctaLayer = new google.maps.KmlLayer({ url: 'http://googlemaps.github.io/js-v2-samples/ggeoxml/cta.kml', map: this.map }); at line 126... Thanks for help!
  15. ...looks like "RCDMap.js" is a verision of "MarkupGoogleMap.js" from the module (link).