cb2004

Members
  • Content count

    228
  • Joined

  • Last visited

Community Reputation

123 Excellent

About cb2004

  • Rank
    Sr. Member

Recent Profile Visitors

2,777 profile views
  1. cb2004

    Excellent work. @Pierre-Luc are you no longer maintaining the module?
  2. cb2004

    Mailgun have now added EU as a data territory. This has a different API url so the module will require some updating to add this option. I went to post this as an issue on Github but it looks like the repository has been changed to read only.
  3. Some great replies, cheers all. There is no salt in the database with the original system by the looks of things, although I could probably get access to the old system files. @netcarver have you had to do anything like this before I could take a look at? These users will be logging in on the front-end with a custom form.
  4. I have a list of users and passwords which appear to be md5 hashed. Guessing there is no way to get these into ProcessWire without the user having to reset their password?
  5. I used the CMSCritic Case Study to make the parent page disappear from the URL, however as I am using markup regions there were issues. The first thing that was displayed was the desired page with the _main.php template, this is fine The next thing to be displayed was the content from home.php, I could remove this using a variable no problems The last thing to appear was the _main.php template again but without any content in Does the render() function need some extra checks for markup regions? Any ideas what I can do to get around this for the time being?
  6. cb2004

    I do see your point, but after inheriting some WordPress sites this year which are absolute horror shows, it has proven to me that any project without code commenting could take some time getting to grips with. So a few small comments in the template files explaining markup regions is what I add.
  7. cb2004

    I wouldn't use any other method now markup regions exist. Love them.
  8. cb2004

    Would be a welcome addition.
  9. This module has been out 2 weeks, if in 6 months it is full of bugs and security issues and nothing is being done let's revisit this post. There should be positivity around this, not negativity.
  10. Thanks so much @abdus. Sometimes my brain freezes up with all the selector stuff. Thats a nice optimisation for my site.
  11. So I am finding the pages from a given rootparent that have a manufacturer assigned, I then turn this into a unique array to display logos, but how would I count this first? $pages->count("???"); Cheers.
  12. Perfect. Full code: foreach ($pages->get(3780)->find("imagesMain!=, drupalAlt!=") as $p) { $p->setOutputFormatting(false); $imagesCount = count($p->imagesMain); $descriptions = array_filter(explode("|", $p->drupalAlt)); if($imagesCount === count($descriptions)) { for($i = 0; $i < $imagesCount; $i++) { $p->imagesMain->eq($i)->description = $descriptions[$i]; } } $p->save(); $p->setOutputFormatting(true); }
  13. So I have my image field, and I also have my image descriptions in 1 text field seperated by |, these are in the correct order. I am trying to apply the images descriptions to the images but I am having a brain fart. My start is: foreach ($pages->get(3780)->find("imagesMain.count>0") as $p) { $p->setOutputFormatting(false); $imagesCount = count($p->imagesMain); $descriptions = explode("|", $p->drupalAlt); $descriptionsFiltered = array_filter($descriptions); if($imagesCount === count($descriptionsFiltered)) { } $p->save(); $p->setOutputFormatting(true); } In some places the images are not present yet but the descriptions are, hence the if($imagesCount === count($descriptionsFiltered)) check. So, in there I want to foreach on the imagesMain and apply the descriptions in order. Cheers for any help.
  14. cb2004

    What does the file path need to be? This is working great with a full http:// but something like this: /sites/default/files/product-images/image.jpg Is not working. Any advice would be great.
  15. cb2004

    I think if the site works for you with no issues, the dev tag is completely irrelevant. I use the dev branch on a lot of sites that are live, ProcessWire has always been very stable, which is why it is my CMS of choice.