View Full Version : Thread Titles - Pop-Up Descriptions
Prince
12-09-2003, 10:00 PM
I searched and could not find this hack, if it exists, please delete this thread!
This is a slightly modified version of the "Mouse Over" hack, this one works using simple HTML title tags exactly like vB 3, NO JavaScript.
Tested on vB version 2.2.9
Prince
12-09-2003, 11:07 PM
you can check my forum for demo:
http://www.ironmagazineforums.com/forumdisplay.php?s=&forumid=11
FleaBag
12-10-2003, 12:35 AM
Sweet, I'll install this right away - long live vB2. :D
Prince
12-10-2003, 01:30 AM
... long live vB2. :D
I agree!
indiamike
12-10-2003, 08:41 AM
Haven't had a chance to install it yet but it looks nice.
Would it be possible to get this baby to work if you were "viewing todays active threads"?
Mike
MindTrix
12-11-2003, 05:27 AM
I think this might have already been done either here or at vbulletintemplates.com
Then again i may be wrong, Either way well done mate ;)
gmarik
12-14-2003, 06:59 AM
Can't get the idea, visited your board ...
MindTrix
12-14-2003, 08:19 AM
Basically hover your mouse over a thread title too see a preview of the thread ;)
Prince
12-14-2003, 02:05 PM
correct, except this version used the standard html title tags in the hyperlink, just like vB3.
sunrunner_pei
12-17-2003, 07:16 PM
Just installed, and is working great. Just like Mike mentioned, however, it'd be nice if it also worked from within search results. :)
Prince
12-17-2003, 08:57 PM
THIS WILL ADD THREAD TITLES TO "VIEW NEW POSTS" ONLY!
** But it does not work for any search fuctions...not sure why.
Can anyone else help?
edit template:
searchresultbit_threadonly
find:
<a href="showthread.php?s=$session[sessionhash]&threadid=$searchresult[threadid]$highlightwords">$searchresult[threadtitle]</a>
replace with:
<a href="showthread.php?s=$session[sessionhash]&threadid=$searchresult[threadid]$highlightwords" title="$threadmsg ... (more)">$searchresult[threadtitle]</a>
edit search.php
find:
eval ("\$searchresultbits .= \"".gettemplate("$searchtemplatebit")."\";");
add above:
$dpost=$DB_site->query_first("SELECT pagetext FROM post WHERE threadid='$thread[threadid]' ORDER BY dateline ASC LIMIT 1");
$threadmsg = substr($dpost[pagetext], 0, 200);
$threadmsg = eregi_replace("\r\n", "\n", $threadmsg);
$threadmsg = eregi_replace("\"", "", $threadmsg);
$threadmsg = eregi_replace("\'", "", $threadmsg);
sunrunner_pei
12-18-2003, 04:51 PM
Thanks, that worked for the "View new Posts".
Prince
12-18-2003, 06:02 PM
yeah, maybe someone else can get it to work with all other search functions, I tried with no luck...it's beyond me. :)
Kamui Shirou
12-21-2003, 11:18 AM
but you should consider the queries....
Reverend
12-22-2003, 08:15 AM
Works on 2.3.3 with "View New Posts" and "View Today's Active Threads".
Anyone know how to get it to work with search functions? It shows the "...(more)" part but not the message body.
VPREATR
12-25-2003, 01:34 PM
Any updates?
enginethatcan't
12-28-2003, 06:59 PM
Quick question
It says to replace
<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]">
with
<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]" title="$threadmsg ... (more)">
but my code in my tamplate looks like this:
;<a href="showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$thread[threadid]"><img
what do I do?
Prince
12-28-2003, 07:06 PM
the only thing that is being done to the code is you're adding an html title tag:
title="$threadmsg ... (more)"
so, just insert that into the a href line
enginethatcan't
12-28-2003, 07:35 PM
sorry, I don't understand....not an expert with this coding stuff haha
nice to see a fellow bodybuilding site on here
MindTrix
12-29-2003, 05:03 AM
Well to be on the safe side, make a copy of that bit of code in full before you replace it, Then replace it. If everything works ok then your fine. If it doesnt simply replace it with its original coding.
David Bott
12-29-2003, 03:09 PM
WOW!!! It takes it from 21 queries to 59 on my site!!! Way out of control on the number of queries produced! This could be a major server overload issue just on the lookups alone on a busy site.
Steve St.Lauren
03-24-2004, 03:11 AM
To get it to work properly in the search function there is a bug in Prince's code. The line that says:
$dpost=$DB_site->query_first("SELECT pagetext FROM post WHERE threadid='$thread[threadid]' ORDER BY dateline ASC LIMIT 1");
should say:
$dpost=$DB_site->query_first("SELECT pagetext FROM post WHERE threadid='$searchresult[threadid]' ORDER BY dateline ASC LIMIT 1");
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.