MyBB Community Forums

Full Version: Forum icons [1.4]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Autor: texasli
Version: 1.4
Difficulty : Easy

Screenshot:
[Image: iconnnke3.png]
Kurulum:

Dash board >> templates >> forum bit templates >> forumbit_depth2_forum

find:
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />

replace:
<img src="{$theme['imgdir']}/icon/{$forum['fid']}.gif" />

images >> your theme name >> icon(make a file is named icon )
send the gifs to this file

Come the forum's gifs and right click to take fid
then numarete gifs with this fid and send ftp in icon file...

For remove the modification:

make the orginal forum dept2_forum template

or

make the opposite of the making modification
Awesome. Thanks
thanks texasli
If you want to use different images per forum and also have different images for unread/read threads, you can actually use this one:
<img src="{$theme['imgdir']}/{$forum['fid']}_{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
(2008-08-05, 04:46 PM)yottabytewizard Wrote: [ -> ]If you want to use different images per forum and also have different images for unread/read threads, you can actually use this one:
<img src="{$theme['imgdir']}/{$forum['fid']}_{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />

Excellent job Cool
thanks a lot, this is a great customization Smile
it could be awesome if any plugin Developer make this Forum Icons using CSS background: url + <span>, like this tutorial >> http://www.elated.com/articles/css-rollover-buttons/

I´ve got 40+ Foruns in my Forum Index and I think there will be a lot of http requests using diferent <img src=etc..> to each one. Using a shared host here this is not that optimized code Toungue

I´ll try it later to do this myself
if someone find usefull I could release a tutorial or something closer
mine doesn't work? and i did what you said?
Very nice mod ;]
texasli Wrote:Dash board >> templates >> forum bit templates >> forumbit_depth2_forum

SORRY, but I don't understand...
Ok i can get it to work just about, but i can't make the images lol, looks like it is photoshop time, but is there a way to use like more than one image like, 1st image for 1st post,

for instance were you see ".gif" can't you put an "," or "/" there for the 2nd image?

just wondering and thanks for the coding, nice work both of you Big Grin
Pages: 1 2 3