ncweb
03-12-2007, 06:55 PM
I want to display the thread starter on the forumhome under the 'last post' area. See screenshot for example. It is displayed on forumdisplay pages but I can't seem to figure out how to show it on the main page.
I tried taking the code from threadbit and putting it in forumhome_lastpostby template but nothing shows up. Any ideas?
Code from threadbit:
<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>
What I'm working with in forumhome_lastpostby:
<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
Topic starter here
</if>
</div>
I know there is probably a simple way to do this but I'm at a loss.
Any help or maybe some ideas for a better way to achieve this will be greatly appreciated.
Thanks guys...
I tried taking the code from threadbit and putting it in forumhome_lastpostby template but nothing shows up. Any ideas?
Code from threadbit:
<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>
What I'm working with in forumhome_lastpostby:
<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
<phrase 1="member.php?$session[sessionurl]find=lastposter&f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
Topic starter here
</if>
</div>
I know there is probably a simple way to do this but I'm at a loss.
Any help or maybe some ideas for a better way to achieve this will be greatly appreciated.
Thanks guys...