Jump to content

ryan

Administrators
  • Posts

    16,772
  • Joined

  • Last visited

  • Days Won

    1,530

Everything posted by ryan

  1. It's more of a reverse-honeypot field. Rather than excluding a form based on a populated value, it excludes based on an unpopulated value. This can be even more effective than a regular honeypot, but it does rely on Javascript. In order to eliminate the problem of false positives, you want to hide the CommentForm with CSS and unhide it with Javascript at the same time that you add the security field (as in the examples above).
  2. ryan

    ProcessWire on the web

    The opensourcecms.com folks are good people. But I'm not sure they fully understand the extent to which those votes are manipulated. I'm still hopeful they will fix this someday, by at least tying it to some kind of recognized account system (even Facebook). But they will have to throw out the votes they've collected in the past, as they are largely noise. Once they do correct this system and make it honest, we will gladly have ProcessWire there, and I know other CMS projects that will follow suit.
  3. While I'm not in the camp that wants my URLs to go outside my site structure, I can see that it's a need some may have. And you've brought up a very good solution here--we could accomplish this pretty easily. SEO would not be a problem because the module that would implement the solution would hook into the Page::path function to ensure that it's reflecting the alias rather than the original. It would also not be a stretch to have the module perform a 301 to the alias when the page is accessed at the original URL.
  4. Thanks for adding to the modules directory. I have updated your listing with some additional text description and your screenshots. Feel free to change if you'd like: http://modules.processwire.com/modules/delegate-profile/
  5. ProcessWire will also handle this for you automatically (with redirects) if you install the Page Path History module (already included with the core).
  6. To Geocode from the API side, you need to set the address field and save the page: $page->map->address = '411 Holly Road, Hopkins, MN'; $page->save(); If that doesn't do it, you may sometimes need to give $page a hint: $page->trackChange('map'); $page->save(); If it still doesn't work, you might want to double check that your PHP install supports allow_url_fopen. The 'status' field is not meant to be set by you. It is set by Google Maps geocoder.
  7. Some very impressive functionality here! Thanks for your efforts here. Nicely coded and documented too. Please add to the modules directory when you get the chance.
  8. If you need the same form in multiple languages, the best way to go is create multiple forms. Create the first one, then create the same form in another language -- Form Builder makes this as easy as copy+paste with it's "export" tab on the form, and "import" option when creating a new form. This is preferable to a single form with multiple languages because it ensures that the form entries/results are separated by language.
  9. I had thought that the Options +FollowSymLinks was necessary for the RewriteEngine. Maybe it's not. Looks like Drupal includes that directive in their htaccess file, but MODx doesn't.
  10. MapMarker was originally built as an example module, ready for people to modify and extend. This sounds like a good extension. Admittedly I have no idea how to do it, but would definitely be interested if anyone does come up with something like this.l
  11. I can't seem to duplicate here. Can you double check that your new Concat field is attached to the template used by your selectable pages?
  12. "Manual drag-n-drop" is the unselected state, meaning it's the one state that wouldn't store anything in the DB. I've tried to duplicate, but not sure I understand. I've tried changing between Manual and other sort fields, changing back to manual, and drag-sorting pages, but all seems to work. Is there anything else I need to do to duplicate?
  13. That's correct, that is what it has populated in there by default. Hiding your admin URL is a good practice. But if strong passwords are used, as they should be, there's no security problem with having a known admin URL either.
  14. Your best bet is to make your default value the unselected state. All it usually takes is adding a little text description to your field to say "Leave blank for [default]". This is something that will scale and can be plugged into existing sites without having to go back and change existing pages to have the right value. More information in this thread:
  15. Thanks for testing. I'll upgrade the dev branch here.
  16. This type of error can usually be resolved by doing this: rm /site/assets/cache/Modules* This is something that ProcessWire does internally when it detects an upgrade. So you may be able to resolve it just by hitting reload on the page once or twice too.
  17. Pete, you can replace your find()->count() lines with just count(), which would be a little more efficient, i.e. $count += wire('pages')->count("authors=" . $u . ", include=all");
  18. ryan

    Happy new year!

    I removed the joke links, so they shouldn't be there anymore. Is anyone seeing any more links? Matthew, in your Firefox go to Preferences > General > Manage Addons. Personally, I disable all addons in Firefox. Then in the left menu, click "Extensions". Look for anything you don't recognize or don't need and disable it.
  19. ryan

    Happy new year!

    No that stuff is real. I go to that page on Amazon whenever I need a good laugh. Read a few of the reviews and you will fall out of your chair laughing. It is a real product, basically today's equivalent of a stink bomb prank, but apparently much stronger. I don't see those script tags on any of our sites. Anybody else? I think they are getting dynamically inserted by a browser extension. Have you tried another browser?
  20. ryan

    Happy new year!

    Matthew, regarding the Happy New Year links: I thought that either you were kidding, or you weren't and could use a laugh. So I manually linked them myself, just for fun. I did a search for "worst designed websites ever" and used those for the links. Sorry guys, my sense of humor sometimes gets the best of me. I'll unlink them. With a clearer head this morning, it seems clear that you really are seeing actual spam links and you aren't kidding? It really does sound like browser spyware to me. Also, you mentioned this Skimresources thing, which I'm not familiar with. Can you explain more about where you are seeing this? We are not using any affiliate networks or advertising here, so this is not coming from processwire.com (unless there's some problem with IP.Board). I'm guessing you've got a browser extension that is inserting <script> tags into sites that you visit to automatically link words. Can you try from another browser to double check? For instance, if in Chrome, try Firefox, etc.
  21. The ProcessWire 2.3 installer now lets you set the admin URL as part of the install process.
  22. This should now be fixed on dev.
  23. Thanks guys. Btw, this module was prompted by the need that Renobird mentioned for multiple field labels with the Page reference input labels.
  24. Turns out that this was going to add more complexity than I was comfortable with for this field configuration. For instance, you've got an asmSelect and can select fields, but that only says what fields and order. It doesn't say what punctuation or other words you might want in there. For example, if I wanted to have my label composed of fields "first_name last_name" then I'd just want a space separating the two fields. But if I wanted it as "last_name, first_name" then I'd want a comma and a space separating the fields. Furthermore, lets say I wanted "last_name, first_name, Age: years_old". So it seems like more is needed than just the ability to select multiple fields. As a result, I made the FieldtypeConcat module instead, which takes care of all these needs and more. I had the subject of this thread in mind when creating the module, but there are plenty of other situations where this module may be worthwhile.
  25. The problem there is that you've got a Process module that is 'autoload', and Process modules aren't meant to be autoload except in specific circumstances. I'd suggest extending WireData rather than Process. Another issue is that you don't want to add that script to every page like you are doing now. You only want to add it when it's needed. So you'd hook into something like ProcessPageEdit::execute instead. This would ensure that your JS is only loaded when it is needed. public function init() { $this->addHookAfter('ProcessPageEdit::execute', $this, 'addScript'); } public function addScript(HookEvent $event) { $this->config->scripts->add($this->config->urls->AdminJQuery . "adminjquery.js"); }
×
×
  • Create New...