Upgrading or removing comment-ability from 1.0.1

I'm running zenphoto 1.0.1 (I know.. I know..). I need to do whichever of the two things is quicker:

Upgrade or Remove ability to comment

zenphoto is sending massive numbers of emails via the comment form. I couldn't find an upgrade path from 1.0.1, but I don't use comments anyway so just removing that ability would be fine. Thanks for your help.

Comments

  • acrylian Administrator, Developer
    Wow, 1.0.1 is really old... I don't think it had an option for back then (before my time actually) that so you will need to modify the theme used. That would be on image.php and album.php then.

    We have not tried upgrades on such old versions (oldest I tried successfully was 1.0.8.2) but since Zenphoto is file system based at least the album structure should stay intact. Other things of course may cause issues.
  • I suspect that the biggest issue you will face is the versions of PHP you use. I am pretty sure that 1.0.1 will not work with PHP 5 and I know that the current Zenphoto will not work with PHP 4.

    So you will be in limbo while upgrading as you will first have to activate PHP 5 (and maybe MySQL 5 if you are not runnig that version.) Then run the setup for the current Zenphoto.

    Removing the comments from the theme may not solve your problem. Depends on if it is from people actually posting comments or from some hack. The reason for this is that the `POST` handling of comments in these old versions is present even if the theme does not present a comment form. Thus hackers can just submit the post request and send the comment.
  • You're right, there is no option to turn off comments in the admin panel.

    I've removed the HTML from the themes that allow posting comments, but I'm not convinced that will work. I was hoping you could point me towards where I would find the php code that does the emailing. I could just remove that.
  • Sorry, I do not even have a copy of that version of Zenphoto. But most likely the code is in the functions-controller.php script (That is where it is more recently.)
Sign In or Register to comment.