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

Reply
 
Thread Tools
Simple Category Icons Details »»
Simple Category Icons
Version: 1.1, by StarBuG StarBuG is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: 3.6.4 Rating:
Released: 02-07-2007 Last Update: Never Installs: 49
Template Edits
 
No support by the author.

Ok folks.

For all of you who want Category Icons including the "new post", "no new post", "forum closed" capabilities, here is a quick and simple solution provided by Andreas

What this hack does: Instead of the standard forum icons like
or , ... you can now have separat status icons for every forum you have. It is that simple

Templates forumhome_forumbit_level_...

search:
Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
Replace with
Code:
<img src="$stylevar[imgdir_statusicon]/forum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" />
then create/name your images like this:

forumID_new.gif, forumID_old.gif,...

Example: forum1_new.gif

If you want to have different icons for subforums on forumhome as well:


In forumhome_subforumbit_nopost and forumhome_subforumbit_post

search for:
Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
and replace it with:
Code:
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum$forum[forumid]_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
Name your images like:

subforumID_old.gif
subforumID_new.gif

Example: subforum22_old.gif

I don't use this hack so I have no screenshots, but If anyone is trying this, it would be cool if you could provide some screenshots.

Remember to click installed

Greetings

StarBuG

Supporters / CoAuthors

Show Your Support

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

Comments
  #32  
Old 04-01-2007, 11:48 AM
pscyhosis pscyhosis is offline
 
Join Date: Jan 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi starbug

My template

Code:
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
I couldnt find the same code as yours.
I tried to replace the forum_$forum[statusicon].gif to forum$forum[forumid]_$forum[statusicon].gif. But no icon was showed.

Please help.
Reply With Quote
  #33  
Old 05-13-2007, 05:23 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A clarification please...

If I install this mod and edit the templates, will I have to have all of the images ready to go at the same time?

In other words, can I get the code ready (installed), then start creating the individual forum category images (post, no post etc), installng them one forum at a time for testing?

Thanks

Regards,
Badger
Reply With Quote
  #34  
Old 05-18-2007, 06:59 PM
aloha aloha is offline
 
Join Date: Jan 2004
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry about this, but how do I even get my subforums to show up like that in the first place before I install this hack?
Reply With Quote
  #35  
Old 05-25-2007, 02:31 PM
snoopy5 snoopy5 is offline
 
Join Date: May 2007
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does any of you guys know, how to DISABLE these forum icons on the main page completely?

So no icons for new messages, closed forum etc. on the index.php page....

Thanks in advance
Reply With Quote
  #36  
Old 05-25-2007, 02:50 PM
MThornback MThornback is offline
 
Join Date: Apr 2005
Location: Canada
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You just remove the information from the template completely....NOT the entire template....just the information for the icons.
Reply With Quote
  #37  
Old 05-25-2007, 03:11 PM
snoopy5 snoopy5 is offline
 
Join Date: May 2007
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MThornback View Post
You just remove the information from the template completely....NOT the entire template....just the information for the icons.
Do you know by accident in which template? I did delete in Forumhome.tmpl :



------

<img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" />

------------

and updated styles, threads and forums in maintenence option, refreshes browser, but no changes are visible..

After that I deleted alos in Forums display:

------
img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" />

--------

again maintenence update, again no success...



Thanks
Reply With Quote
  #38  
Old 07-25-2007, 06:14 PM
consolegaming consolegaming is offline
 
Join Date: Jan 2007
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Been a while since I last posted in thsi thread but after finishing off a few other projects for the site I'm on I finally got back to sorting out the issue I was having as it still wasn't working with the last code MThornback had suggested to me. After some perseverance I found out it was because of the url that I had been using in the plugin code that MThornback had suggested. I had use the full url i.e. http://www.google.co.uk whereas it requires a relative url ./images/etc Just thought I'd mention that for those that come across the same issue.

Also after some more experimentation I'd like to post a slightly revised version of MThornback's suggested plugin to show you're default icons.

It's certainly not much different but it will check each forum status icon exists rather than just the new version of each. This was pretty crucial for us because we did't want custom versions of the locked icons mainly because we were lazy but it's certainly helped us anyway.

"make a new plugin on the forumbit_display hook."

Code:
$showCustom[$forum['forumid']] = false;
if (is_file("./images/skin_name_here/statusicon/forum".$forum['forumid']."_$forum[statusicon].gif")) {
    $showCustom[$forum['forumid']] = true;
}
and then follow the instructions as detailed in Thornback's post: https://vborg.vbsupport.ru/showpost....5&postcount=23

So in summary this is just a slight update on MThornback's suggested code for the plugin for default status icons in conjunction with the custom status icon plugin. And remember to check if you're using a relative url or not if you find the default icons not working. A clear sign of it not working properly is all the icons becoming default as the function checking if the image exists will always return false if it isn't the correct url.
Reply With Quote
  #39  
Old 07-27-2007, 09:37 PM
menacam menacam is offline
 
Join Date: May 2007
Location: Turkey
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnx mean
Reply With Quote
  #40  
Old 07-28-2007, 02:57 PM
Defkalion Defkalion is offline
 
Join Date: Jan 2007
Location: Athens, Greece
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack worked like a charm, very useful.

Many thanks to the author.
Reply With Quote
  #41  
Old 08-27-2007, 10:15 PM
rayw rayw is offline
 
Join Date: Mar 2007
Location: Australia
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I using vB 3.6.7 and I can't for the life of me find the following code in forumhome_forumbit_level1_nopost:
Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
I found this in the following in forumhome_forumbit_level1_post, but it still isn't the same:
Code:
<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />
Any idea's on how I could get this working.

This is my current level1_nopost template:

Code:
<!-- separate catergories -->
<if condition="$forum[forumid] != 1">
</table>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
</if>
<!-- / separate catergories -->

<tbody>
	<tr>
		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
			<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']"><div class="smallfont">$forum[description]</div></if>
			<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
		</td>
	</tr>
<!-- separate catergories -->
	<tr align="center">
	  <td class="thead">&nbsp;</td>
	  <td class="thead" width="80%" align="$stylevar[left]">$vbphrase[forum]</td>
	  <td class="thead" width="20%">$vbphrase[last_post]</td>
	  <!-- replaced by custom thread / post count 
	  <td class="thead" width="5%">$vbphrase[threads]</td>
	  <td class="thead" width="5%">$vbphrase[posts]</td>
	  -->
	  <if condition="$vboptions['showmoderatorcolumn']">
	  <td class="thead" width="0%">$vbphrase[moderator]</td>
	  </if>
	</tr>
<!-- / separate catergories -->
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
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 02:02 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.04677 seconds
  • Memory Usage 2,324KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete