Version: , by Parker Clack
Developer Last Online: Nov 2013
Version: 2.2.x
Rating:
Released: 12-16-2001
Last Update: Never
Installs: 12
No support by the author.
Well after attempting to do this before I found that it was making too much of a load on the server so I redid it.
After getting advice from Chen, bira and wluke I have finally gotten this done.
It allows a member to preview the first post in a thread, in your forumdisplay page, by putting their mouse pointer on the thread title. A separate box pops up with the first 500 characters of that post in it so you can preview the message before going into the rest of the thread.
This only works with IE and Opera. It works partially with Netscape (what else is new!).
Upload the attached .php file to your main forum directory and run it. Then read the included readme.txt file for instructions on the modifications needed to your files and templates.
(I have updated the file and put in a later post)
Parker
[high]The hack's zip file can be found in post #7 of this thread[/high]
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Just fyi - this hack conflicts with the custom post prefix hack, so you have to be careful to combine the two hacks or whichever you did first will stop working
What I was talking about was the hack to make custom prefixes like "Important:" or "Sticky:".
I had done this one first, and then did the custom post prefex one. But you're editing the same section of forumdisplay.php, so when I changed forumdisplay, it made the preview first post stop working.
Quote:
Then in your forumdisplay.php file find
$threads=$DB_site->query("
SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postus erid,
lastposter,thread.dateline,views,thread.iconid,not es,thread.visible,sticky,votetotal,attach
FROM thread
".iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
$dotjoin
WHERE $threadids
ORDER BY sticky DESC, $sortfield $sqlsortorder
");
and replace with
$threads=$DB_site->query("
SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postus erid,
lastposter,thread.dateline,views,thread.iconid,not es,thread.visible,sticky,votetotal,attach,preview
FROM thread
".iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
$dotjoin
To have both, you just need to add ",customprefix" after "preview". Then you also have to do the same thing in newthread.php
Well, I just thought that for other newbies like me who don't think to check whether they've changed something in there already lol, it might save some headache
Is there a way to make the popup title box stay there for as long as the mouse is over the text? I ahve IE 6 and the box only stays there for a little bit and then disappears again, and if you want to continue to read, you need to move your mouse a little bit to bring the window back up. Any way to fix this?