cb2004
Members-
Posts
603 -
Joined
-
Last visited
-
Days Won
4
Everything posted by cb2004
-
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.
-
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?
-
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?
-
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.
-
I wouldn't use any other method now markup regions exist. Love them.
-
Would be a welcome addition.
-
PW 3.0.76 – Login/Register/Profile, ProCache, Uikit 3
cb2004 replied to ryan's topic in News & Announcements
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. -
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); }
-
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.
-
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.
-
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.
-
Ah ok, so the page I am looking for could be a child or a sibling. Interesting.
-
In fact some templates can be found, others cant, are there any stipulations?
-
It doesn't seem that $page->closest("template=X") is working, should it?
-
Amazing, but I would love to be able to select this to display in a tab without the label (but the label would be used as the tab title).
-
Folder called ".well-known" Appeared on Server
cb2004 replied to MatthewSchenker's topic in Security
Or if not I do believe this is put their in readiness by your hosting company that you may wish to. It may even be enabled without you knowing, try going to the https:// version of your site and see what it says. -
Folder called ".well-known" Appeared on Server
cb2004 replied to MatthewSchenker's topic in Security
I do believe this is to do with Let's Encrypt SSL certificates and I don't think this is anything to worry about. Malware with ProcessWire, pah -
I am creating some calls to action and I am banging my head against the wall for something which I know is simple. Lets say my structure is: - Books (id = 1) -- Book Year --- Book - Videos (id = 2) -- Video Year -- Video So on my whole template in a side bar I want to link to Books and Videos so: $ctas = $pages->find("id=1|2, sort=sort"); Nice and simple. To stop the link to itself when I am on the page this is: $ctas = $pages->find("id=1|2, id!=$page, sort=sort"); But lets say I am in Book Year or Book, I don't want to display a link to the parent Books as I am already in a child and this is handled by breadcrumbs. I have tried so many selectors I think I have exhausted them all, so I must be missing something. Cheers.
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
cb2004 replied to ryan's topic in Modules/Plugins
Yes delete the link from the ckeditor field. If it is an <a href to the YouTube video it will not embed. -
This would certainly come in handy for me on a few projects. I do work for charities and set them up with hosting that is free, but there are a lot of restrictions put in place naturally. +1 from me.
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
cb2004 replied to ryan's topic in Modules/Plugins
Remove the link and it should kick in again. Needs to just be plain text. -
You could potentially also use just CSS for this: :nth-child(3n+0) This would select all elements where an index is a multiple of 3.