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

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
  #52  
Old 07-12-2009, 06:30 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dimthan View Post
where i can find some good icons for my forum using this add ?
thx in advance
Just google FREE graphics, icons etc there are several sites offering such w/ very flexible licenses but be sure to read & abide by their terms of use.
Reply With Quote
  #53  
Old 07-13-2009, 06:06 AM
abdulbasitsaeed's Avatar
abdulbasitsaeed abdulbasitsaeed is offline
 
Join Date: Mar 2009
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod, Sofia. Thank you very much for it.

I know you're on vacations, but is it possible to add a separator between the category icon and it's title & description, as shown in the attachment.


Attachment 101885
Reply With Quote
  #54  
Old 07-15-2009, 11:34 AM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdulbasitsaeed View Post
Excellent mod, Sofia. Thank you very much for it.

I know you're on vacations, but is it possible to add a separator between the category icon and it's title & description, as shown in the attachment.


Attachment 101885
You want to use a "td" ? If you want it, you must do that:

In your template forumhome_forumbit_level1_nopost

Find:

HTML Code:
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">

Replace by:

HTML Code:
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">7<else />6</if>">
In the template forumhome_forumbit_level2_post

Find

HTML Code:
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
Add below:

HTML Code:
<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left"/></a></td>
In the template forumhome

Find:

HTML Code:
<thead>
    <tr align="center">
      <td class="thead">&nbsp;</td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead">$vbphrase[last_post]</td>
      <td class="thead">$vbphrase[threads]</td>
      <td class="thead">$vbphrase[posts]</td>
      <if condition="$vboptions['showmoderatorcolumn']">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>
</thead>
Replace by:

HTML Code:
<thead>
    <tr align="center">
      <td class="thead">&nbsp;</td>
<td class="thead">&nbsp;</td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead">$vbphrase[last_post]</td>
      <td class="thead">$vbphrase[threads]</td>
      <td class="thead">$vbphrase[posts]</td>
      <if condition="$vboptions['showmoderatorcolumn']">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>
</thead>
Reply With Quote
  #55  
Old 07-15-2009, 02:24 PM
And 1 And 1 is offline
 
Join Date: Aug 2008
Location: Chimbarongo, Region de O'
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks...
Reply With Quote
  #56  
Old 07-17-2009, 12:54 PM
H22A H22A is offline
 
Join Date: Apr 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no files uploaded !!!!
how to download?
Reply With Quote
  #57  
Old 07-17-2009, 01:43 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by H22A View Post
no files uploaded !!!!
how to download?
There are no file to download What do you want to download?
Reply With Quote
  #58  
Old 07-18-2009, 04:11 AM
abdulbasitsaeed's Avatar
abdulbasitsaeed abdulbasitsaeed is offline
 
Join Date: Mar 2009
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sofia View Post
You want to use a "td" ? If you want it, you must do that:

In your template forumhome_forumbit_level1_nopost

Find:

HTML Code:
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">

Replace by:

HTML Code:
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">7<else />6</if>">
In the template forumhome_forumbit_level2_post

Find

HTML Code:
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
Add below:

HTML Code:
<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left"/></a></td>
In the template forumhome

Find:

HTML Code:
<thead>
    <tr align="center">
      <td class="thead">&nbsp;</td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead">$vbphrase[last_post]</td>
      <td class="thead">$vbphrase[threads]</td>
      <td class="thead">$vbphrase[posts]</td>
      <if condition="$vboptions['showmoderatorcolumn']">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>
</thead>
Replace by:

HTML Code:
<thead>
    <tr align="center">
      <td class="thead">&nbsp;</td>
<td class="thead">&nbsp;</td>
      <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead">$vbphrase[last_post]</td>
      <td class="thead">$vbphrase[threads]</td>
      <td class="thead">$vbphrase[posts]</td>
      <if condition="$vboptions['showmoderatorcolumn']">
      <td class="thead">$vbphrase[moderator]</td>
      </if>
    </tr>
</thead>
Dear Sofia,

Thank you for replying. However, I'm running into some trouble. Of the 3 codes you have asked to replace, I was able to locate only the second one. In template 1 and 3 you have mentioned, there is no such code which you have pointed out to replace. I think this may be because I'm using a custom skin.

