Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Icons on forumhome Details »»
Forum Icons on forumhome
Version: 1.00, by Sofia Sofia is offline
Developer Last Online: Aug 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 05-21-2009 Last Update: Never Installs: 510
Template Edits
Re-useable Code Translations  
No support by the author.

This mod allows you to have specific forum icons on the forumhome per forum.







(New) You want your statusicons per forum? Read this : https://vborg.vbsupport.ru/showpost....6&postcount=45


Installation


In the template forumhome_forumbit_level2_post,

Find:

HTML Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
Add above:

HTML Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left"/></a>
Create a folder "iconforums" into your images/misc folder. Upload your icons in images/misc/iconforums.

Indicate a forumid for the images name.


Example:
ID Forum = 3. So your image have this name : "3.gif"
ID Forum = 7. So your image have this name : "7.gif"

You must have an icon for each forum
.

Screenshots

File Type: png Sans titre.png (22.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 07-18-2009, 12:08 PM
powersilie powersilie is offline
 
Join Date: Dec 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!

This is my problem too

greetz
Karin
Reply With Quote
  #63  
Old 07-21-2009, 11:21 AM
abdulbasitsaeed's Avatar
abdulbasitsaeed abdulbasitsaeed is offline
 
Join Date: Mar 2009
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any help possible, Sofia?
Reply With Quote
  #64  
Old 07-21-2009, 02:00 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello abdulbasitsaeed. Try these modifications :

Template: forumhome_forumbit_level1_nopost

HTML Code:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
    <td><img src="$stylevar[imgdir_misc]/_cat-top_lft3.gif" alt="" /></td>
    <td width="100%" class="cat-top_x3">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
            <if condition="$show['forumdescription']"><span class="smallfont">: $forum[description]</span></if>
</td>
    <td><img src="$stylevar[imgdir_misc]/_cat-top_rht3.gif" alt="" /></td>
 </tr></table>
<div class="side_lft3">
      <div class="side_rht3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <if condition="$show['subforums']">
<tbody>
<tr>
    <td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><div class="smallfont"><ul class="subforum">$forum[subforums]</ul><br class="clear" /></div></td>
</tr>
</tbody>
    </if>
<if condition="$childforumbits">
<if condition="!$show['collapsable_forums']">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
</if>
 <tr align="center">
<td class="thead">&nbsp;</td>
    <td class="thead">&nbsp;</td>
    <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
    <td class="thead" nowrap="nowrap">$vbphrase[last_post]<div class="lastpost_w"></div></td>
    <td class="thead" nowrap="nowrap">$vbphrase[threads]<div class="threads_w"></div></td>
    <td class="thead" nowrap="nowrap">$vbphrase[posts]<div class="posts_w"></div></td>
<if condition="$vboptions['showmoderatorcolumn']">
    <td class="thead">$vbphrase[moderator]</td>
      </if>
 </tr>
$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>
</table>
</div>
 </div>
<div class="cat-btm_x3"><div class="cat-btm_lft3"></div><div class="cat-btm_rht3"></div></div>
<br />
Template: forumhome_forumbit_level2_post


HTML Code:
<tr align="center">
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
  <td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left"/></a></td>  
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
        <div>
<!-- Code begin by Saeed -->
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].png" hspace="4px" align="left"/></a>
<!-- Code end by Saeed -->
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
            <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
        </div>
        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
        <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
        <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><ul class="subforum">$forum[subforums]</ul><br class="clear" /></div></if>
    </td>
    <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
    <td class="alt1">$forum[threadcount]</td>
    <td class="alt2">$forum[replycount]</td>
    <if condition="$vboptions['showmoderatorcolumn']">
    <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
    </if>
</tr>
$childforumbits
Reply With Quote
  #65  
Old 07-21-2009, 11:42 PM
abdulbasitsaeed's Avatar
abdulbasitsaeed abdulbasitsaeed is offline
 
Join Date: Mar 2009
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much for your response, Sofia.

All I had to do was change the path of the image in the last Template: forumhome_forumbit_level2_post you posted, and take out the code you had mentioned in your first post. The results looks lovely.

