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

 
 
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
  #142  
Old 02-05-2010, 09:59 PM
messengermatt messengermatt is offline
 
Join Date: Aug 2009
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need some help here, i installed the mod and it didnt work i also searched for the specific code and it wasnt found in the style im using which is just a normal style with a different colour.

I posted a few posts back about my issue and nobody helped me out but sub forums support would be a good thing as thats what i need
Reply With Quote
  #143  
Old 02-07-2010, 04:18 PM
Gamempire Gamempire is offline
 
Join Date: Aug 2008
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i made an interesting change to the template modification, different from that this coder use in this mod:
https://vborg.vbsupport.ru/showthread.php?t=235240

opacity and different forum icons for each forum..

however, you did a great job for the product, Elmer
Reply With Quote
  #144  
Old 02-08-2010, 12:57 AM
Aclikyano Aclikyano is offline
 
Join Date: Apr 2006
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i remove where it says LAST POST by where the name of the section is?
Reply With Quote
  #145  
Old 02-08-2010, 12:58 AM
Aclikyano Aclikyano is offline
 
Join Date: Apr 2006
Posts: 481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by footose View Post
I have modified the template code so that you can put icon's in the category fields of the site also.


Open forumhome_forumbit_level1_nopost

Find <span class="forumtitle">

Insert Above:

PHP Code:
<vb:if condition="$forum['iconlocation']">
<
img style="float:left;" src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" />
</
vb:if> 
Looks like this:


hey anyway to remove where it says LAST POST???
Reply With Quote
  #146  
Old 02-08-2010, 01:19 PM
movslow movslow is offline
 
Join Date: Aug 2008
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spiritvn View Post

#moveslow:

You can find on the forumhome_forumbit_level2_post

Code:
<h2 class="forumtitle" >
Then add before:

Code:
<vb:if condition="$forum['iconlocation']"><img src="{vb:raw forum.iconlocation}" alt="{vb:raw forum.title}" class="forumicon" id="forum_statusicon_{vb:raw forum.forumid}"/></vb:if>
It's better with small icon and you can controll with css by class, .forumicon controls status icon so if you want to place that position, you should change the class, add new class and edit its style.
Thanks for the reply, but this isn't what I was needing.

I've enclosed a screenshot so you can see what/where I am referring to.



My 2 questions are:

1.) The RED underlines are the sub-forum icons, is it possible to place something there?

2.) The RED X, is the category description, is it possible to place something there as well?

Thanks again for your help.
:up:
Reply With Quote
  #147  
Old 02-08-2010, 01:23 PM
Ranger187 Ranger187 is offline
 
Join Date: Nov 2003
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did ya bother to read the post above yours from yesterday? He said how to put an icon in the category description bud...
Reply With Quote
  #148  
Old 02-08-2010, 11:39 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamempire View Post
i made an interesting change to the template modification, different from that this coder use in this mod:
https://vborg.vbsupport.ru/showthread.php?t=235240

opacity and different forum icons for each forum..

however, you did a great job for the product, Elmer
Yes, a big thanks for that code, I had been looking for a way to do that for many week.
Good work.
Reply With Quote
  #149  
Old 02-09-2010, 04:38 AM
delmarva's Avatar
delmarva delmarva is offline
 
Join Date: Jun 2006
Posts: 140
Благодарил(а): 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>
Thank you for this.

Great Mod.. *INSTALLED*
Reply With Quote
  #150  
Old 02-14-2010, 03:50 AM
abdulbasitsaeed's Avatar
abdulbasitsaeed abdulbasitsaeed is offline
 
Join Date: Mar 2009
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Elmer, for this lovely mod.

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 :

Thank you very much, House M.D.!

This worked perfectly on my side. To make the space even on both sides of the forum icon, I changed margin-right: to 15 px instead of 5.
Reply With Quote
  #151  
Old 02-17-2010, 10:35 PM
Pro-eSports.com Pro-eSports.com is offline
 
Join Date: Jan 2010
Location: Germany
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone said that vBulletin already has this integrated by default, is this true? Because then I don't need this mod.
Reply With Quote
 


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 02:51 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.05244 seconds
  • Memory Usage 2,359KB
  • 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
  • (9)bbcode_code
  • (1)bbcode_php
  • (5)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)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
  • 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