The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hover preview LAST post in thread?
I did a search and couldn't find anything...
So, is there anyway to preview the last post in a thread when you hover over the link instead of the first post? Thanks |
#2
|
||||
|
||||
i wanted a version of this, i wanted to keep the existing system but wanted it so that when you hover over the go to last post button it shows the last post.
|
#3
|
||||
|
||||
Quote:
I believe it is possible, and even think that it is done with one of the 'latest threads on forumhome' hacks...but can't remember details. |
#4
|
|||
|
|||
> Thanks to Mini2 for noticing I'd missed out a the limiting of a preview to the set value in the admincp
Does still need testing, but here ya go: edit forumdisplay.php and find: Code:
$previewfield = "post.pagetext AS preview,"; $previewjoin = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)"; Code:
$previewfield = "post.pagetext AS preview, post2.pagetext AS preview2,"; $previewjoin = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid) LEFT JOIN " . TABLE_PREFIX . "post AS post2 ON(post2.threadid = thread.threadid)AND(post2.dateline = thread.lastpost)"; [code] $thread['preview'] = strip_quotes($thread['preview']);/code] and add below it: Code:
$thread['preview2'] = strip_quotes($thread['preview2']); $thread['preview2'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview2'],false,true),$vboptions['threadpreview'])); Code:
<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" /> Code:
<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" title="$thread[preview2]" /> |
#5
|
||||
|
||||
Quote:
Thank you muchly! Now...which template to edit to make it appear on a Subforum display? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|