Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Icons Details »»
Forum Icons
Version: 1.0, by Elmer Elmer is offline
Developer Last Online: Feb 2019 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.0.0 RC 4 Rating:
Released: 12-03-2009 Last Update: Never Installs: 438
DB Changes Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

Forum Icons is a product that adds an option in the edit/add new forum page to set a forum icon.

To make it work, you will need to make a template modification, I did try to do it with a plugin, but got frustrated trying but failing to make it work.

I promise I will be looking into this so we don't have to edit any template, but in the meantime...

How to Install:


1- Upload the product xml file.
2- Edit forumhome_forumbit_level2_post
Find:
Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>
Replace it with:
Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription"><vb:if condition="$forum['iconlocation']"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px;" /></vb:if>{vb:raw forum.description}</p>
					<vb:elseif condition="$forum['iconlocation']" /><p class="forumdescription"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" /></p></vb:if>

If you use it, please mark it as installed

Download Now

File Type: xml product-teh_forumicons.xml (2.2 KB, 2743 views)

Screenshots

File Type: png forumicons.png (31.6 KB, 0 views)
File Type: png forumiconsadmin.png (9.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
mohammadxxx

Comments
  #222  
Old 01-09-2012, 06:03 PM
Southernphuk's Avatar
Southernphuk Southernphuk is offline
 
Join Date: Aug 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is possible to add the icon and title of the parent forum to a thread. Just add this code where you want it in SHOWTHREAD

HTML Code:
<div id="ThreadForum" class="pagetitle">
	<vb:if condition="$GLOBALS['foruminfo']['iconlocation']"><img src="{vb:raw GLOBALS.foruminfo.iconlocation}" alt="{vb:raw GLOBALS.foruminfo.title}" style="float: left; margin-right: 4px;" /></vb:if>
	<h1><span class="forumtitle">{vb:rawphrase forum}: <a href="{vb:link forum, {vb:raw GLOBALS.forum}}">{vb:raw GLOBALS.foruminfo.title}</a></span></h1>
	<vb:if condition="$GLOBALS['foruminfo']['description']"><p class="description">{vb:raw GLOBALS.foruminfo.description}</p></vb:if>
</div>
I placed it just above {vb:raw poll} so it appears just under the breadcrumb.
Reply With Quote
  #223  
Old 10-18-2012, 08:00 AM
epsilon80 epsilon80 is offline
 
Join Date: Sep 2012
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by House M.D. View Post
To make the forum icon sit to the left of the title and description, you need to do this :

Uninstall any previous version and install a fresh copy. Do not make any edits to the mod except for what you see below.

It took a lot of trial and error to get this right - If you like what you see, please make a PayPal donation to mcs@sunwave.net to cover my time in getting this done. Thank you.

1) Install a fresh copy of this mod

2) Open up : Styles and Templates / Style Mananger / Edit Templates / Forum Home Templates / forumhome_forumbit_level2_post


Look for :
Code:
<div class="datacontainer">

Add this code after that line :
Code:
<div style="float: left; margin-right: 5px;">
<vb:if condition="$forum['iconlocation']"><a href="{vb:link forum, {vb:raw forum}}"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" /></a></vb:if>
</div>
<div style="float: left; width: 90%;">


Look for :
Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>

Replace that line with :
Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if></div>


That's it! - Hit the "Save and Reload" button and your done.

This will show the icon to the left of the title and description. Also, if you hover your mouse over the icon, it will show that board titles name. If you click on the icon, it will take you to that boards location.

I hope you enjoy it - any donations would be greatly appreciated.

Here is what the results will look like :

thankyou
Reply With Quote
  #224  
Old 12-24-2012, 07:31 PM
fayax fayax is offline
 
Join Date: Dec 2009
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GreigM View Post
Good mod, I made a little modification so that the image is clickable and is a link to the forum

Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription"><vb:if condition="$forum['iconlocation']"><a href="{vb:link forum, {vb:raw forum}}"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px;" /></a></vb:if>{vb:raw forum.description}</p>
					<vb:elseif condition="$forum['iconlocation']" /><p class="forumdescription"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" /></p></vb:if>
Excellent work GriegM
Reply With Quote
  #225  
Old 03-08-2014, 02:38 PM
sree krishna sree krishna is offline
 
Join Date: Mar 2014
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by House M.D. View Post
To make the forum icon sit to the left of the title and description, you need to do this :

Uninstall any previous version and install a fresh copy. Do not make any edits to the mod except for what you see below.

It took a lot of trial and error to get this right - If you like what you see, please make a PayPal donation to mcs@sunwave.net to cover my time in getting this done. Thank you.

1) Install a fresh copy of this mod

2) Open up : Styles and Templates / Style Mananger / Edit Templates / Forum Home Templates / forumhome_forumbit_level2_post


Look for :
Code:
<div class="datacontainer">

Add this code after that line :
Code:
<div style="float: left; margin-right: 5px;">
<vb:if condition="$forum['iconlocation']"><a href="{vb:link forum, {vb:raw forum}}"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" /></a></vb:if>
</div>
<div style="float: left; width: 90%;">


Look for :
Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>

Replace that line with :
Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if></div>


That's it! - Hit the "Save and Reload" button and your done.

This will show the icon to the left of the title and description. Also, if you hover your mouse over the icon, it will show that board titles name. If you click on the icon, it will take you to that boards location.

I hope you enjoy it - any donations would be greatly appreciated.

Here is what the results will look like :

your code working for me

Thank you
Reply With Quote
  #226  
Old 03-11-2014, 04:25 PM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works with 4.2.2 fine
Reply With Quote
  #227  
Old 05-31-2014, 10:29 PM
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ignore I figure it out!! easy mod to add icons

Could I get some install instructions please? I see no detailed install instructions. What do you do as far as naming the icons, where to put them?

Jon
Reply With Quote
  #228  
Old 06-01-2014, 05:23 PM
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can they be made to show in the sub forums? When I click on a category they do not show up. Is it possible to have them show there too?
Reply With Quote
  #229  
Old 03-29-2023, 12:53 PM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works with 4.2.5. thanks
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 10:31 AM.


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.05135 seconds
  • Memory Usage 2,333KB
  • 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
  • (11)bbcode_code
  • (1)bbcode_html
  • (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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (3)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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