Jump to content

Pete

Administrators
  • Posts

    4,054
  • Joined

  • Last visited

  • Days Won

    67

Everything posted by Pete

  1. I'm sure there's a module somewhere that actually added its own API functions - can anyone remember which one it was though?
  2. Thanks - looking forward to trying out the alternative config
  3. I'm all over this like a bad rash
  4. Same to you with bells on Luis & Tina - might be a cache issue? Try a few CTRL & F5's to see if it sorts it please as there was an issue yesterday briefly when a lot of people were online that I fixed.
  5. I did something similar in 2011. The good thing was it was a personal project, the bad thing was it was a few months' worth of evenings that I'd lost Some evenings were more productive than others of course so I probably only lost 2 weeks of work in real terms, but it still hurts. The end result was that, since it was a ProcessWire site, I came back to it a bit later on to re-do the bits I'd lost and not only was I quicker at it the second time around I actually did a better job of it too in about 3 weeks worth of evenings. So yes, I try to backup often nowadays
  6. It's really easy to do the path stuff - you can split out that information by running a PHP explode() function on the path name and then picking out the year, month and day and then have whatever structure you like in PW. The main thing I keep asking though is more important and harder work - do you have an example of one of the articles so I can see the contents and suggest how you would parse all that? Basically if I could see that, I can pretty much give you the code to do it as I've got a converter script on my PC here Another question I asked earlier was how images are stored for each article (when they have images)? Are images just in the folder with the file that contains the text? The paths can stay the same as the text versions if you like - /issues/2013/Jan/08/ for example, but then have a more meaningful title on the end, like "news-story-title" if you like. You could also do away with the date in the path altogether and just have /issues/news-story-title and people can use an archive page to go through the days/months/years. But I'll rewind a bit as the harder part will be importing the articles. Iterating through your current directories, assuming the path you have for the files is consistent back through the months and years is easy, but I'm itching to see the content of one of the text files to see how hard that side of things might be
  7. It's ProcessWire API code, which is basically PHP functions for the most part. Best thing to do is if you can share an example news post like I mentioned and one of us can probably give you a better idea.
  8. Any topic like this is bound to get negative at some point, whether it be people like me balking at the price of things or others with different dislikes. All that aside, what would we achieve from more hands on deck? Well let's see - the majority of people here help each other out. Many people contribute ny way of modules (which are simple to write compared to other systems). Others spread the word because they like the project so much. It's not a case of bums on seats - we've got a growing commmunity of active users who help each other and enrich the project going forwards. We've been lucky enough to attract a lot of talented people who used to work with other well-developed systems who now prefer ProcessWire because it genuinely saves them time and stress and makes building websites fun and quick. It's not for everyone though - you can use it to build pretty much everything you might need in a website but you might want to take a step back if you were thinking of building a specific web application or other project that requires complex relationships in the database (although some folks here are managing to build those in ProcessWire too). We're no Wordpress/Joomla rival in terms of numbers, but all I see with those platforms is clunkyness and bloat personally. Modules for both are hit and miss as most here are aware, and clients will often push one of those systems for the sole reason that they've heard of them before and trust the name. I'm glad we're not that big yet because we're at a stage where we have some quality modules and can keep an eye on them and suggest improvements to them. It's not imposed quality control, it's helping each other out. Not sure where my train of thought is rolling off to, but I think the bit about what we would achieve by people coming here from other systems is that we often then have the skills as a community to help others who come from those systems. We often see questions like "I do this in my old CMS, how would I do it in PW?" which is great as the more experience we have in the community the quicker we can help those people out. As for any perceived plagiarism with any of the admin themes (I've not used EE so don't know which theme you're referring to, hence my choice of wording), if there is an issue then please inform ryan and I'm sure he will look into it. If nobody makes a complaint then we can't take action. I hope none of that has come across as negative. I'm not the best at being impartial on forums and I'm just trying to get my own points across. EDIT: @Antti - fixed, there are a few styling issues left I think.
  9. From memory the XML sitemap class doesn't check for multisite needs, though I seem to recall someone asking this before and maybe even posting some altered code (I might have dreamed that bit thouugh!).
  10. At least indenting seems to work. What is infuriating though is that the new code button does indent stuff fine, but it's hard to see what's code and what isn't when you go to edit a post. Still, I just checked and you can add to code when editing a post and it seems fine - you just have to realise that the stuff in Courier font is code. It's like they changed the system so it works, but at the same time gave more margin for error
  11. Well I did fix the JS issue so that's probably it Soma Tina - not sure which links you mean? They should all be up top if we're talking the links in the light-blue section, or other links are at the very top on the dark bar above that. I just checked the old template against the new one and don't see any missing links.
  12. EDIT: arjen beat me to it
  13. No they don't, but minor updates usually result in smaller template edits so it's just a bit of a hassle the first time you create a template - maybe when I win the lottery I'll pay Antti to build on his PW discussions module for a year solid I've added some padding now.
  14. Well that is a bit annoying. I've got another forum locally that doesn't give this error so I should hopefully just be able to copy and paste some JS files and fix that. Easy fix - any more?
  15. Erm... you click into the reply box and the editor appears, no? Also, what browser are you using to see the error? I'm in Firefox (latest) and honestly can't see any more errors.
  16. Bah, ran an old-fashioned SQL query in phpMyAdmin and fixed it for the remaining members. Don't know why it didn't update you all automatically but there we are.
  17. I think that might be because you're a moderator but I'm not sure. I'm removing access to the old one so it should move any stragglers over to the new one automatically.
  18. Hi folks - I've upgraded the software successfully this time and applied the new theme to match the new version of the site. I've noticed one or two minor tweaks since doing this so I'll be making some minor adjustments this evening, but other than that it should be fine.
  19. From by brief scan of this topic (I keep falling behind) I'm with diogo in that it wouldn't be too hard to import them with a script and use the API to put them into ProcessWire as pages, use the date from the folder as the published date and then you have a nice, structured database for your news stories with search functions and a date-based archive. I've imported something that sounds a lot harder than what you're after, so if you have those nice tags like <!-- Text --> to delimit different parts of content it should be relatively simple. Is there any chance you can provide an example article? Also if there are associated images with some of them, are the image files names sensibly or are they just in the folder with the text file (i.e. one folder per article - I think they would be looking at your first post)? If you don't want to post something on the forums but dont mind sending it my way then feel free to PM me and I can have a quick look.
  20. For the usage you're talking about I agree with Antti. Using the $db class this would be pretty straightforward as well as you're not talking about a complicated table either I think this will come up in lots of scenarios where the number of invisible pages far outstrips the number of visitor-facing pages by a huge percentage (and it's not due to form entries) - that's the time to seriously consider whether to use an external table.
  21. Pete

    Before PW & After PW

    Well, my mouse is wireless at least, but it does generally look like someone has been fly-tipping here lately since things got shoved in the corner over Christmas.
  22. One thing I've done a lot before (with less-pretty galleries ) is to make the first image in the images field represent the whole gallery. I'm pretty sure a lot of people do this, but it's easily grabbed with: echo $page->images->first()->url; Which everyone probably already knows
  23. Ah, didn't see that - that's even better
  24. Pete

    Before PW & After PW

    Sadly Joss my desk still looks like that Before picture.
  25. I think all you really need to do is make sure people have to log in yo view the content and use an SSL certificate for the intranet for good measure to encrypt the flow of data from the site to the users. Then it can just go on normal hosting. Of they're running im am Active Directory environment on their company network then this could be useful for authentication but it's not straightforward to set up:
×
×
  • Create New...