Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

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
  #102  
Old 08-20-2010, 10:50 PM
Mehryar10 Mehryar10 is offline
 
Join Date: Jun 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where's the file ?!?!
Reply With Quote
  #103  
Old 09-25-2010, 05:22 PM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Super mod! Installed with ease ,tho, i'm still struggling with the alignment !
Tried the setup from Rideharder and had no good results!

I'm running 3.8.6 , if anyone found out a way to do it, it would really cool to know how
Reply With Quote
  #104  
Old 09-26-2010, 11:01 AM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, not sure if it will work for every one but i pasted the code in the subforum and got little icons showing too

Here's what i did:

Find this in the "forumhome_subforumbit_post" (you will need to edit every style template that you have)
PHP Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]/> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a
Add the modified code before it:
PHP Code:
            <!---iconforums--->
                        <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].png" hspace="2px" align="left" width="25px" height="25px" /></a>
            <!---/
iconforums---> 
FTP the image to match the forumdisplay , adjust the Width & Height to your taste, and it should be all good
Attached Images
File Type: png cover.png (24.2 KB, 0 views)
Reply With Quote
  #105  
Old 01-15-2011, 10:55 PM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just in case anyone would like this for V4.xxx
Reminder: don't forget to change the extension to your images (.jpg .gif .png)
also, adjust the size with in the codes for better fit on your board

Have fun!

~~~~~~~~~~~~~~VB 4.1.1~~~~~~~~~~~~~~

Find in "forumhome_forumbit_level2_post":
HTML Code:
				<div class="datacontainer">
					<div class="titleline">
						<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
						<vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
					</div>
					<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>
Replace with:

HTML Code:
  			<div class="datacontainer">
                                    <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px;" />
                                <div>
                                    <h2 style="font-weight:bold; font-size:13px;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
                                       <vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
                                       <vb:if condition="$show['forumdescription']"><p>{vb:raw forum.description}</p></vb:if></div>
If you have subforums

In "forumhome_subforumbit_post" replace with this:

HTML Code:
<li class="subforum">
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" /> 
<vb:if condition="$depth > 1"></vb:if>
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title} <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px; width: 25px; height: 25px;"/></a>
</li>
Reply With Quote
  #106  
Old 03-15-2011, 08:25 PM
Sworm Sworm is offline
 
Join Date: Feb 2008
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a way to put the images on the right (next forum title) and not on the left?
Reply With Quote
  #107  
Old 03-16-2011, 09:33 AM
fxwoody's Avatar
fxwoody fxwoody is offline
 
Join Date: Jun 2010
Location: On Earth
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sworm View Post
There's a way to put the images on the right (next forum title) and not on the left?
You mean after the text?
Reply With Quote
  #108  
Old 03-16-2011, 04:54 PM
Sworm Sworm is offline
 
Join Date: Feb 2008
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fxwoody View Post
You mean after the text?
Yes after the text but on the extreme right, before the "Last post" column..... Like now the icons are together the vbulletin forum icon , and i don't like..... IMHO

Thanks
Reply With Quote
  #109  
Old 06-04-2011, 02:50 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RenatoMN View Post
To fix:

1- division between icon/forum title & description
2- error "image not found" in IE browser
3- both fixes

1-
PHP Code:
<div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div
2-
PHP Code:
<if condition="in_array($forum[forumid],array('2','3','4'))"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></if> 
3-
PHP Code:
<if condition="in_array($forum[forumid],array('2','3','4'))"><div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div></if> 
Note: if using fixes 2 and 3, replace ('2','3','4') with the forum IDs you want the image to be show. I hope you don't wonder "why the new uploaded image for forum 50 isn't be showing up?" -> ADD THE ID THERE! :P

*Untested code*
thank you very much RenatoMN. i used code 2 worked great 3.8.7.
how annoying having an "x" on every forum where you dont need to use an image only with IE.
cheers mate.
Reply With Quote
  #110  
Old 09-23-2011, 04:14 AM
montsa007 montsa007 is offline
 
Join Date: Feb 2008
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do i add icons in child forums?
Reply With Quote
  #111  
Old 09-23-2011, 08:20 AM
Fready Fready is offline
 
Join Date: Nov 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works on vB 3.8 and it is much easier to use, no templates to edit;
https://vborg.vbsupport.ru/showthread.php?t=179596
Reply With Quote
Reply

Thread Tools

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:58 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.07026 seconds
  • Memory Usage 2,357KB
  • 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
  • (5)bbcode_html
  • (5)bbcode_php
  • (3)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
  • (3)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
  • (2)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