Author Topic: If NO Thumbnails  (Read 4256 times)

0 Members and 1 Guest are viewing this topic.

Offline widgit1981

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
If NO Thumbnails
« 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
If NO Thumbnails
« Reply #1 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
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline widgit1981

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
If NO Thumbnails
« Reply #2 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