I'll paste the code for the 3 templates in the next post. Hopefully, you would be able to point out where I'm missing something.
Reply With Quote
  #59  
Old 07-18-2009, 04:15 AM
abdulbasitsaeed's Avatar
abdulbasitsaeed abdulbasitsaeed is offline
 
Join Date: Mar 2009
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Template: forumhome_forumbit_level1_nopost

Code:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
	<td><img src="$stylevar[imgdir_misc]/_cat-top_lft3.gif" alt="" /></td>
	<td width="100%" class="cat-top_x3">
<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']"><span class="smallfont">: $forum[description]</span></if>
</td>
	<td><img src="$stylevar[imgdir_misc]/_cat-top_rht3.gif" alt="" /></td>
 </tr></table>
<div class="side_lft3">
      <div class="side_rht3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<if condition="$show['subforums']">
<tbody>
<tr>
	<td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><div class="smallfont"><ul class="subforum">$forum[subforums]</ul><br class="clear" /></div></td>
</tr>
</tbody>
	</if>
<if condition="$childforumbits">
<if condition="!$show['collapsable_forums']">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
</if>
 <tr align="center">
	<td class="thead">&nbsp;</td>
	<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
	<td class="thead" nowrap="nowrap">$vbphrase[last_post]<div class="lastpost_w"></div></td>
	<td class="thead" nowrap="nowrap">$vbphrase[threads]<div class="threads_w"></div></td>
	<td class="thead" nowrap="nowrap">$vbphrase[posts]<div class="posts_w"></div></td>
<if condition="$vboptions['showmoderatorcolumn']">
	<td class="thead">$vbphrase[moderator]</td>
	  </if>
 </tr>
$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>
</table>
</div>
 </div>
<div class="cat-btm_x3"><div class="cat-btm_lft3"></div><div class="cat-btm_rht3"></div></div>
<br />


Template: forumhome_forumbit_level2_post

Code:
<tr align="center">
	<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
	<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
		<div>
<!-- Code begin by Saeed -->
			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].png" hspace="4px" align="left"/></a>
<!-- Code end by Saeed -->
			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
			<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
		</div>
		<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
		<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
		<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><ul class="subforum">$forum[subforums]</ul><br class="clear" /></div></if>
	</td>
	<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
	<td class="alt1">$forum[threadcount]</td>
	<td class="alt2">$forum[replycount]</td>
	<if condition="$vboptions['showmoderatorcolumn']">
	<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
	</if>
</tr>
$childforumbits


Template: forumhome

Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
	<!-- no cache headers -->
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="-1" />
	<meta http-equiv="Cache-Control" content="no-cache" />
	<!-- end no cache headers -->
	$headinclude
	<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar

<if condition="$show['guest']">
<!-- guest welcome message -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
	<td><img src="$stylevar[imgdir_misc]/_cat-top_lft3.gif" alt="" /></td>
	<td width="100%" class="cat-top_x3">
<phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase>
</td>
	<td><img src="$stylevar[imgdir_misc]/_cat-top_rht3.gif" alt="" /></td>
 </tr></table>
<div class="side_lft3">
      <div class="side_rht3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="alt1">
		<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
	</td>
</tr>
</table>
</div>
 </div>
<div class="cat-btm_x3"><div class="cat-btm_lft3"></div><div class="cat-btm_rht3"></div></div>
<!-- / guest welcome message -->
<br />
</if>

<!-- main -->
$forumbits

$forumhome_markread_script
<!-- /main -->

<br />
$ad_location[ad_forumhome_afterforums]


<!-- what's going on box -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
	<td><img src="$stylevar[imgdir_misc]/_cat-top_lft3.gif" alt="" /></td>
	<td width="100%" class="cat-top_x3">
$vbphrase[whats_going_on]
</td>
	<td><img src="$stylevar[imgdir_misc]/_cat-top_rht3.gif" alt="" /></td>
 </tr></table>
