View Full Version : DHTML Thread Preview with Per-User Option
Chroder
01 May 2004, 01:36
What Is This?
This hack will alter the way your users view the thread previews. Instead of using vB default "title", which can be annoying, we're using a DHTML tooltip to display it. You can even customize the look of the tooltips. And remember that Mozilla bug where linebreaks show up as black squares? No more! You can actually preserve the line breaks now! And now we've moved the tooltip to a thread's post icon for easy activation, so no more annoying accidental preview popups. On top of all that, your users can just disable the whole thing if they don't like it!
Hack Overview
vB Version: 3.0.1
overLIB Version: 4.00
New files: overLIB library
New Profile Fields: 1
Files to modify: 1
Templates to modify: 2
What You Need
All you need is the overLIB (http://www.bosrup.com/web/overlib/). You can download it from this (http://www.bosrup.com/web/overlib/?Download) page. To get more functionality and customization, you can read the online manual (http://www.bosrup.com/web/overlib/?Documentation).
Downloads / Thing to look at
- The package (http://www.vbulletin.org/forum/attachment.php?attachmentid=18419&stc=1)that contains the instructions.
- A screenshot (http://chris.devbox.net/web/screenshot.gif)(uploading images doesn't want to work for me...)
- Live example (http://www.devboxforums.com/forumdisplay.php?f=6) (hover over the post icons)
SaN-DeeP
01 May 2004, 02:56
nice hack :)
i like the idea.
and excellent placing of THE words.
people are really CREATIVE
Sandy...
FleaBag
01 May 2004, 03:47
I like this - will have to look into overLIB. Nice work. :)
Chroder
01 May 2004, 04:18
Thanks guys :)
thuffner
01 May 2004, 10:12
Used to use overLIB on my site a long time ago. I enjoyed it, and it worked well for me. Looks like you have done the same with this hack. Good job! :)
SmartGnome
01 May 2004, 11:29
The following error occurred when attempting to evaluate this template:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/virtual/site1/fst/var/www/smarty/forum/includes/adminfunctions_template.php(3037) : eval()'d code on line 3
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
What did I doing wrong :disappointed:
Which template you editing when you get that error? :p
floleb7
01 May 2004, 14:06
if there isn't post icon ?
Chroder
01 May 2004, 17:28
if there isn't post icon ?
If you've turned them off then your SOL :p If the user didn't select one, then it automatically inserts a default one.
I couldn't think of anywhere else to put it. Maybe the post indicators are a better place.
SmartGnome
01 May 2004, 18:13
Which template you editing when you get that error? :p
The one mentioned in the instructions "threadbit" :ermm:
Try this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Chroder, I belive you forgot an </if> in the threadbit edit. ;)
Chroder
01 May 2004, 19:02
Try this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Chroder, I belive you forgot an </if> in the threadbit edit. ;)
Uh oh :eek: I'll take a look
Chroder
01 May 2004, 19:06
See first post for updated package. Missed a </td> and </if>. Should work now :D
SmartGnome
01 May 2004, 19:07
@Scrub
Many TNX ....... works fine now :banana:
See first post for updated package. Missed a </td> and </if>. Should work now :D
I should've caught that missing </td>. LMAO! Guess I was more interested in the error. :p
Chroder
02 May 2004, 00:37
Any idea's on different locations for the hovering? The post icons aren't too practical. I was thinking of a 5x5px image next to each title that had the hoving on it -- too much?
Why not just do the thread title link?
Chroder
02 May 2004, 08:13
Because it's clumsy and annoying :p
Well, you asked for a different location. Sorry it wasn't the answer you wanted.
msimplay
02 May 2004, 14:56
just realised that the dhtml tooltips missing for when u search posts
could we add it to that ?
ps how do i remove the preview altip from thread title on forum display
also i wasn't sure wether to ask here or in the vbadvanced forum
but i'd also like to intergrate this with last posts block for Vbadvanced somehow :o
excellent hack idea by the way
the thread previews get annoying when they don't have html stripped in the thread preview alt tip
Chroder
02 May 2004, 16:24
just realised that the dhtml tooltips missing for when u search posts
could we add it to that ?
ps how do i remove the preview altip from thread title on forum display
also i wasn't sure wether to ask here or in the vbadvanced forum
but i'd also like to intergrate this with last posts block for Vbadvanced somehow :o
excellent hack idea by the way
the thread previews get annoying when they don't have html stripped in the thread preview alt tip
Oh yeah, forgot to specify to take out the title on the cell ;)
In threadbit temlpate, find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(Thus deleting the title part ;).
I'll update the main package later, and I'll try and find out how to put it into the search as well.
msimplay
02 May 2004, 16:47
Oh yeah, forgot to specify to take out the title on the cell ;)
In threadbit temlpate, find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(Thus deleting the title part ;).
I'll update the main package later, and I'll try and find out how to put it into the search as well.
thanks :D
There is a similar hack for IPB, exept for the hover thingie is only displayed when your mouse is over the topic name. It prooved to be very practical, and the users liked it. How can i do the same with this hack?
Chroder
02 May 2004, 19:18
Most of the complaints about the topic preview is about how it's annoying, so that's why I moved it away from the topic title. If you want it on the topic title then you might as well just enable the default topic preview.
My users like it on the icon because if they want a preview, then they just hover over it. No delays, no "sticky" tooltips etc.
msimplay
02 May 2004, 19:32
Most of the complaints about the topic preview is about how it's annoying, so that's why I moved it away from the topic title. If you want it on the topic title then you might as well just enable the default topic preview.
My users like it on the icon because if they want a preview, then they just hover over it. No delays, no "sticky" tooltips etc.
yeh i was thinking about moving it onto the thread title but looking at the nature of the dhtml being instant once its loaded
would become very annoying when mousing over titles so i actually prefer it on the post icons aswell now :D
Chroder
02 May 2004, 19:41
You could use a delay, but that kinda defeats the purpose IMO.
msimplay
07 May 2004, 00:50
any news on adding this to search posts ?
msimplay
24 Oct 2004, 17:57
**bump** same as the last time
msimplay
24 Oct 2004, 18:15
**bump** same as the last time
ok found the answer
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This will give the same ability in search results
none of that was my code i just copied and pasted in the right templates :)
hope thats useful to others
anyone knows how can I change the preview from the icon to the other icon in the left? (new post, old post, etc icon)
thanks
yoyoyoyo
23 Jan 2005, 16:42
How do I add this function to the search results also? I noticed it only works in forum view mode, and not on search results. I think it would be handy to have this function work for search results as well.
msimplay
23 Jan 2005, 17:29
How do I add this function to the search results also? I noticed it only works in forum view mode, and not on search results. I think it would be handy to have this function work for search results as well.
i did this a while back now
heres my previous post that explains exactly how
http://www.vbulletin.org/forum/showpost.php?p=565066&postcount=29
yoyoyoyo
23 Jan 2005, 17:36
i did this a while back now
heres my previous post that explains exactly how
http://www.vbulletin.org/forum/showpost.php?p=565066&postcount=29Thanks, I missed that it seems :D
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.