Thank you very much, once again!
Reply With Quote
  #66  
Old 07-22-2009, 01:10 PM
powersilie powersilie is offline
 
Join Date: Dec 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hallo!

My forumhome_forumbit_level2_post is different and in Firefox it looks like this:





and in IE it looks like this:




And this ist my forumhome_forumbit_level2_post:

Code:
<tr align="center">

<td class="alt2"><if condition="$vboptions[customimg_enabled] == 1">
 <if condition="$forum[customimg] == ''">
 <img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].png" alt="" border="0" id="forum_statusicon_$forum[forumid]" />

   
<else />

  <img src="$forum[customimg]" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
</if>
 
<else />
<img border="0" src="images/misc/iconforums/$forum[forumid].JPG" />
 
</if>


<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].png" alt="" border="0" hspace="4px" align="left" />

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
			<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
		</div>
		<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
		<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
		<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
	</td>
	<td class="alt2" width="175">$forum[lastpostinfo]</td>
	<td class="alt1" width="65">$forum[threadcount]</td>
	<td class="alt2" width="65">$forum[replycount]</td>
	<if condition="$vboptions['showmoderatorcolumn']">
	<td class="alt1" width="120"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
	</if>
</tr>
$childforumbits

What can I change to get it to work like abdulbasitsaeed - with a separator between the category icon and it's title & description



Thanks a lot
Karin
Reply With Quote
  #67  
Old 07-27-2009, 12:06 AM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got a couple of questions because I like this mod very much, but I don't have and I don't want an icon for each and every forum.

For example, I've got an information and a news forum on which I don't want icons, they should remain standard.
Then I have some receiver forums and for every receiver brand I want an icon.
Then the admin/mod forums I don't want an icon.

Is there a way to make it so that icons can be put in on a per-forum base?

My second question is what the measures (height and width) of the icons should be. I can download gifs at many places, some a bit bigger, others a bit wider. Or does this get auto-adjusted?
Reply With Quote
  #68  
Old 07-29-2009, 09:00 PM
adamskiii adamskiii is offline
 
Join Date: Oct 2008
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can I get the specific forum icons to show up in the spot where the status icons are? I dont want to replace the status icons with a new ones but to just have a different icon per forum in the spot of the status icon.

Thanks
Reply With Quote
  #69  
Old 07-30-2009, 01:32 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Black Tiger View Post
I've got a couple of questions because I like this mod very much, but I don't have and I don't want an icon for each and every forum.

For example, I've got an information and a news forum on which I don't want icons, they should remain standard.
Then I have some receiver forums and for every receiver brand I want an icon.
Then the admin/mod forums I don't want an icon.

Is there a way to make it so that icons can be put in on a per-forum base?

My second question is what the measures (height and width) of the icons should be. I can download gifs at many places, some a bit bigger, others a bit wider. Or does this get auto-adjusted?
You can simply not upload the image for the forum... that might cause the infamous "Red X" missing symbol in IE so to solve it all just make a transparent .gif file 1 x 1 pixels and use it for all the ones you don't want to have a forum, easy work around IMO but Sofia might suggest something more useful.

You resizing is the best method so it does not require code (if you don't have an graphics program, google GIMP or if no interest in doing it and just resizing on occasion, google Irfanview) but you can add this to the code:
Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" width="50px" height="50px"/></a>
S-MAN

edit: Sofia, you can add this as a demo (even though Screenshot should be sufficient but if you like) www.tournamentgamingworld.com/online
Reply With Quote
  #70  
Old 07-30-2009, 01:35 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by adamskiii View Post
how can I get the specific forum icons to show up in the spot where the status icons are? I dont want to replace the status icons with a new ones but to just have a different icon per forum in the spot of the status icon.

Thanks
https://vborg.vbsupport.ru/showpost....3&postcount=18

Perhaps? I saw this somewhere else, it can be done and I believe it was in one of Sofia's post too...
Reply With Quote
  #71  
Old 07-31-2009, 02:02 AM
Secret Warez Secret Warez is offline
 
Join Date: Feb 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05445 seconds
  • Memory Usage 2,375KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete