Announcement

Collapse
No announcement yet.

How To Put The Thread Starter In Its Own Column

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Put The Thread Starter In Its Own Column

    I tested the 3.5.x instructions on version 3.6.0. There are a few minor differences. Here are the updated instructions for 3.6.x.

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Display Templates -> FORUMDISPLAY

    Find this code. Remove the red code and add the blue code:

    Code:
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist">
    <tbody>
    $announcebits
    <if condition="$show['search_engine']">
    	<if condition="$show['threadicons']">
    		<td class="thead" colspan="2">&nbsp;</td>
    	<else />
    		<td class="thead">&nbsp;</td>
    	</if>	
    	<td class="thead" width="100%">
    		<if condition="$show['threadratings']"><span style="float:$stylevar[right]">$vbphrase[rating]</span></if>
    		$vbphrase[thread] / $vbphrase[thread_starter]
    	</td>
    	<td class="thead" align="center" nowrap="nowrap">
    		$vbphrase[thread_starter]
    	</td>
    	<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[last_post]</span></td>
    	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[replies]</span></td>
    	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[views]</span></td>
    <else />
    <tr>
    	<if condition="$show['threadicons']">
    		<td class="thead" colspan="2">&nbsp;</td>
    	<else />
    		<td class="thead">&nbsp;</td>
    	</if>	
    	<td class="thead" width="100%">
    		<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&amp;order=desc&amp;sort=voteavg" rel="nofollow">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
    		<a href="$sorturl&amp;order=asc&amp;sort=title" rel="nofollow">$vbphrase[thread]</a> $sortarrow[title] /
    		<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]
    	</td>
    	<td class="thead" align="center" nowrap="nowrap">
    		<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]
    	</td>
    	<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost" rel="nofollow">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
    	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=replycount" rel="nofollow">$vbphrase[replies]</a> $sortarrow[replycount]</span></td>
    	<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=views" rel="nofollow">$vbphrase[views]</a> $sortarrow[views]</span></td>
    	
    	<if condition="$show['inlinemod']">
    		<if condition="$show['popups']">
    			<td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"> <script type="text/javascript"> vbmenu_register('imod'); </script> </td>
    		<else />
    			<td class="thead" align="center">
    				<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
    			</td>
    		</if>
    	</if>
    </tr>
    </tbody>
    </if>
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit

    Find this code. Remove the red code and add the blue code:

    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>
    			<if condition="$show['guestuser']">
    				$thread[postusername]
    			<else />
    				<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
    			</if>
    		</div>
    		
    		<if condition="$show['unsubscribe']">
    			<div class="smallfont">
    				<a href="newreply.php?$session[sessionurl]do=newreply&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[reply]</a> |
    				<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;return=ucp&amp;t=$thread[threadid]" rel="nofollow">$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>
    	
    	<if condition="$show['threadmoved']">
    	<td class="alt2" align="center">-</td>
    	<else />
    	<td class="alt2" 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">
    Also in the threadbit, change the classes highlighted in blue. alt1 becomes alt2 and vice versa:

    Code:
    	<if condition="$show['threadmoved']">
    	<td class="alt2" align="center">-</td>
    	<else />
    	<td class="alt2" 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&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  <a href="showthread.php?$session[sessionurl]p=$thread[lastpostid]$thread[highlight]#post$thread[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
    		</div>
    	</td>
    	</if>
    	
    	<if condition="$show['notificationtype']">
    		<td class="alt1"><div class="smallfont">
    			<label for="sub$subscribethread[$threadid]">$thread[notification]</label>
    		</div></td>
    		<td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>
    	<else />
    		<td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>
    		<td class="alt2" 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>
    	
    	<if condition="$show['inlinemod']">
    		<td class="alt1">
    			<input type="checkbox" name="tlist[$thread[realthreadid]]" id="tlist_$thread[realthreadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
    		</td>
    	</if>
    </tr>
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit_deleted

    Remove the red code and add the blue code:

    Code:
    		<div class="smallfont">
    			<if condition="$show['managethread']"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[threadid]">$vbphrase[manage]</a></span></if>
    			<if condition="$show['guestuser']">
    				$thread[postusername]
    			<else />
    				<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
    			</if>
    		</div>
    	</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="alt2" colspan="3" align="center">
    		<div class="smallfont"><phrase 1="member.php?$session[sessionurl]u=$thread[del_userid]" 2="$thread[del_username]">$vbphrase[thread_deleted_by_x]</phrase></div>
    		<if condition="$show['deletereason']">
    			<div class="smallfont">$vbphrase[reason]: <em>$thread[del_reason]</em></div>
    		</if>
    	</td>
    	
    	<if condition="$show['forumlink']">
    		<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
    	</if>	
    	
    	<if condition="$show['inlinemod']">
    		<td class="alt1">
    			<input type="checkbox" name="tlist[$thread[threadid]]" id="tlist_$thread[threadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
    		</td>
    	</if>
    </tr>
    Also in the threadbit_deleted template, change the classes highlighted in blue. alt1 becomes alt2 and vice versa:

    Code:
    	<td class="alt2" colspan="3" align="center">
    		<div class="smallfont"><phrase 1="member.php?$session[sessionurl]u=$thread[del_userid]" 2="$thread[del_username]">$vbphrase[thread_deleted_by_x]</phrase></div>
    		<if condition="$show['deletereason']">
    			<div class="smallfont">$vbphrase[reason]: <em>$thread[del_reason]</em></div>
    		</if>
    	</td>
    	
    	<if condition="$show['forumlink']">
    		<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
    	</if>	
    	
    	<if condition="$show['inlinemod']">
    		<td class="alt1">
    			<input type="checkbox" name="tlist[$thread[threadid]]" id="tlist_$thread[threadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
    		</td>
    	</if>
    </tr>
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit_announcement

    At the top, add the blue code:

    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="$announcecolspan++"></if>$announcecolspan">
    		<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>
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Subscribed Thread Templates -> SUBSCRIBE

    Code:
    <if condition="$show['havethreads']">
    <tr>
    	<if condition="$show['threadicons']">
    		<td class="thead" colspan="2">&nbsp;</td>
    	<else />
    		<td class="thead">&nbsp;</td>
    	</if>
    	<td class="thead" width="100%">
    		<a href="$sorturl&amp;order=asc&amp;sort=title">$vbphrase[thread]</a> $sortarrow[title] /
    		<a href="$sorturl&amp;order=asc&amp;sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
    	</td>
    	<td class="thead" align="center" nowrap="nowrap">
    		<a href="$sorturl&amp;order=asc&amp;sort=postusername">$vbphrase[thread_starter]</a> $sortarrow[postusername]
    	</td>
    	<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
    	<!--<td class="thead" align="center" nowrap="nowrap"><a href="$sorturl&amp;order=desc&amp;sort=replycount">$vbphrase[replies]</a> $sortarrow[replycount]</td>-->
    	<!--<td class="thead" align="center" nowrap="nowrap"><a href="$sorturl&amp;order=desc&amp;sort=views">$vbphrase[views]</a> $sortarrow[views]</td>-->
    	<td class="thead">$vbphrase[notification]</td>
    	<td class="thead"><input name="allbox" type="checkbox" value="Check All" title="$vbphrase[check_uncheck_all]" onClick="checkall(this.form);" /></td>
    </tr>
    $threadbits
    <tr>
    Also in the SUBSCRIBE template, find this code and increment the 6 to a 7:

    Code:
    </tr>
    <else />
    	<tr>
    		<td class="alt1" align="center" colspan="6">
    			<br />
    			$vbphrase[folder_is_currently_empty]
    			<br />
    			<br />
    		</td>
    	</tr>
    </if>
    </table>
    
    </form>
    <!-- / topic table -->
    Also in the SUBSCRIBE template, add the blue code to the very top:

    Code:
    <if condition="$colspan++"></if>
    
    <!-- topic table -->
    <form action="subscription.php?do=viewsubscription&amp;type=thread" method="post">
    <input type="hidden" name="s" value="$session[sessionhash]" />
    <input type="hidden" name="do" value="viewsubscription" />
    <input type="hidden" name="type" value="thread" />
    
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
    	<tr>
    Admin CP -> Styles & Templates -> Style Manager -> « » -> User Control Panel Templates -> USERCP

    Remove the red code, add the blue code:

    Code:
    <tbody id="collapseobj_usercp_subthreads" style="$vbcollapse[collapseobj_usercp_subthreads]">
    	<if condition="$show['threads']">
    		<tr class="thead">
    		
    			<if condition="$show['threadicons']">
    				<td class="thead" colspan="2">&nbsp;</td>
    			<else />
    				<td class="thead">&nbsp;</td>
    			</if>
    			
    			<td class="thead" width="100%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
    			<td class="thead" align="center" nowrap="nowrap">
    				$vbphrase[thread_starter]
    			</td>
    			<td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
    			<td class="thead" align="center">$vbphrase[replies]</td>
    			<td class="thead" align="center">$vbphrase[views]</td>
    		</tr>
    		$threadbits
    	<else />
    		<tr>
    			<td class="alt1" align="center" colspan="7"><strong>$vbphrase[no_subscribed_threads_to_display]</strong></td>
    		</tr>
    	</if>
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Search Templates -> search_results

    Find this code. Remove the red code and add the blue code:

    Code:
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    
    <else />
    $announcebits
    <tr>
    	<if condition="$show['threadicons']">
    		<td class="thead" colspan="2">&nbsp;</td>
    	<else />
    		<td class="thead">&nbsp;</td>
    	</if>	
    	<td class="thead" width="75%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
    	<td class="thead" align="center" nowrap="nowrap">$vbphrase[thread_starter]</td>
    	<td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
    	<td class="thead" align="center" nowrap="nowrap">$vbphrase[replies]</td>
    	<td class="thead" align="center" nowrap="nowrap">$vbphrase[views]</td>
    	<td class="thead" width="25%">$vbphrase[forum]</td>
    	
    	<if condition="$show['inlinemod']">
    		<if condition="$show['popups']">
    			<td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"> <script type="text/javascript"> vbmenu_register('imod'); </script> </td>
    		<else />
    			<td class="thead" align="center">
    				<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
    			</td>
    		</if>
    	</if>	
    	
    </tr>
    Also in the search_results template, add the blue code near the top:

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    $headinclude
    <title>$vboptions[bbtitle] - $vbphrase[search_results]</title>
    <if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
    </head>
    <body>
    $header
    $navbar
    
    <if condition="$colspan_increment OR $threadcolspan++"></if>
    
    <if condition="$pagenav">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
    <tr valign="bottom">
    	<td align="$stylevar[right]">$pagenav</td>
    </tr>
    </table>
    </if>
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit_lastvisit

    Add the blue code at the top:

    Code:
    <if condition="$threadcolspan++ AND $colspan_increment = true"></if>
    
    <tr>
    	<td class="alt1" align="center" colspan="$threadcolspan"><span class="smallfont"><strong><if condition="$show['unread_posts']">$vbphrase[all_threads_below_here_unread]<else />$vbphrase[all_threads_below_here]</if></strong></span></td>
    </tr>
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X