The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi, I'm looking for a block on the right-hand side of the forum showing the latest replies posted.
I've been using the VietBB Sidebar Column, but this only shows Latest Threads, where it organises the list by most recently replied to, and displays the thread title, but unfortunately the link is to the thread itself (not the post just made in it) and the thread starter is also shown instead of the last poster. The best I've been able to is add another link below with &goto=newpost But what I'm looking for is a link to the last post, and to display the username of that post. Here's what I've got so far: Code:
<tr> <td class="$class"> <div class="smallfont"><a href="showthread.php?$session[sessionurl]t=$+++++++_sclt[threadid]"><strong>$+++++++_sclt[title]</strong></a></div> <div class="smallfont"><a href="showthread.php?$session[sessionurl]t=$+++++++_sclt[threadid]&goto=newpost"><img src="/images/theme/buttons/firstnew.gif" alt="Go To First Unread Reply"></a>- $vbphrase[sclt_by] <a href="member.php?$session[sessionurl]u=$+++++++_sclt[postuserid]">$+++++++_sclt[postusername]</a></div> </td> </tr> ![]() So if you can imagine, I'd like to replace $+++++++_sclt[postusername] with whatever variable calls up the name of the very last poster in the thread, and also be able to link to that post instead of the first unread one. Is there an easy way to accomplish this? Thanks! (And why can't I post the variable in this thread, is it filtered as a swear word or something? Even without the $ sigh it's still censored.) |
#2
|
||||
|
||||
![]()
Do you use vbadvanced? If so, you can achieve what you are after with ease on your forum pages or you can use the following.
Code:
<tr> <td class="$bgclass"> <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> <tr> <td class="alt1" style="text-align:justify"> <script type="text/javascript" src="external.php?type=js"></script> <script language="" type="text/javascript"> <!-- for (var x in threads) { document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"&goto=newpost\"><img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/lastpost.gif\" alt=\"$vbphrase[go_to_last_post]\" border=\"0\" /></a> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <br />"); } //--> </script> </td> </tr> </table> </td> </tr> |
Благодарность от: | ||
ozzy47 |
#3
|
|||
|
|||
![]()
Thanks for your reply.
Where would I paste that code? I tried putting into the Latest Threads block in Edit Templates but it doesn't show up, and the whole block disappears. I just installed vBadvanced CMPS. If this way is easier, can you show me how to implement it there? |
#4
|
||||
|
||||
![]()
Visit this link, scroll down on left, you will see side column created by vbadvanced and integrated on the forum home or on any other page you wish.
To learn how to integrate vba within your vbulletin pages, please visit this page to learn more. After learning this, you wont be using VietBB Sidebar Column ever again. Also, I edited my post above with proper code to show linked latest post as well as thread name. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|