<div class="side_lft3">
      <div class="side_rht3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$template_hook[forumhome_wgo_pos1]
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
	<tr>
		<td class="thead" colspan="2">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
			<a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
		</td>
	</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
	<tr>
		<td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
		<td class="alt1" width="100%">
			<div class="smallfont">
				<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
				<div>$activeusers</div>
			</div>
		</td>
	</tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
	<tr>
		<td class="thead" colspan="2">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
			<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
		</td>
	</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
	<tr>
		<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
		<td class="alt1" width="100%">
		<div class="smallfont">
			<div>
				$vbphrase[threads]: $totalthreads,
				$vbphrase[posts]: $totalposts,
				$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
					<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
				</if>
			</div>
			<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
			$template_hook[forumhome_wgo_stats]
		</div>
		</td>
	</tr>
</tbody>
$template_hook[forumhome_wgo_pos3]
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
	<tr>
		<td class="thead" colspan="2">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
			$vbphrase[todays_birthdays]
		</td>
	</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
	<tr>
		<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
		<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
	</tr>
</tbody>
<!-- end today's birthdays -->
</if>
$template_hook[forumhome_wgo_pos4]
<if condition="$show['upcomingevents']">
<tbody>
	<tr>
		<td class="thead" colspan="2">
			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
			<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
		</td>
	</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
	<tr>
		<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
		<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
	</tr>
</tbody>
</if>
$template_hook[forumhome_wgo_pos5]
<tbody>
	<tr>
		<td class="tfoot" align="center" colspan="2"><div class="smallfont"><strong>
			<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
			<if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
			<a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
	<if condition="!$show['guest']">
		<!-- member logout -->
		&nbsp; &nbsp;<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a>
		<!-- end member logout -->
	</if>
		</strong></div></td>
	</tr>
</tbody>
</table>
</div>
 </div>
<div class="cat-btm_x3"><div class="cat-btm_lft3"></div><div class="cat-btm_rht3"></div></div>
<br />
<!-- end what's going on box -->

<!-- icons and login code -->
<table class="tborder" align="center" cellpadding="3" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
	<td class="alt2 smallfont"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" />
			$vbphrase[forum_contains_new_posts]
			&nbsp; <img class="inlineimg" src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" />
			$vbphrase[forum_contains_no_new_posts]
		<if condition="$vboptions['showlocks']">
			&nbsp; <img class="inlineimg" src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" />
			$vbphrase[forum_is_closed_for_posting]
		</if>
	</td>
</tr>
</table>
<!-- / icons and login code -->

$footer
</body>
</html>
Reply With Quote
  #60  
Old 07-18-2009, 04:44 AM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdulbasitsaeed View Post
Template: forumhome_forumbit_level1_nopost

Code:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
    <td><img src="$stylevar[imgdir_misc]/_cat-top_lft3.gif" alt="" /></td>
    <td width="100%" class="cat-top_x3">
<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']"><span class="smallfont">: $forum[description]</span></if>
</td>
    <td><img src="$stylevar[imgdir_misc]/_cat-top_rht3.gif" alt="" /></td>
 </tr></table>
<div class="side_lft3">
      <div class="side_rht3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <if condition="$show['subforums']">
<tbody>
<tr>
    <td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"><div class="smallfont"><ul class="subforum">$forum[subforums]</ul><br class="clear" /></div></td>
</tr>
</tbody>
    </if>
<if condition="$childforumbits">
<if condition="!$show['collapsable_forums']">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
</if>
 <tr align="center">
    <td class="thead">&nbsp;</td>
    <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
    <td class="thead" nowrap="nowrap">$vbphrase[last_post]<div class="lastpost_w"></div></td>
    <td class="thead" nowrap="nowrap">$vbphrase[threads]<div class="threads_w"></div></td>
    <td class="thead" nowrap="nowrap">$vbphrase[posts]<div class="posts_w"></div></td>
<if condition="$vboptions['showmoderatorcolumn']">
    <td class="thead">$vbphrase[moderator]</td>
      </if>
 </tr>
$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>
</table>
</div>
 </div>
<div class="cat-btm_x3"><div class="cat-btm_lft3"></div><div class="cat-btm_rht3"></div></div>
<br />
Template: forumhome_forumbit_level2_post

Code:
<tr align="center">
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
    <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
        <div>
