Anyway to do this, I think having the username under the thread annoying. Sorry if it already been posted, link me cause I did a search and found nothing. And thanks .
Thread starter in seperate column?
Collapse
X
-
It's a simple template modification. I've done it on my test board, but I'm sure its been documented over at www.vbulletintemplates.com as well. -
Go to your:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Display Templates
Use this code for your forumdisplay_announcement template:
HTML Code:<tr> <td class="alt1"><img src="$stylevar[imgdir_statusicon]/announcement_$announcement[statusicon].gif" border="0" alt="$vbphrase[announcement]" /></td> <td class="alt2" colspan="<if condition="$show['threadicons']">6<else />5</if>"> <div> <span class="smallfont" style="float:$stylevar[right]">$vbphrase[views]: <strong>$announcement[views]</strong> <a href="announcement.php?$session[sessionurl]f=$foruminfo[forumid]$announcementidlink"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="" border="0" /></a></span> <strong>$vbphrase[announcement]</strong>: <a href="announcement.php?$session[sessionurl]f=$foruminfo[forumid]$announcementidlink">$announcement[title]</a> </div> <div> <span class="smallfont" style="float:$stylevar[right]">$announcement[postdate]</span> <span class="smallfont"><a href="member.php?$session[sessionurl]u=$announcement[userid]" target="_blank">$announcement[username]</a> ($announcement[usertitle])</span> </div> </td> </tr>
HTML Code:$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <meta name="description" content="$foruminfo[description]" /> <title>$vboptions[bbtitle] - $foruminfo[title]</title> $headinclude </head> <body> $header $navbar <if condition="$show['forumslist']"> <!-- sub-forum list --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px"> <tr> <td class="tcat" width="100%">$vbphrase[subforums]<span class="normal">: $foruminfo[title]</span></td> <if condition="$show['forumsearch']"> <td class="vbmenu_control" id="forumsearch.subforums"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></td> </if> </tr> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr align="center"> <td class="thead"> </td> <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead" width="175">$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> $forumbits </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"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls above thread list --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px"> <tr> <td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal">: $foruminfo[title]</span></td> <td class="vbmenu_control" id="forumtools"><a href="#goto_forumtools">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></td> <if condition="$show['forumsearch']"> <td class="vbmenu_control" id="forumsearch"><a href="#goto_forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td> </if> </tr> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> $announcebits <tr> <if condition="$show['threadicons']"> <td class="thead" colspan="2"> </td> <else /> <td class="thead"> </td> </if> <td class="thead" width="100%"> <if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if> <a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] / <a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername] </td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">Thread Starter</span></td> <td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]</span></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> <!-- controls below thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px"> <tr valign="top"> <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls below thread list --> <br /> <!-- Active Users in this Forum (and sub-forums) and Moderators --> <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 class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">$vbphrase[display_options]</td> <if condition="$show['activeusers']"> <td class="tcat">$vbphrase[currently_active_users]</td> </if> <if condition="$show['moderators']"> <td class="tcat">$vbphrase[moderators]</td> </if> </tr> <tr> <td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td> <if condition="$show['activeusers']"> <td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)</td> </if> <if condition="$show['moderators']"> <td class="thead">$vbphrase[moderators]: $totalmods</td> </if> </tr> <tr valign="top"> <td class="alt1"> <table cellpadding="0" cellspacing="1" border="0" width="100%"> <tr> <td class="smallfont">$vbphrase[sorted_by]:</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> <if condition="$show['threadratings']"><option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option></if> </select></td> <td class="smallfont">$vbphrase[sort_order]:</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> </tr> <tr> <td class="smallfont">$vbphrase[from_the]:</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[7]>$vbphrase[last_week]</option> <option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option> <option value="14" $daysprunesel[14]>$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 class="smallfont"> </td> <td><input type="submit" class="button" value="$vbphrase[show_threads]" style="width:100px" /></td> </tr> </table> </td> <if condition="$show['activeusers']"> <td class="alt1"><div class="smallfont">$activeusers</div></td> </if> <if condition="$show['moderators']"> <td class="alt1"><div class="smallfont">$moderatorslist </div></td> </if> </tr> </table> </form> <!-- 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="goto_forumtools"></a></td></tr> <if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]">$vbphrase[post_a_new_thread]</a></td></tr></if> <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="goto_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 --> <!-- / popup menu contents --> <else /> <!-- controls for non-popup browsers --> <table class="tborder" 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="goto_forumtools"></a></td> <td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td> </tr> <tr valign="top"> <!-- forum tools --> <td class="alt1"> <div class="smallfont"> <div><img class="inlineimg" 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 class="inlineimg" 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 class="inlineimg" 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> <br /> <!-- / controls for non-popup browsers --> </if> <!-- ############## END THREADS LIST ############## --> </if> <if condition="$vboptions['usepopups'] AND $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="goto_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> <!-- icon key --> <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"> </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"> </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"> </td> </if> </tr> </table> <!-- / 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"> </div> $forumrules </td> <td> $forumjump <if condition="!$vboptions['usepopups'] 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 --> $footer </body> </html>
Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates
Use this code for your threadbit template:
HTML Code:<tr> <td class="alt1"><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="" /></td> <if condition="$show['threadicons']"> <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td> </if> <td class="alt1Active" id="t$thread[threadid]" title="$thread[preview]"> <div> <span style="float:$stylevar[right]"> <if condition="$show['paperclip']"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></if> <if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if> <if condition="$show['sticky']"><img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /></if> </span> <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if> $thread[movedprefix] $thread[typeprefix] <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a> <if condition="$thread['pagenav']"><span class="smallfont" style="white-space:nowrap">( <img class="inlineimg" 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$thread[highlight]">$vbphrase[last_page]</a></if> )</span></if> </div> <div class="smallfont"> <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" 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>" /></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> <td class="alt2" align="center" nowrap="nowrap"> <if condition="$show['guestuser']"> $thread[postusername] <else /> <a href="member.php?$session[sessionurl]u=$thread[postuserid]">$thread[postusername]</a> </if> </td> <td class="alt1" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>"> <div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap"> $thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br /> <phrase 1="member.php?find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> <a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> </div> </td> <if condition="$show['notificationtype']"> <td class="alt1"><div class="smallfont" align="$stylevar[right]"> <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]" /> </div></td> <else /> <td class="alt2" align="center"><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></td> <td class="alt1" align="center">$thread[views]</td> <if condition="$show['forumlink']"> <td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td> </if> </if> </tr>
Last edited by Jake Bunce; Sun 14 Mar '04, 9:08am.Comment
-
Originally posted by Jake BunceGo to your:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Display Templates
Do you mean we need to add it at some particular point in the template codes?
Please elaborate for us.Comment
-
-
For some reason I can't edit my last post. Here. The changes are marked in red:
Go to your:
Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Display Templates
Use this code for your forumdisplay_announcement template:
Code:<tr> <td class="alt1"><img src="$stylevar[imgdir_statusicon]/announcement_$announcement[statusicon].gif" border="0" alt="$vbphrase[announcement]" /></td> <td class="alt2" colspan="<if condition="$show['threadicons']">[color=red]6[/color]<else />[color=red]5[/color]</if>"> <div> <span class="smallfont" style="float:$stylevar[right]">$vbphrase[views]: <strong>$announcement[views]</strong> <a href="announcement.php?$session[sessionurl]f=$foruminfo[forumid]$announcementidlink"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="" border="0" /></a></span> <strong>$vbphrase[announcement]</strong>: <a href="announcement.php?$session[sessionurl]f=$foruminfo[forumid]$announcementidlink">$announcement[title]</a> </div> <div> <span class="smallfont" style="float:$stylevar[right]">$announcement[postdate]</span> <span class="smallfont"><a href="member.php?$session[sessionurl]u=$announcement[userid]" target="_blank">$announcement[username]</a> ($announcement[usertitle])</span> </div> </td> </tr>
Code:$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <meta name="description" content="$foruminfo[description]" /> <title>$vboptions[bbtitle] - $foruminfo[title]</title> $headinclude </head> <body> $header $navbar <if condition="$show['forumslist']"> <!-- sub-forum list --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px"> <tr> <td class="tcat" width="100%">$vbphrase[subforums]<span class="normal">: $foruminfo[title]</span></td> <if condition="$show['forumsearch']"> <td class="vbmenu_control" id="forumsearch.subforums"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></td> </if> </tr> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr align="center"> <td class="thead"> </td> <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead" width="175">$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> $forumbits </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"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls above thread list --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px"> <tr> <td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal">: $foruminfo[title]</span></td> <td class="vbmenu_control" id="forumtools"><a href="#goto_forumtools">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></td> <if condition="$show['forumsearch']"> <td class="vbmenu_control" id="forumsearch"><a href="#goto_forumsearch">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></td> </if> </tr> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> $announcebits <tr> <if condition="$show['threadicons']"> <td class="thead" colspan="2"> </td> <else /> <td class="thead"> </td> </if> <td class="thead" width="100%"> <if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if> <a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] / <a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername] </td> [color=red]<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">Thread Starter</span></td>[/color] <td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</span></td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]</span></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> <!-- controls below thread list --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px"> <tr valign="top"> <td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td> <if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls below thread list --> <br /> <!-- Active Users in this Forum (and sub-forums) and Moderators --> <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 class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">$vbphrase[display_options]</td> <if condition="$show['activeusers']"> <td class="tcat">$vbphrase[currently_active_users]</td> </if> <if condition="$show['moderators']"> <td class="tcat">$vbphrase[moderators]</td> </if> </tr> <tr> <td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td> <if condition="$show['activeusers']"> <td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)</td> </if> <if condition="$show['moderators']"> <td class="thead">$vbphrase[moderators]: $totalmods</td> </if> </tr> <tr valign="top"> <td class="alt1"> <table cellpadding="0" cellspacing="1" border="0" width="100%"> <tr> <td class="smallfont">$vbphrase[sorted_by]:</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> <if condition="$show['threadratings']"><option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option></if> </select></td> <td class="smallfont">$vbphrase[sort_order]:</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> </tr> <tr> <td class="smallfont">$vbphrase[from_the]:</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[7]>$vbphrase[last_week]</option> <option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option> <option value="14" $daysprunesel[14]>$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 class="smallfont"> </td> <td><input type="submit" class="button" value="$vbphrase[show_threads]" style="width:100px" /></td> </tr> </table> </td> <if condition="$show['activeusers']"> <td class="alt1"><div class="smallfont">$activeusers</div></td> </if> <if condition="$show['moderators']"> <td class="alt1"><div class="smallfont">$moderatorslist </div></td> </if> </tr> </table> </form> <!-- 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="goto_forumtools"></a></td></tr> <if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]">$vbphrase[post_a_new_thread]</a></td></tr></if> <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="goto_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 --> <!-- / popup menu contents --> <else /> <!-- controls for non-popup browsers --> <table class="tborder" 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="goto_forumtools"></a></td> <td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td> </tr> <tr valign="top"> <!-- forum tools --> <td class="alt1"> <div class="smallfont"> <div><img class="inlineimg" 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 class="inlineimg" 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 class="inlineimg" 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> <br /> <!-- / controls for non-popup browsers --> </if> <!-- ############## END THREADS LIST ############## --> </if> <if condition="$vboptions['usepopups'] AND $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="goto_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> <!-- icon key --> <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"> </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"> </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"> </td> </if> </tr> </table> <!-- / 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"> </div> $forumrules </td> <td> $forumjump <if condition="!$vboptions['usepopups'] 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 --> $footer </body> </html>
Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates
Use this code for your threadbit template:
Code:<tr> <td class="alt1"><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="" /></td> <if condition="$show['threadicons']"> <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td> </if> <td class="alt1Active" id="t$thread[threadid]" title="$thread[preview]"> <div> <span style="float:$stylevar[right]"> <if condition="$show['paperclip']"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></if> <if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if> <if condition="$show['sticky']"><img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /></if> </span> <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if> $thread[movedprefix] $thread[typeprefix] <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a> <if condition="$thread['pagenav']"><span class="smallfont" style="white-space:nowrap">( <img class="inlineimg" 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$thread[highlight]">$vbphrase[last_page]</a></if> )</span></if> </div> <div class="smallfont"> <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" 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>" /></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> [color=red]<td class="alt2" align="center" nowrap="nowrap"> <if condition="$show['guestuser']"> $thread[postusername] <else /> <a href="member.php?$session[sessionurl]u=$thread[postuserid]">$thread[postusername]</a> </if> </td>[/color] <td class="[color=red]alt1[/color]" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>"> <div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap"> $thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br /> <phrase 1="member.php?find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> <a href="showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a> </div> </td> <if condition="$show['notificationtype']"> <td class="alt1"><div class="smallfont" align="$stylevar[right]"> <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]" /> </div></td> <else /> <td class="[color=red]alt2[/color]" align="center"><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></td> <td class="[color=red]alt1[/color]" align="center">$thread[views]</td> <if condition="$show['forumlink']"> <td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td> </if> </if> </tr>
Comment
-
Jake thats alot! it looks much better but one problem....the "new thread" button disappears....me being a newbie I dont wanna mess with code, can you possibly fix this for me? thanks
EDIT- also when i click "New posts" the top bar that says Thread, Thread Starter, last Post etc is not lined up correctlyLast edited by nando415; Mon 15 Mar '04, 12:15pm.Comment
-
I have made a small change to the FORUMDISPLAY template, so that the "Thread Starter" text becomes linked (otherwise the old "Thread/Thread Starter" text remains). Go to around line 77, where Jake has highlighted the red line. Replace the line (and the few lines above it) with this:
Code:<td class="thead" width="100%"> <if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&order=desc&sort=voteavg">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if> <a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] </td> <td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]</span></td>
Comment
-
Thanks for the codes, jake. I think you guys should put the thread starter column back in the next version or at least make it an easily changed option. You can start a poll about it and I am sure people like it alot better that way. Putting thread starter's name below thread title is very hard to see and I hated it.War is only fun when you are winning.Comment
-
It shows up fine on mine. There is a problem with it though in the User CP subscription area. The column headers don't match. For the Thread Starter column, the label is "Last Post".War is only fun when you are winning.Comment
-
Originally posted by infobetoHi!
I have followed the code modification but I still see the thread starter below the thread title. The new column has been added but I see the starter there as well.
Thank you.
Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit
Remove the red code that was already in this template:
Code:<div class="smallfont"> <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" 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>" /></span></if> [color=red]<if condition="$show['guestuser']"> $thread[postusername] <else /> <span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span> </if>[/color] </div>
Originally posted by HappyPikeIt shows up fine on mine. There is a problem with it though in the User CP subscription area. The column headers don't match. For the Thread Starter column, the label is "Last Post".
Admin CP -> Styles & Templates -> Style Manager -> « » -> Subscribed Thread Templates -> SUBSCRIBE
Remove the red code, add the green code:
Code:<if condition="$show['havethreads']"> <tr> <td class="thead" colspan="2"> </td> <td class="thead" width="100%"> <a href="$sorturl&order=asc&sort=title">$vbphrase[thread]</a> $sortarrow[title] [color=red]/ <a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername][/color] </td> [color=green]<td class="thead" align="center" nowrap="nowrap"><a href="$sorturl&order=asc&sort=postusername">$vbphrase[thread_starter]</a>$sortarrow[postusername]</td>[/color] <td class="thead" width="150" align="center" nowrap="nowrap"><a href="$sorturl&order=desc&sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</td> <!--<td class="thead" align="center" nowrap="nowrap"><a href="$sorturl&order=desc&sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</td>--> <!--<td class="thead" align="center" nowrap="nowrap"><a href="$sorturl&order=desc&sort=views">$vbphrase[views]</a> $sortarrow[views]</td>--> <td class="thead" nowrap="nowrap" align="$stylevar[right]">$vbphrase[notification]<input name="allbox" type="checkbox" value="Check All" title="$vbphrase[check_uncheck_all]" onClick="checkall(this.form);" /></td> </tr> $threadbits
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment