PDA

View Full Version : Can anyone help me with this? Moving 'thread starter'


shibby2
10-25-2011, 06:24 PM
Hey guys, I was wondering how hard it would be to move where the thread creator is listed on view_forum. Right now, obviously, the authors name is lsited under the topic title.

Would it be possible to move it to it's own column (before last post, views, etc)?

I never liked it being under the thread title.

Can anyone help me with this?

Thanks soooo much in advance if you can! :)

Emeralda
10-26-2011, 12:07 AM
Possible, but feasible. You'd need to first find the table header entries with "thread_starter" in them, remove that phrase and add it to a new <td> that you created where you'd want it. Eg. remove the starter phrase and paste it into a new column you created

<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" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]">$vbphrase[rating]</span></if>
$vbphrase[thread]
</td>
<td class="thead" width="120">
$vbphrase[thread_starter]
</td>

It would be necessary to make those changes in at least FORUMDISPLAY and search_results templates so they'd make sense. Here's a full list of templates that use it in case you'd like to avoid glitches: http://prntscr.com/3oj6t. After that go to threadbit template and find:

<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>

And remove the whole code. Now create a new <td> that would match the ones you created before and paste the code into your new table column. Remember it should be similarly done to adjacent columns, include width, etc.