Author Topic: Display a different folder icon if there are new images in a category  (Read 8869 times)

0 Members and 1 Guest are viewing this topic.

Offline sabba

  • Pre-Newbie
  • Posts: 9
    • View Profile
hi,

is there a way to display instead this folder icon before categoriename a different folder icon if there are new images in a category since last visit?

sabba
« Last Edit: March 29, 2006, 01:17:36 PM by sabba »

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Display a different folder icon if there are new images in a category
« Reply #1 on: March 29, 2006, 02:08:13 PM »
... is there a way ...

... there is a way ...  :wink: ... find in /templates/<your_template>/category_bit.html the following code :
Code: [Select]
<img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />

and replace it with this code for 4images V.1.7.0 - V.1.7.1 :
Code: [Select]
{ifno cat_is_new}<img src="{template_url}/images/folder.gif" width="20" height="13" alt="no new images" />{endifno cat_is_new}{if cat_is_new}<img src="{template_url}/images/folder_new.gif" width="20" height="13" alt="new images" />{endif cat_is_new}

and replace it with this code for 4images V.1.7.2 - V.1.7.4 :
( see also here : http://www.4homepages.de/forum/index.php?topic=12251.msg65514#msg65514 )
Code: [Select]
{ifnot cat_is_new}<img src="{template_url}/images/folder.gif" width="20" height="13" alt="no new images" />{endifnot cat_is_new}{if cat_is_new}<img src="{template_url}/images/folder_new.gif" width="20" height="13" alt="new images" />{endif cat_is_new}

folder_new.gif - is your different folder icon in your templates/images folder.

mawenzi
« Last Edit: November 19, 2006, 02:09:49 PM by mawenzi »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline sabba

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Display a different folder icon if there are new images in a category
« Reply #2 on: March 29, 2006, 03:21:00 PM »
Thx in advance, works good for me  8)

sabba

Offline blue22deep

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Display a different folder icon if there are new images in a category
« Reply #3 on: November 19, 2006, 12:23:41 PM »

... there is a way ...  :wink: ... find in /templates/<your_template>/category_bit.html the following code :
Code: [Select]
<img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />

and replace it with this code for 4images V.1.7.2 :
( see also here : http://www.4homepages.de/forum/index.php?topic=12251.msg65514#msg65514 )
Code: [Select]
{ifnot cat_is_new}<img src="{template_url}/images/folder.gif" width="20" height="13" alt="no new images" />{endifnot cat_is_new}{if cat_is_new}<img src="{template_url}/images/folder_new.gif" width="20" height="13" alt="new images" />{endif cat_is_new}

folder_new.gif - is your different folder icon in your templates/images folder.

mawenzi

What if running 1.7.4, is there a change in the code from 1.7.2..??
Best Regards
Carsten, Denmark

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Display a different folder icon if there are new images in a category
« Reply #4 on: November 19, 2006, 12:26:15 PM »

... there is a way ...  :wink: ... find in /templates/<your_template>/category_bit.html the following code :
Code: [Select]
<img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />

and replace it with this code for 4images V.1.7.2 :
( see also here : http://www.4homepages.de/forum/index.php?topic=12251.msg65514#msg65514 )
Code: [Select]
{ifnot cat_is_new}<img src="{template_url}/images/folder.gif" width="20" height="13" alt="no new images" />{endifnot cat_is_new}{if cat_is_new}<img src="{template_url}/images/folder_new.gif" width="20" height="13" alt="new images" />{endif cat_is_new}

folder_new.gif - is your different folder icon in your templates/images folder.

mawenzi

What if running 1.7.4, is there a change in the code from 1.7.2..??


Hi,

this code work for all versions  :wink:

cu
Kurt

Offline blue22deep

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Display a different folder icon if there are new images in a category
« Reply #5 on: November 19, 2006, 12:33:43 PM »

What if running 1.7.4, is there a change in the code from 1.7.2..??


Hi,

this code work for all versions  :wink:

cu
Kurt

Thanks very much for the fast reply :)
Best Regards
Carsten, Denmark

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Display a different folder icon if there are new images in a category
« Reply #6 on: November 19, 2006, 02:19:22 PM »
...
this code work for all versions
...

... that's not quite right ...
... {ifnot 'tagname'}some code or text{endifnot 'tagname'} ... works since 4images version 1.7.2 ...  :wink:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Display a different folder icon if there are new images in a category
« Reply #7 on: November 19, 2006, 06:12:27 PM »
Hi,

yes.
With IE i saw oly the first code:
Code: [Select]
<img src="{template_url}/images/folder.gif" width="20" height="13" alt="" />The second code is not showing.... IE is shit

Kurt

Offline CharlieF.

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Display a different folder icon if there are new images in a category
« Reply #8 on: April 09, 2007, 01:50:55 PM »
Hi,
is there also a way to realize this for sub-categories?
I guess this has to be done in functions.php but my php skills are too poor for that :)
Actually i just want to show a "new"-Tag on the sub-cats when new images have been added.


CharlieF.