Jump to content

Jonathan Dart

Members
  • Posts

    51
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jonathan Dart

  1. Spex is official now, I've added this to the modules directory =)
  2. Hey @bing, put your crawlers on a leash, it totally disregards nofollow and noindex! It's infinitely crawling one of our sites!

  3. Hi Soma, This thing is sweet and adds a lot for my needs. It's giving me an error when caching is enabled on a page. I get the below error: Notice: Trying to get property of non-object in /app/www/sites/delucas/site/modules/ChromePhpLogger/ChromePhpLogger.module on line 223 Fatal error: Call to a member function getIterator() on a non-object in /app/www/sites/delucas/site/modules/ChromePhpLogger/ChromePhpLogger.module on line 223
  4. And another small update for "lateLoad" which is useful for deferring the loading of third party html/scripts/images. https://github.com/jdart/Spex#lateload
  5. I've updated Spex to include support for "slots" and image preloading. Check out the details below: https://github.com/jdart/Spex#slot--hasslot https://github.com/jdart/Spex#addimage I'd also like to add that there are equivalent procedural helpers available that don't require the $spex variable: https://github.com/jdart/Spex#procedural-helpers
  6. Is this still in the design phase or is it under development?
  7. This is awesome, can't wait to give it a try!
  8. That's fair enough regarding the head.inc etc... I used the convention of a file named _init.php based on the way you use prependTemplateFile in your example site profiles, but spex just automatically calls is before the page render event. addStyles/etc... are in fact using $config->styles internally. They're just there as a bit of syntactical sugar and to handle the compiling of .less files.
  9. Limiting by IP or cookie both have their drawbacks. You can imagine an office with 100 workers all behind one ip address. Cookies can also be deleted. For my needs the implementation is good enough, but if you really wanted to prevent bots taking advantage you'd require users to be logged in to vote. That being said the voted detection could be a lot more sophisticated.
  10. Hi Guys, I'd like to share a module the development team at metric marketing and I came up with. I have a lot of experience with the Symfony framework, and when working with PW I came to miss some of the practices I grew accustomed to when working with PW. This module is aimed at bridging my previous experience with doing things to PW way. I have a big readme on the github project so be sure to check that out to get all the details: https://github.com/jdart/Spex From the readme "The project makes use of lessphp, less.js, jQuery, modernizr, Minify and the ProcessWire Minify Module." There's an example site in the github repo that illustrates how Spex works: https://github.com/jdart/Spex/tree/master/example-site In short your template file isn't responsible for including the head and foot etc... and instead is injected into a layout. In addition to this is adds some conventions for adding css/less/js to the page so that it can be combined and minified. Have a look through it and let me know if you have any feedback.
  11. Hi Guys, I've decided to share my work on a Fieldtype for adding star ratings to page items. I used @apeisa's FieldtypePoll as a starting point. Check out the readme on github for usage: https://github.com/jdart/FieldTypeRate I've got a couple screenshots that should demonstrate the functionality. Feel free to give me any feedback. Regards, Jonathan
  12. #bing tech support just informed me the #bingbot is ignoring rel="nofollow" because it's not the first attribute in my anchor??

  13. Thanks for the feedback guys, this was a can of worms situation. I came to realize I also needed a frontend login form and I leveraged the homepage being viewable by all to accomplish this. I wanted to to have csrf protection in my form so I extended the ProcessLogin core module (https://gist.github.com/jdart/6545755) and called the module in the home template: #home.php echo $modules->get('SpexLogin')->execute(); if (!$user->isLoggedin()) return; Hopefully that will be helpful for someone. Maybe
  14. I just tried to remove the guest view page privilege from the homepage template and got the following message: "TEMPLATE 'HOME' IS USED BY THE HOMEPAGE AND THUS MUST HAVE THE 'GUEST' ROLE ASSIGNED." As a work around I thought I'd create a subpage of the homepage called "restricted" or something like that and put all other pages under that. Is there a better way to accomplish this?
  15. RT @shanselman: "We've found a way to sell the exact same iPhone...a year later. The S...stands for SAME." https://t.co/y8EsozmKxw

×
×
  • Create New...