Forums / Cotonti / Support / forums sections icons

new in forums

fraze
#1 2012-06-27 20:03

i used this code successfully with genoa, but it doesnt appear to work with siena..is any of the statements incorrect for siena?

 

<!-- IF {PHP.fsn.fs_state}  -->
   <img src="themes/{PHP.theme}/img/forums_locked.png" alt="" />
   <!--
   <!-- ENDIF -->
   <!-- IF {PHP.fsn.fs_newposts}  -->
   <img src="themes/{PHP.theme}/img//forums_new.png" alt="" />
   <!-- ELSE -->
   <img src="themes/{PHP.theme}/img/forums.png" alt="" />
   <!-- ENDIF -->
Twiebie
#2 2012-06-27 20:22

Overwrite the default ones with resource strings in themename.php

$R['forums_icon_posts'] = '<img class="icon" src="themes/themename/img/system/posts.gif" alt="'.$L['forums_nonewposts'].'" />';
$R['forums_icon_posts_hot'] = '<img class="icon" src="themes/themename/img/system/posts_hot.gif" alt="'.$L['forums_nonewpostspopular'].'" />';
$R['forums_icon_posts_locked'] = '<img class="icon" src="themes/themename/img/system/posts_locked.gif" alt="'.$L['forums_locked'].'" />';
$R['forums_icon_posts_moved'] = '<img class="icon" src="themes/themename/img/system/posts_moved.gif" alt="'.$L['forums_movedoutofthissection'].'" />';
$R['forums_icon_posts_new'] = '<img class="icon" src="themes/themename/img/system/posts_new.gif" alt="'.$L['forums_newposts'].'" />';
$R['forums_icon_posts_new_hot'] = '<img class="icon" src="themes/themename/img/system/posts_new_hot.gif" alt="'.$L['forums_newpostspopular'] .'" />';
$R['forums_icon_posts_new_locked'] = '<img class="icon" src="themes/themename/img/system/posts_new_locked.gif" alt="'.$L['forums_newpostslocked'].'" />';
$R['forums_icon_posts_new_sticky'] = '<img class="icon" src="themes/themename/img/system/posts_new_sticky.gif" alt="'.$L['forums_newpostssticky'].'" />';
$R['forums_icon_posts_new_sticky_locked'] = '<img class="icon" src="themes/themename/img/system/posts_new_sticky_locked.gif" alt="'.$L['forums_newannouncment'].'" />';
$R['forums_icon_posts_sticky'] = '<img class="icon" src="themes/themename/img/system/posts_sticky.gif" alt="'.$L['forums_sticky'].'" />';
$R['forums_icon_posts_sticky_locked'] = '<img class="icon" src="themes/themename/img/system/posts_sticky_locked.gif" alt="'.$L['forums_announcment'].'" />';
$R['forums_icon_subforum'] = '<img class="icon" src="modules/forums/img/subforum.png" alt="{PHP.L.Subforum}" />';
fraze
#3 2012-06-27 22:00

ah not those icons - i'm talking about the icons in the section part of the forums...

Twiebie
#4 2012-06-27 22:38

For forums.sections.tpl?

fraze
#5 2012-06-28 06:42

yep those are the ones.  rather than an individual icon for each forum i prefer having it work like phpbb/vbulletin where there are 3 icons depending on the forum status. :)  the code i posted was given to me by trustmaster for genoa - doesnt appear to work with siena tho.

Trustmaster
#6 2012-06-28 06:50

It doesn't seem to be possible anymore without a plugin, the sections code has been changed too much.

May the Source be with you!