Member
Member
NickC   2010-01-24, 15:59
#1

In the user guide, Zenphoto plugin , this line:
echo " ';
is incorrect isn't it? Shouldn't the last line $randomImage->getTitle() be part of the text of the `tag? Plus there is an extra ", which appears just before the close of the `tag, and I'm not sure why the \n just after the alt attribute.

IOW, it should be
alt=\"random image\"/>" . $randomImage->getTitle() . '';
which puts the image title as a clickable link, and removes the \n and the surplus ".

Perhaps it was written specifically for Wordpress, but for anything else, as I've written.

Can some one confirm this?
Thanks.

Member
Member
sbillard   2010-01-24, 19:21
#2

There is an extra quote after random image. Otherwise the HTML is correct. But, of course, it is an example. You can change it to suit your needs.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.