Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
Show your forum key horizontaly Details »»
Show your forum key horizontaly
Version: 1.00, by yupfish yupfish is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-13-2005 Last Update: Never Installs: 21
 
No support by the author.

This is my first vB template hack to be released, So enjoy it and i hope it helps some people out!

In your FORUMHOME template find:
PHP Code:
<table cellpadding="2" cellspacing="0" border="0">
<
tr>
<
td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]border="0" /></td>
<
td class="smallfont">&nbsp$vbphrase[forum_contains_new_posts]</td>
</
tr>
<
tr>
<
td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]border="0" /></td>
<
td class="smallfont">&nbsp$vbphrase[forum_contains_no_new_posts]</td>
</
tr>
<
tr>
<
td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]border="0" /></td>
<
td class="smallfont">&nbsp$vbphrase[forum_is_closed_for_posting]</td>
</
tr>
</
table
Replace with:
PHP Code:
<!-- MichaelJM's vB Template hack -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
</table>
<!-- end MichaelJM'
s vB Template hack --> 

Show Your Support

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

Comments
  #12  
Old 07-21-2005, 05:14 AM
Blind Guardian's Avatar
Blind Guardian Blind Guardian is offline
 
Join Date: Mar 2004
Location: South Carolina
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Handy, thank you.
Reply With Quote
  #13  
Old 07-21-2005, 09:03 AM
theo theo is offline
 
Join Date: Apr 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

just installed and looks much better - had to change code to make it 100% width and to move the log out below though but looks much cleaner
Reply With Quote
  #14  
Old 07-26-2005, 02:49 PM
DrewzR/T DrewzR/T is offline
 
Join Date: Jul 2005
Location: Norfolk, VA
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks....... added it to the board!
Reply With Quote
  #15  
Old 07-27-2005, 09:06 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did pretty much this exact thing (without an explicit css class for the table border), I came to this forum to see if I could get away with releasing it first. Well, beaten to it.

This should be part of the VB core IMO, it's such a waste of space otherwise.
Reply With Quote
  #16  
Old 08-07-2005, 03:57 PM
G3MM4 G3MM4 is offline
 
Join Date: Jul 2004
Location: Westcounty UK
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Borgs8472
I did pretty much this exact thing (without an explicit css class for the table border), I came to this forum to see if I could get away with releasing it first. Well, beaten to it.

This should be part of the VB core IMO, it's such a waste of space otherwise.
Maybe you can release something like this for the forumdisplay page, instead of the forumhome.
Reply With Quote
  #17  
Old 08-17-2005, 12:25 AM
G3MM4 G3MM4 is offline
 
Join Date: Jul 2004
Location: Westcounty UK
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've figured something out for the forumdisplay template icon key, as far as I can see, it works on my site, but feel free to improve it if you will.

Find in the FORUMDISPLAY template:

Code:
<!-- icon key -->
<if condition="$show['threadslist']">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
	<td><img src="$stylevar[imgdir_statusicon]/thread_new.gif" alt="$vbphrase[new_posts]" border="0" /></td>
	<td class="smallfont">$vbphrase[new_posts]</td>
	<if condition="$vboptions['usehotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread_hot_new.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
		<td class="smallfont">$vbphrase[hot_thread_with_new_posts]</td>
	<else />
		<td colspan="2">&nbsp;</td>
	</if>
</tr>
<tr>
	<td><img src="$stylevar[imgdir_statusicon]/thread.gif" alt="$vbphrase[no_new_posts]" border="0" /></td>
	<td class="smallfont">$vbphrase[no_new_posts]</td>
	<if condition="$vboptions['usehotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread_hot.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
		<td class="smallfont">$vbphrase[hot_thread_with_no_new_posts]</td>
	<else />
		<td colspan="2">&nbsp;</td>
	</if>
</tr>
<tr>
	<td><img src="$stylevar[imgdir_statusicon]/thread_lock.gif" alt="$vbphrase[closed_thread]" border="0" /></td>
	<td class="smallfont">$vbphrase[thread_is_closed]</td>
	<if condition="$show['dotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread_dot.gif" alt="$vbphrase[thread_contains_a_message_written_by_you]" border="0" /></td>
		<td class="smallfont">$vbphrase[you_have_posted_in_this_thread]</td>
	<else />
		<td colspan="2">&nbsp;</td>
	</if>
</tr>
</table>
<else />
<table cellpadding="0" cellspacing="2" border="0" width="100%">
<tr valign="bottom">
	<td>
		<table cellpadding="2" cellspacing="0" border="0">
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
			<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
		</tr>
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
			<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
		</tr>
		<tr>
			<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
			<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</if>
<!-- / icon key -->

