Member
Member
Chisa   21-02-2010, 02:18
#1

My client needs to put html (just links really) into image descriptions, so I've changed

printImageDesc(true);

to

echo htmlspecialchars_decode(getDesc());

However it isn't recognising the getDesc() function? There's something obvious that I'm missing here, but not sure what it is!

Member
Member
gjr   21-02-2010, 02:35
#2

getImageDesc( ) perhaps?

Member
Member
Chisa   21-02-2010, 02:52
#3

Holy crap that works! Thanks heaps

Administrator
Administrator
acrylian   21-02-2010, 19:00
#4

Just to note: getDesc() is a class method and needs to be used with the global object of the current image like $_zp_current_image->getDesc(). That is indeed the same as getImageDesc().

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