Jump to content

Pete

Administrators
  • Posts

    4,035
  • Joined

  • Last visited

  • Days Won

    66

Everything posted by Pete

  1. I don't know about anyone else but I'll definitely be using some of this code to improve my own sites.
  2. I think you could just invalidate it by setting the expiry to zero: $cache->get('your-unique-name', 0); but I'm not sure whether that would remove any cache files if that's what you're looking for?
  3. Downloading now - very excited about this!
  4. Best cross-browser way I've found is a bit of jQuery and cookies. If you set your base stylesheet up, then all your colour variations as separate stylesheets, but tie them to a unique body id (so if you have an orange scheme, set all your styles in your orange stylesheet to be prefixed with #orange for example) then you just need to include ALL the various stylesheets in your <head> area and use some jQuery to change the body ID on a button click. Something like (untested): $('#orangebutton.click(function () { $('body').attr('id', 'orange'); }); Then your orange styles would kick in automatically. You'd also need some cookie code too in your JS to save that, but I'm typing quickly and don't have that code to hand - Google jQuery and cookies, but I think the code I used was just vanilla Javascript functions. EDIT: Forgot to mention that when they move to any other page from here, you could create a session variable based on that cookie too if you like - this way with Javascript means the page doesn't have to reload though. I've done both on one site once before, which could be a bit overkill.
  5. Hi folks I thought I'd post up a quick, basic tutorial of how to get started with Github and not have to learn any of the command line code. It's still recommended that you learn the basic commands, but this is aimed to help Git newbies like me get their modules on Github with the minimum effort possible. Check out the PDF below and have fun GitHub for Windows.pdf
  6. @ryan - I just updated a few modules and the date added date shows as today as well, whereas only the date updated should have changed.
  7. Since it's a tech-related event it would be great to be able to get some sort of video feed for some of the speaking parts of the event (death-by-Powerpoint ), even if it was just uploading them to Vimeo afterwards. Just a thought - I'm sure there are more hi-tech solutions, but since something goes wrong at presentations at the best of times it's sometimes better to aim low with technical elements
  8. I don't think the percentage of popularity by country is any different than WordPress, it's just that WordPress has the advantage of having been around so long that it's seen as the only option for blogging. It doesn't hurt that it's on most one-click installers distributed by hosting companies either. MODx is an interesting case because it's a lot less well known than WordPress but has been around longer than ProcessWire. As such, as more people have adopted it they found that they needed to roll out native-language forums for Russia and Japan where it hit off nicely by the look of it (they rolled out a lot of other language forums too, but I mention those two specifically just because both of those countries seem to have a huge number of native-language websites on the Internet in comparison to other languages). I think over time it will become more popular across the world but I'd hazard a guess that the real marketing push won't be until after the new website is up and running. It's already picking up quite a pace here in terms of new users and forum participation, but the advantage with WordPress is that they have time on their side as well as a few hundred million sites with "powered by WordPress" on the bottom,l. I would suggest something similar be added to the ProcessWire blog profile when it's ready, along with maybe trying to package it for web hosts as a one-click installation.
  9. Ah right, so presumably there was no space for PHP to create the session file - that would explain it.
  10. I saw that but didn't comment I've no idea why the software allows you to like yourself but it does...
  11. I was going to suggest something like this too - having it check for necessary functions and if it can't find either a suitable copy or unzip method then instead of the download option erroring, it simply pops up a modal informing the user why it can't install it automatically, steps to solve this (ask webhost to enable X, Y or Z) and the link to simply download the module as well as generic installation instructions (just covering all bases ). I'm finally going to download this now I have five minutes, but I already know how awesome it is from the comments and screenshot above
  12. He perfected his clone() function in PW and it now clones humans too
  13. Chris - your English is far better than my German and reads well so don't worry about that - I always feel bad when people whose first language isn't English come to forums and apologise for their English when I can't speak much of their language "Wilkommen bei ProcessWire" is about my limit this morning I agree with diogo's points above. I'm sure someone made a module that allows for good blog-like tagging of pages (a specific tag fieldtype that was a bit like Wordpress) but can't seem to find the link - does anyone else know where this is? I have a feeling it might have been one of Nico's modules. As a long-time MODx user ProcessWire is now my main choice (and only choice) of CMS. It's the most flexible CMS I've ever worked with and every other system you use will feel too restrictive in comparison. There's nothing I could do in MODx that I couldn't do in ProcessWire - often it was a LOT easier in ProcessWire too! As an example, see this site: http://www.strategycore.co.uk/ - that all used to be MODx and now it's ProcssWire using a lot less lines of code than I had before. It does require that you learn a little bit of programming, but with a few examples you should get along just fine. I'd recomment the walktrhough tutorial here: followed by other tutorials in this forum: http://processwire.com/talk/forum/13-tutorials/ but often it's simple enough just to start building something and ask questions - we're happy to help. The Skyscrapers demo site is based on an older version so I don't think ryan has that available to download because a few things have changed, but the tutorials above will probably give you a better (gentler) place to start from anyway. Hope that helps
  14. What he said
  15. Soma - nik posted the answer at the same moment you hit reply, so check his post before yours EDIT: Oh, actually you already saw it as you already "Like" it.
  16. I'm sure you'll be fine as a presenter - that video on the homepage is all one take right? Right? I know it isn't, and I feel your pain. My problem is I type far more more words than necessary to get the point across sometimes
  17. I'd like to be there, cost-permitting. There'll be an addition to my family to consider (about 7 months old) but I'd like to be there if there's a lot of interest from others
  18. Fair enough I just noticed the Newsletter Tool link in your menu too - what's that?
  19. I don't like this... I LOVE IT I understand that this is a work in progress, but I think it would make sense if this were eventually merged with the actual modules page in the PW admin once it's tested.
  20. Didn't know whether we could grab images in an img tag via the BBCode library you'd used, but it males sense that you would be able to now I think about it since that ability has been around since the invention of BBCode, so that's handy. You certainly managed a lot in one day! If I had days where I could pull off that amount of work then I'd I'd have less personal projects in the planning stages I agree with you on all the other points, and I like the idea of a module installer inside ProcessWire I foresee two download URLs being commonly used (I've used them both) - one is the direct link to the GitHub download and the other one is the direct link to an attachment on the forums. I guess it would be a case of somehow checking if a given URL is trying to pass the module installer a zip file and if so then grab it, else link to the download page. I'm also guessing this is why you ask people for the class name, since inside a non-Github zip file the structure could be a bit odd, so being able to search for a file called ClassName.module within a zip file's folders would allow you to correctly install the module in the right place (for example in the event anyone zips up an unnecessarily long folder structure along the lines of /my/first/modules/doodah/MarkupSitemapXML/ which contains MarkupSitemapXML.module, not that I'd make it that hard for you ).
  21. Love all of this - I've uploaded my modules I think there are only a very few things I'd suggest adding (that may also cause you a headache! ): The ability to upload images for illustration/instruction purposes The ability to link to a YouTube or Vimeo video A download counter Other than that it's all very good. My only other thought is that it asks you to enter your forum name as it appears in the forums, but your name appears lowercase after you submit the module. Am I right in assuming it's creating a ProcessWire user account? In that case wouldn't it make sense to have another field in the user template called "forum display name" or something like that?
  22. ryan - The module for IP Board would need to read files from the forum directory (it initialises and uses various classes) so I'm not sure how we could work around that. I can send you what I've got shortly and you can have a look though.
  23. I'll send you over something that does just that later on as that's relatively easy. There are a few internal IPB functions along the lines of getMember that I think take an ID or name and return the user's details which is what I use to build those URLs myself. I can then leave out the other functions that I'm not quite happy with until I've properly checked them.
  24. If you like Ryan I'll finally tidy up my forum integration module and you could have comments tied into the forums as well as be able to auto-link it to the current forum user? I use it to auto-create users in PW as well but I just need time to finish that bit off properly. Or it could wait for a version 2.
×
×
  • Create New...