The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
How Can I
My only real question is how can i make this change so it stays with the style of each template that is being used instead of me having to draw the individual files?
Code:
<?php // this is for the master section, 86 = starcraft // http://www.choasgaming.com/forums/forumdisplay.php?f=86 $id93 = 86; echo ' <table width="100%" border="0" cellpadding="0" cellspacing="0" background="http://www.choasgaming.com/forums/grunged/misc/cat_title_bg.gif"> <tr> <td width="22" background="http://www.choasgaming.com/forums/grunged/misc/cat_title_bg.gif"><img src="http://www.choasgaming.com/forums/grunged/misc/cat_title_left.gif" width="22" height="31"></td> <td background="http://www.choasgaming.com/forums/grunged/misc/cat_title_left_bg.gif" style="background-repeat:no-repeat;"> <font class="container">Starcraft Section</font></td> <td background="http://www.choasgaming.com/forums/grunged/misc/cat_title_bg.gif"> <div align="right"><a style="float:right" href="#top" onclick="return toggle_collapse("forumbit_84")"><img id="collapseimg_forumbit_84" src="http://www.choasgaming.com/forums/grunged/buttons/collapse_tcat.gif" alt="" border="0" /></a> </div></td> <td width="21" background="http://www.choasgaming.com/forums/grunged/misc/cat_title_bg.gif"><div align="right"><img src="http://www.choasgaming.com/forums/grunged/misc/cat_title_right.gif" width="21" height="31"></div></td> </tr> </table> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tbody id="collapseobj_forumbit_84" style=""> <tr align="center"> <td class="thead" width="50"> </td> <td class="thead" align="left">Forum</td> <td class="thead" width="200">Last Post</td> <td class="thead" width="40">Threads</td> <td class="thead" width="40">Posts</td> <td class="thead">Moderator</td> </tr> <tr align="center"><tr align="center"> <td class="alt1Active" align="left" id="f86"> <div> <a href="forumdisplay.php?f=86"><strong>Starcraft</strong></a> </div> <div class="smallfont" style="margin-top:6px"><strong>Sub-Forums</strong>: <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" > <tr valign="top"> '; $counter = -1; $array = array(); $querya = "SELECT * FROM forum WHERE parentid = " . $id93; $resulta = mysql_query($querya) or die(mysql_error()); while($rowa = mysql_fetch_array($resulta)){ $counter = $counter + 1; $array[$counter] = $rowa[lastpost]; echo ' <tr><td style="text-transform:none;font-size:13px;white-space:nowrap;" width="100%"> <img class="inlineimg" src="http://www.choasgaming.com/forums/grunged/statusicon/subforum_old.gif" alt="" border="0" id="forum_statusicon_' . $rowa["forumid"] . '" /> <a href="forumdisplay.php?f=' . $rowa["forumid"] . '">' . $rowa["forumid"] . '</a></td></tr> '; } echo ' <td> </td> </table></div> </td> <td class="alt2" nowrap="nowrap" width="175"> <div class="smallfont" align=""> <div> <span style="white-space:nowrap"> <img class="inlineimg" src="http://www.choasgaming.com/forums/images/icons/icon1.gif" alt="" border="0" /> '; $id2 = max ($array); $queryb = 'SELECT * FROM forum WHERE lastpost = '. $id2; $resultb = mysql_query($queryb) or die(mysql_error()); while($rowb = mysql_fetch_array($resultb)){ $short1 = strlen($rowb["lastthread"]); if ($short1 > 25){ $short1 = substr($rowb["lastthread"], 0, 25); $short = $short1 . "..."; }else { $short = $rowb[lastthread]; } echo ' <a href="showthread.php?goto=newpost&t=' . $rowb["lastthreadid"] . '" style=white-space:nowrap title="Go to first unread post in thread '.$rowb[lastthread].'"> <strong>' . $short . '</strong></a> </span> </div> <div style="white-space:nowrap; float:"> by <a href="member.php?find=lastposter&f=' . $rowb[forumid] . '" rel="nofollow">' . $rowb[lastposter] . '</a> </div> <div align="" style="white-space:nowrap"> 2 Days Ago <a href="showthread.php?p=' . $rowb[lastthreadid] . '#post' . $rowb[lastthreadid] . '"><img class="inlineimg" src="http://www.choasgaming.com/forums/grunged/buttons/lastpost.gif" alt="Go to last post" border="0" /></a> </div> </div> </td> <td class="alt1" width="65">25</td> <td class="alt2" width="65">69</td> <td class="alt1" width="120"><div class="smallfont"> </div></td> </tr> </tbody> </table> '; } ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|