<!-- forum rules & forum jump -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
	<td width="100%">
		<div class="smallfont">&nbsp;</div>
		<if condition="$show['threadslist']">$forumrules</if>
	</td>
	<td>
		$forumjump
		<if condition="!$show['popups'] AND $show['adminoptions']">
			<br />
			<form action="moderator.php" method="get">			
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<input type="hidden" name="f" value="$forumid" />
			<div class="smallfont"><strong>$vbphrase[admin_tools]</strong>:</div>
			<select name="do" onchange="this.form.submit();">
				<optgroup label="$vbphrase[admin_tools]">
					<option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
					<option value="modattach">$vbphrase[view_attachment_queue]</option>
					<option value="move">$vbphrase[mass_move]</option>
					<option value="prune">$vbphrase[mass_prune]</option>
					<if condition="$show['addmoderator']">
						<option value="addmoderator">$vbphrase[add_moderator]</option>
					</if>
				</optgroup>
			</select>$gobutton			
			</form>
		</if>
	</td>
</tr>
</table>
<!-- / forum rules & forum jump -->
Replace it with:

Code:
<!-- icon key -->
<if condition="$show['threadslist']">
	<table class="alt2" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="75%" align="center">
		<td><img src="$stylevar[imgdir_statusicon]/thread_new.gif" alt="$vbphrase[new_posts]" border="0" /></td>
		<td class="smallfont">$vbphrase[new_posts]</td>
<if condition="$vboptions['usehotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread_hot_new.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
		<td class="smallfont">$vbphrase[hot_thread_with_new_posts]</td>
<else />
		<td colspan="2">&nbsp;</td>
</if>
		<td><img src="$stylevar[imgdir_statusicon]/thread.gif" alt="$vbphrase[no_new_posts]" border="0" /></td>
		<td class="smallfont">$vbphrase[no_new_posts]</td>
<if condition="$vboptions['usehotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread_hot.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
		<td class="smallfont">$vbphrase[hot_thread_with_no_new_posts]</td>
<else />
		<td colspan="2">&nbsp;</td>
</if>
		<td><img src="$stylevar[imgdir_statusicon]/thread_lock.gif" alt="$vbphrase[closed_thread]" border="0" /></td>
		<td class="smallfont">$vbphrase[thread_is_closed]</td>
<if condition="$show['dotthreads']">
		<td><img src="$stylevar[imgdir_statusicon]/thread_dot.gif" alt="$vbphrase[thread_contains_a_message_written_by_you]" border="0" /></td>
		<td class="smallfont">$vbphrase[you_have_posted_in_this_thread]</td>
<else />
		<td colspan="2">&nbsp;</td>
</if>
	</table>
<else />
	<table class="alt2" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="75%" align="center">
		<td>
	<table class="alt2" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="75%" align="center">
		<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
		<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
		<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
		<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
		<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
		<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
	</table>
		</td>
	</table>
</if>
<!-- / icon key -->

<!-- forum rules & forum jump -->
<br /><br />
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
	<td width="100%">
		<div class="smallfont">&nbsp;</div>
		<if condition="$show['threadslist']">$forumrules</if>
	</td>
	<td>
		$forumjump
		<if condition="!$show['popups'] AND $show['adminoptions']">
			<br />
			<form action="moderator.php" method="get">			
			<input type="hidden" name="s" value="$session[sessionhash]" />
			<input type="hidden" name="f" value="$forumid" />
			<div class="smallfont"><strong>$vbphrase[admin_tools]</strong>:</div>
			<select name="do" onchange="this.form.submit();">
				<optgroup label="$vbphrase[admin_tools]">
					<option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
					<option value="modattach">$vbphrase[view_attachment_queue]</option>
					<option value="move">$vbphrase[mass_move]</option>
					<option value="prune">$vbphrase[mass_prune]</option>
					<if condition="$show['addmoderator']">
						<option value="addmoderator">$vbphrase[add_moderator]</option>
					</if>
				</optgroup>
			</select>$gobutton			
			</form>
		</if>
	</td>
</tr>
</table>
<!-- / forum rules & forum jump -->
Hope you didn't mind me putting it in this thread rather than start a new one, as it relates to the icon key anyway.
Reply With Quote
  #18  
Old 09-15-2005, 05:20 AM
G-Unot G-Unot is offline
 
Join Date: Sep 2005
Location: Brooklyn, New York
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got a question, I can't find the code

Code:
 <table cellpadding="2" cellspacing="0" border="0"> 
<tr> 
<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td> 
<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td> 
</tr> 
<tr> 
<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td> 
<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td> 
</tr> 
<tr> 
<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td> 
<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td> 
</tr> 
</table>
in any of my skin, and I'm running 3.0.8.
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 04:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06027 seconds
  • Memory Usage 2,303KB
  • Queries Executed 22 (?)
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
  • (3)bbcode_code
  • (2)bbcode_php
  • (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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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