The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Thread Starter in own column
I need some help with this. Ive edited the forum display to have a thread starter column, but everything messes up and it just shifts along one, so views doesnt even have anything in it..
Im totally confused with this, but I really need it vB2 style for this... Aslong as it just has the username of the person who posted the thread there im happy. Please please plaese help me Thankyou |
#2
|
||||
|
||||
Hi Jazzie
I think I know what you're talking about..... Checkout my forum here (Its not nearly complete yet) Is that what you're trying to accomplish? If so, you have make sure your columns in your forumdisplay template match those in your threadbit template as the threadbit inherits its columns from the forumdisplay table. If you need more help, I can give you a copy of my templates. |
#3
|
|||
|
|||
Yeah... Thats exactly it... It would be great if you could give me a copy.. Thankyou so much
|
#4
|
||||
|
||||
Here you are.... I would disect the code you want out of mine and not paste it verbatim as I have pretty much changed almost everything within both templates.
Forumdisplay Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <meta name="description" content="$foruminfo[description]" /> <title>$vboptions[bbtitle] - $foruminfo[title]</title> </head> <body> $headinclude $header $navbar <if condition="$show['forumslist']"> <!-- sub-forum list --> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[tablewidth]" align="center"> <tr> <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">Nested Forums</span></td> </tr> <tr align="center"> <td class="thead"> </td> <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead" width="60" nowrap>$vbphrase[posts]</td> <td class="thead" width="60" nowrap>$vbphrase[threads]</td> <td class="thead" width="175" nowrap>$vbphrase[last_post]</td> <if condition="$vboptions[showmoderatorcolumn]"> <td class="thead">$vbphrase[moderator]</td> </if> </tr> $forumbits </table> <table cellpadding="0" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td width="100%" height="15" bgcolor="#DEDECC"></td> </tr> </table> <br /> <!-- / sub-forum list --> </if> <if condition="$show['threadslist']"> <!-- threads list --> <!-- controls above thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td class="smallfont" nowrap><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" border="0" alt="$vbphrase[post_new_thread]" /></a> </td> <td class="smallfont" nowrap width="100%" valign="middle"> <if condition="$moderatorslist"> <span class="smallfont"> <b>Moderators:</b> $moderatorslist </span> </if> </td> <td width="200" valign="middle" align="$stylevar[right]" nowrap> <if condition="$pagenav">$pagenav</if></td> </tr> </table> <!-- / controls above thread list --> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center" style="border-bottom-width:0px"> <tr> <td class="tcat" width="100%">Active Forum: <i>$foruminfo[title]</i></td> <td class="vbmenu_control" id="icons" nowrap> <a href="#rules">Icon Legend</a> <script type="text/javascript"> vbmenu_register("icons"); </script> </td> <td class="vbmenu_control" id="rules" nowrap> <a href="#rules">Posting Rules</a> <script type="text/javascript"> vbmenu_register("rules"); </script> </td> <td class="vbmenu_control" id="forumtools"><a href="#forumtools">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></td> </tr> </table> <div align="center"> <center> <table cellpadding="0" cellspacing="$stylevar[cellspacing]" width="100%" style="border-collapse: collapse" bordercolor="#111111"> $announcebits <tr> <td class="thead" colspan="2" width="46"> </td> <td class="thead" width="100%"> <a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] </td> <td class="thead" width="100" align="center" nowrap> <a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername] </td> <td class="thead" width="50" align="center" nowrap> <a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg] </td> <td class="thead" align="center" width="60" nowrap> <a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</td> <td class="thead" align="center" width="60" nowrap> <a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]</td> <td class="thead" align="center" width="175" nowrap> <a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</td> </tr> <if condition="$show['threads']"> <!-- show threads --> <if condition="$show['stickies']"> $threadbits_sticky <!-- <tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>"> </td></tr>--> </if> $threadbits <!-- end show threads --> <else /> <!-- show no threads message --> <tr> <td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center"> <div style="padding: 16px"> <if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br /> <span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if> </div> </td> </tr> <!-- end show no threads message --> </if> </table> </center> </div> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="100%" height="15" bgcolor="#DEDECC" align="right"> </td> </tr> </table> <!-- controls below thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" height="30"> <tr> <td class="smallfont" height="26" valign="middle"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"> <img src="$stylevar[imgdir_button]/newthread.gif" border="0" alt="$vbphrase[post_new_thread]" align="absmiddle" /></a></td> <td align="$stylevar[right]"> <A style="TEXT-DECORATION: none" href="index.php?#top"><SPAN class=smallfont>Return to Top</SPAN></A> | <span class="smallfont"><a style="text-decoration:none" href="subscription.php?$session[sessionurl]do=addsubscription&f=$foruminfo[forumid]">Subscribe to This Forum</a> | <a style="text-decoration:none" href="forumdisplay.php?$session[sessionurl]do=markread&f=$foruminfo[forumid]">Mark This Forum Read</a></span> </td> </tr> </table> <!-- / controls below thread list --> <!-- Active Users in this Forum (and sub-forums) and Moderators --> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td width="100%" height="20" bgcolor="#DEDEBB"> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" style="border-bottom-width:0px"> <tr> <td class="vbmenu_control" id="forumsearch"><a href="#forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td> </tr> </table> </td> </tr> <tr> <td width="100%" align="right" bgcolor="#DEDECC"> <form action="forumdisplay.php" method="get"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="f" value="$forumid" /> <input type="hidden" name="page" value="$pagenumber" /> <input type="hidden" name="pp" value="$perpage" /> <table border="0" align="center"> <td nowrap><span class="smallfont">Sort by:</span></td> <td> <select name="sort" style="width:125px"> <option value="title" $sort[title]>$vbphrase[thread_title]</option> <option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option> <option value="replycount" $sort[replycount]>$vbphrase[number_of_replies]</option> <option value="views" $sort[views]>$vbphrase[number_of_views]</option> <option value="postusername" $sort[postusername]>$vbphrase[thread_starter]</option> <option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option> </select></td> <td nowrap><span class="smallfont">Since:</span></td> <td> <select name="daysprune" style="width:125px"> <option value="1" $daysprunesel[1]>$vbphrase[last_day]</option> <option value="2" $daysprunesel[2]>$vbphrase[last_2_days]</option> <option value="7" $daysprunesel[5]>$vbphrase[last_week]</option> <option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option> <option value="14" $daysprunesel[20]>$vbphrase[last_2_weeks]</option> <option value="30" $daysprunesel[30]>$vbphrase[last_month]</option> <option value="45" $daysprunesel[45]>$vbphrase[last_45_days]</option> <option value="60" $daysprunesel[60]>$vbphrase[last_2_months]</option> <option value="75" $daysprunesel[75]>$vbphrase[last_75_days]</option> <option value="100" $daysprunesel[100]>$vbphrase[last_100_days]</option> <option value="365" $daysprunesel[365]>$vbphrase[last_year]</option> <option value="-1" $daysprunesel[all]>$vbphrase[beginning]</option> </select></td> <td nowrap><span class="smallfont">Order By:</span></td> <td> <select name="order" style="width:100px"> <option value="asc" $order[asc]>$vbphrase[ascending]</option> <option value="desc" $order[desc]>$vbphrase[descending]</option> </select></td> <td nowrap> <input type="submit" class="button" value="Sort" style="width:40px" /></td> </table> </form> </td> </tr> <tr> <td width="100%"> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"><tr> <td align="$stylevar[right]"> <if condition="$pagenav">$pagenav</if> </td> </tr></table> </td> </tr> </table> <!-- End Active Users in this Forum (and sub-forums) and Moderators --> <if condition="$vboptions['usepopups']"> <br /> <!-- popup menu contents --> <!-- forum tools menu --> <div class="vbmenu_popup" id="forumtools_menu" style="display:none"> <form action="moderator.php" method="post" name="forumadminform"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead">$vbphrase[forum_tools]<a name="forumtools"> </a></td></tr> <tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]">$vbphrase[post_a_new_thread]</a></td></tr> <tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread&f=$foruminfo[forumid]">$vbphrase[mark_this_forum_read]</a></td></tr> <tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]do=addsubscription&f=$foruminfo[forumid]">$vbphrase[subscribe_to_this_forum]</a></td></tr> <tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]">$vbphrase[view_parent_forum]</a></td></tr> <if condition="$show['adminoptions']"> <tr> <td class="thead">$vbphrase[admin_tools]<a name="forumadmin"> </a></td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <div><label for="fa_mpo"><input type="radio" name="do" id="fa_mpo" value="modposts" checked="checked" />$vbphrase[view_posts_queue]</label></div> <div><label for="fa_mat"><input type="radio" name="do" id="fa_mat" value="modattach" />$vbphrase[view_attachment_queue]</label></div> <div><label for="fa_mov"><input type="radio" name="do" id="fa_mov" value="move" />$vbphrase[massmove_threads]</label></div> <div><label for="fa_prn"><input type="radio" name="do" id="fa_prn" value="prune" />$vbphrase[massprune_threads]</label></div> <if condition="$show['addmoderator']"> <div><label for="fa_amd"><input type="radio" name="do" id="fa_amd" value="addmoderator" />$vbphrase[add_moderator]</label></div> </if> </td> </tr> <tr> <td class="vbmenu_option" title="nohilite" align="center"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="f" value="$forumid" /> <input type="submit" class="button" value="$vbphrase[perform_action]" /> </td> </tr> </if> </table> </form> </div> <!-- / forum tools menu --> <!-- rules tools menu --> <div class="vbmenu_popup" id="rules_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0" name="rules"> <tr> <td class="thead">Posting Rules</td> </tr><tr> <td> $forumrules </td> </tr> </table> </div> <!-- / rules tools menu --> <!-- Icon tools menu --> <div class="vbmenu_popup" id="icons_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0" name="icons"> <tr> <td class="thead">Icon Legend</td> </tr><tr> <td> <table cellpadding="2" cellspacing="0" border="0"> <tr align="$stylevar[left]"> <td><img src="$stylevar[imgdir_statusicon]/thread_new.gif" alt="$vbphrase[new_posts]" border="0" /></td> <td class="smallfont">New Posts</td> </tr> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread.gif" alt="$vbphrase[no_new_posts]" border="0" /></td> <td class="smallfont">No New Posts</td> </tr> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread_hot_new.gif" alt="$vbphrase[hot_thread_with_new_posts]" border="0" /></td> <td class="smallfont">Hot thread - New Posts</td> </tr> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread_hot.gif" alt="$vbphrase[hot_thread_with_no_new_posts]" border="0" /></td> <td class="smallfont">Hot thread - No New Posts</td> </tr> <tr> <td><img src="$stylevar[imgdir_statusicon]/thread_lock.gif" alt="$vbphrase[closed_thread]" border="0" /></td> <td class="smallfont">Closed Thread</td> </tr> </table> </td> </tr> </table> </div> <!-- / icon tools menu --> <if condition="$show['forumsearch']"> <!-- forum search menu --> <div class="vbmenu_popup" id="forumsearch_menu" style="display:none"> <form action="search.php" method="post"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$vbphrase[search_this_forum]<a name="forumsearch"> </a></td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="forumchoice" value="$forumid" /> <input type="hidden" name="childforums" value="1" /> <input type="text" class="bginput" name="query" size="20" />$gobutton<br /> </td> </tr> <tr> <td class="vbmenu_option"><a href="search.php?$session[sessionurl]forumid=$forumid">$vbphrase[advanced_search]</a></td> </tr> </table> </form> </div> <!-- / forum search menu --> </if> <!-- / popup menu contents --> <else /> <!-- controls for non-popup browsers --> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px"> <tr> <td class="thead">$vbphrase[forum_tools]<a name="forumtools"> </a></td> <td class="thead">$vbphrase[search_this_forum]</td> </tr> <tr valign="top"> <!-- forum tools --> <td class="alt1"> <div class="smallfont"> <div><img src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[mark_this_forum_read]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]do=markread&f=$foruminfo[forumid]">$vbphrase[mark_this_forum_read]</a></div> <div><img src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" /> <a href="subscription.php?$session[sessionurl]do=addsubscription&f=$foruminfo[forumid]">$vbphrase[subscribe_to_this_forum]</a></div> <div><img src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[view_parent_forum]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]">$vbphrase[view_parent_forum]</a></div> </div> </td> <!-- / forum tools --> <!-- search this forum --> <td class="alt1"> <form action="search.php" method="post"> <div class="smallfont"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="forumchoice" value="$forumid" /> <input type="hidden" name="childforums" value="1" /> <strong>$vbphrase[search_this_forum]</strong>:<br /> <input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br /> <a href="search.php?$session[sessionurl]forumid=$forumid">$vbphrase[advanced_search]</a> </div> </form> </td> <!-- / search this forum --> </tr> </table> <!-- / controls for non-popup browsers --> </if> <!-- ############## END THREADS LIST ############## --> </if> $footer </body> </html> Threadbit Code:
<tr> <td class="alt1"> <table cellpadding="0" cellspacing="0" width="35"> <tr> <td width="100%" nowrap> <img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="0" /> </td> </tr> </table> </td> <if condition="$show['threadicons']"> <td class="alt2" bgcolor="#F1F1ED"> <table cellpadding="0" cellspacing="0" width="35"> <tr> <td width="100%" nowrap align="center"> <img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /> </td> </tr> </table> </td> </if> <td class="alt1Active" id="t$thread[threadid]" align="left"> <div> <if condition="$show['paperclip']"><img src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></if> <if condition="$show['subscribed']"><img src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if> <if condition="$show['sticky']"><img src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /></if> <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if> $thread[movedprefix] $thread[typeprefix] <a style="text-decoration:none" href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" title="$thread[preview]">$thread[threadtitle]</a> <if condition="$thread['pagenav']"><span class="smallfont" style="white-space:nowrap">( <img src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav] <if condition="$show[pagenavmore]">... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&goto=lastpost">$vbphrase[last_page]</a></if> )</span></if> </div> <if condition="$show['unsubscribe']"> <div class="smallfont"> <a href="newreply.php?$session[sessionurl]do=newreply&t=$thread[threadid]">$vbphrase[reply]</a> | <a href="subscription.php?$session[sessionurl]do=removesubscription&return=ucp&t=$thread[threadid]">$vbphrase[unsubscribe]</a> </div> </if> </td> <if condition="$show['notificationtype']"> <td class="alt1"><div class="smallfont"> <label for="sub$subscribethread[$threadid]">$thread[notification]<input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></label> <input type="hidden" name="oldemailupdate[$subscribethread[$threadid]]" id="oe_$subscribethread[$threadid]" value="$emailupdate[$threadid]" /> </td> <else /> <td align="center" bgcolor="#F1F1ED" width="100"><div class="smallfont"> <div class="smallfont"> <if condition="$show['guestuser']"> $thread[postusername] <else /> <span style="cursor:hand" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span> </if> </div> </td> <td nowrap align="center" width="60" nowrap><if condition="$show['threadratings'] AND $show['threadrating']"><img src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></if> </td> <td bgcolor="#F1F1ED" align="center"> <table border="0" cellpadding="0" cellspacing="0" width="35" nowrap> <tr> <td width="100%" align="center"><a href="#" onclick="who($thread[threadid])"><span class="smallfont">$thread[replycount]</span></a></td> </tr> </table> </td> <td class="alt2" align="center"> <table border="0" cellpadding="0" cellspacing="0" width="35" nowrap> <tr> <td width="60" nowrap align="center"><span class="smallfont">$thread[views]</span></td> </tr> </table> </td> <td bgcolor="#F1F1ED"> <table border="0" cellpadding="0" cellspacing="0" width="175"> <tr> <td width="100%" align="center"><b><span class="smallfont"><phrase 1="member.php?find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]"><b>$vbphrase[by_x]</b></phrase></span> <a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"></a> </b></td> <td rowspan="2"><a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> </td> </tr> <tr> <td align="center"><span class="smallfont">$thread[lastpostdate]</span> <if condition="!$show['detailedtime']"><span class="smallfont">$thread[lastposttime]</span></if></td> </tr> </table> </td> <if condition="$show['forumlink']"> <td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td> </if> </if> </tr> |
#5
|
||||
|
||||
My mod :P
Thread starter column in forumdisplay & last post by at final (like vb2) Ups !!! i don't see your post UBER >.< sorry man :/ |
#6
|
|||
|
|||
Thanks uber. It works now... And alos thanks to Dx aswell.. I didnt use your code as a referance, but thanks for trying to help
|
#7
|
||||
|
||||
Glad it worked out for you Jazzie, you're welcome!
[Dx] dont sweat it man... All input is totally welcome. You know what they say about one thousand monkeys with one thousand typewriters... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|