4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: widgit1981 on June 04, 2003, 01:37:22 PM

Title: If NO Thumbnails
Post by: widgit1981 on June 04, 2003, 01:37:22 PM
Hi all

Is there any way to display something if no thumbnails in the category ? e.g:

{if no thumbnails} ksjdlkfjdlkjdljdsalkjf;lksajdf;ljds dalk 'l;sd dsk l;dak fdsfdsfl dslkf ldasfd sflds aldk flkasdl;kfa
{endif no thumbnails}

Thanks

Steve
Title: If NO Thumbnails
Post by: V@no on June 04, 2003, 01:57:06 PM
Thx for bringing this up ;)
when I just started with 4images, I was wandering how come {ifno ..} tags are not avalable...then I just forgot about it.

here is a little mod for it:
http://4homepages.de/forum/viewtopic.php?t=6036
Title: If NO Thumbnails
Post by: widgit1981 on June 04, 2003, 02:04:50 PM
Tried it and got:

Fatal error: Call to undefined function: replace_ifno() in /*****/*****/*****/includes/template.php on line 128

Also do I just put the content if no thumbnails in {tag2} in categories.html say:

{ifno tag1}
Content here
{endifno tag1}

Line 128 is:
$template = $this->replace_ifno ($template);

Thanks

Steve