<!-- Code begin by Saeed -->
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].png" hspace="4px" align="left"/></a>
<!-- Code end by Saeed -->
            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
            <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
        </div>
        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
        <if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
        <if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><ul class="subforum">$forum[subforums]</ul><br class="clear" /></div></if>
    </td>
    <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
    <td class="alt1">$forum[threadcount]</td>
    <td class="alt2">$forum[replycount]</td>
    <if condition="$vboptions['showmoderatorcolumn']">
    <td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
    </if>
</tr>
$childforumbits
Template: forumhome

Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
    <!-- no cache headers -->
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="-1" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <!-- end no cache headers -->
    $headinclude
    <title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</head>
<body>
$header
$navbar

<if condition="$show['guest']">
<!-- guest welcome message -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
    <td><img src="$stylevar[imgdir_misc]/_cat-top_lft3.gif" alt="" /></td>
    <td width="100%" class="cat-top_x3">
<phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase>
</td>
    <td><img src="$stylevar[imgdir_misc]/_cat-top_rht3.gif" alt="" /></td>
 </tr></table>
<div class="side_lft3">
      <div class="side_rht3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
    <td class="alt1">
        <phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
    </td>
</tr>
</table>
</div>
 </div>
<div class="cat-btm_x3"><div class="cat-btm_lft3"></div><div class="cat-btm_rht3"></div></div>
<!-- / guest welcome message -->
<br />
</if>

<!-- main -->
$forumbits

$forumhome_markread_script
<!-- /main -->

<br />
$ad_location[ad_forumhome_afterforums]


<!-- what's going on box -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
    <td><img src="$stylevar[imgdir_misc]/_cat-top_lft3.gif" alt="" /></td>
    <td width="100%" class="cat-top_x3">
$vbphrase[whats_going_on]
</td>
    <td><img src="$stylevar[imgdir_misc]/_cat-top_rht3.gif" alt="" /></td>
 </tr></table>
<div class="side_lft3">
      <div class="side_rht3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$template_hook[forumhome_wgo_pos1]
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>
$template_hook[forumhome_wgo_pos2]
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
            $template_hook[forumhome_wgo_stats]
        </div>
        </td>
    </tr>
</tbody>
$template_hook[forumhome_wgo_pos3]
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
            $vbphrase[todays_birthdays]
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    <tr>
        <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    </tr>
</tbody>
<!-- end today's birthdays -->
</if>
$template_hook[forumhome_wgo_pos4]
<if condition="$show['upcomingevents']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
            <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
    <tr>
        <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
$template_hook[forumhome_wgo_pos5]
<tbody>
    <tr>
        <td class="tfoot" align="center" colspan="2"><div class="smallfont"><strong>
            <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
            <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
            <a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
    <if condition="!$show['guest']">
        <!-- member logout -->
        &nbsp; &nbsp;<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a>
        <!-- end member logout -->
    </if>
        </strong></div></td>
    </tr>
</tbody>
</table>
</div>
 </div>
<div class="cat-btm_x3"><div class="cat-btm_lft3"></div><div class="cat-btm_rht3"></div></div>
<br />
<!-- end what's going on box -->

<!-- icons and login code -->
<table class="tborder" align="center" cellpadding="3" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
    <td class="alt2 smallfont"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" />
            $vbphrase[forum_contains_new_posts]
            &nbsp; <img class="inlineimg" src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" />
            $vbphrase[forum_contains_no_new_posts]
        <if condition="$vboptions['showlocks']">
            &nbsp; <img class="inlineimg" src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" />
            $vbphrase[forum_is_closed_for_posting]
        </if>
    </td>
</tr>
</table>
<!-- / icons and login code -->

$footer
</body>
</html>
Yes, thank you. This code differ from styles.
Reply With Quote
  #61  
Old 07-18-2009, 05:17 AM
abdulbasitsaeed's Avatar
abdulbasitsaeed abdulbasitsaeed is offline
 
Join Date: Mar 2009
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No wonder!

I hope you'll be able to understand where to make the changes.
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 06:39 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.06894 seconds
  • Memory Usage 2,459KB
  • 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
  • (6)bbcode_code
  • (14)bbcode_html
  • (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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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