Jump to content

ryan

Administrators
  • Posts

    16,715
  • Joined

  • Last visited

  • Days Won

    1,517

Everything posted by ryan

  1. 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.
  2. 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.
  3. 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.
  4. 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
  5. 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?
  6. "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?
  7. 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.
  8. 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:
  9. Thanks for testing. I'll upgrade the dev branch here.
  10. 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.
  11. 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");
  12. 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.
  13. 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?
  14. 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.
  15. The ProcessWire 2.3 installer now lets you set the admin URL as part of the install process.
  16. This should now be fixed on dev.
  17. Thanks guys. Btw, this module was prompted by the need that Renobird mentioned for multiple field labels with the Page reference input labels.
  18. 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.
  19. 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"); }
  20. I'd probably go for the 27" iMac too. It would just make everything feel better as it's kind of like adding a work of art to the room. A 15" Macbook Pro with Retina screen might also be worth considering. I use a 2008 Mac Pro with 30-inch + 24-inch Dell screens. The main benefit of the Mac Pro is that it's extremely upgradable and lets you get another few years out of the system that you might not be able to get out of Apple's other offerings. But I wish Apple was continuing to update the MacPro line more consistently, as the one they are selling today (4 years later) is not that much different than the one I have. it's kind of hard to justify a Mac Pro now. But I think this system will keep me going for another 2-3 years. If Apple ever puts a retina screen in the iMac at a good price point (as I'm guessing they will), that would be ideal.
  21. New things get added too. Once 2.3 is out, I'm going to try and go through everything and track down what new stuff should be added to the docs and cheatsheet. I think eq() has been there since the beginning, though it's admittedly one I don't use often (easy to forget it's there).
  22. ryan

    Happy new year!

    10 hours to go here in the US (Eastern). Happy new year everybody!
  23. I'm not sure what it could be, as I've not seen that before. But I'm wondering if a PHP cache (APC, eAccelerator, etc.) might have been interfering here?
  24. Not sure, but I'll check in to it next time I'm working with the files/images inputfields. It is relatively easy to do from the API though, as you can call $page->images->removeAll(); for example.
  25. Something else good to say about ServInt is that they've been routinely upgrading the capabilities of their existing accounts over time, without asking for more money. In my case I have an Essential VPS account I bought with them years and years ago. The account doesn't stay at the specs you bought it at. If the capabilities of your plan gets upgraded for new/prospective customers, then it gets upgraded for you too. You don't even have to ask. It just happens and they let you know after the fact that "you now have an extra 10 gigs of space", for example. ServInt is good at keeping the customer happy in the long run. This is different from other hosts I've dealt with, and am currently dealing with. I've had a account with PowerVPS for as long as I've had one with ServInt. It's also been quite reliable, but it is configured identically to when I purchased it years ago. The ServInt one is now much more capable than the PowerVPS one, despite the fact that they started the same and cost the same. Now I am at the point where I'm looking to get rid of the PowerVPS one just because it's no longer competitive.
×
×
  • Create New...