Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DHTML Thread Preview with Per-User Option Details »»
DHTML Thread Preview with Per-User Option
Version: 1.00, by Chroder Chroder is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-30-2004 Last Update: Never Installs: 10
Is in Beta Stage  
No support by the author.

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. You can download it from this page. To get more functionality and customization, you can read the online manual.


Downloads / Thing to look at
- The package that contains the instructions.
- A screenshot (uploading images doesn't want to work for me...)
- Live example (hover over the post icons)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-01-2004, 04:17 PM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

HTML Code:
<if condition="$show['threadicons']">
		<td class="alt2">
            <if condition="$show['threadicon'] && $thread[preview] && !empty($thread[preview]) && $bbuserinfo[field5] != 'No'">
                <img src="$thread[threadiconpath]" alt="" border="0" onmouseover="return doPreview('$thread[preview]');" onmouseout="return nd();" />
            <else />
                <if condition="!$show['threadicon'] && $thread[preview] && !empty($thread[preview]) && $bbuserinfo[field5] != 'No'">
                    <img src="images/icons/icon1.gif" alt="" onmouseover="return doPreview('$thread[preview]');" onmouseout="return nd();" />
                <else />
                    <if condition="$show['threadicon']">
                        <img src="$thread[threadiconpath]" alt="alt="$thread[threadicontitle]"" border="0" />
                    <else />
                        <img src="images/icons/icon1.gif" alt="Post" />
                    </if>
                </if>
            </if>
        </if>

Chroder, I belive you forgot an </if> in the threadbit edit.
Reply With Quote
  #13  
Old 05-01-2004, 05:02 PM
Chroder's Avatar
Chroder Chroder is offline
 
Join Date: Sep 2003
Location: Toronto, Ontario
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Scrub
Try this:

HTML Code:
<if condition="$show['threadicons']">
		<td class="alt2">
            <if condition="$show['threadicon'] && $thread[preview] && !empty($thread[preview]) && $bbuserinfo[field5] != 'No'">
                <img src="$thread[threadiconpath]" alt="" border="0" onmouseover="return doPreview('$thread[preview]');" onmouseout="return nd();" />
            <else />
                <if condition="!$show['threadicon'] && $thread[preview] && !empty($thread[preview]) && $bbuserinfo[field5] != 'No'">
                    <img src="images/icons/icon1.gif" alt="" onmouseover="return doPreview('$thread[preview]');" onmouseout="return nd();" />
                <else />
                    <if condition="$show['threadicon']">
                        <img src="$thread[threadiconpath]" alt="alt="$thread[threadicontitle]"" border="0" />
                    <else />
                        <img src="images/icons/icon1.gif" alt="Post" />
                    </if>
                </if>
            </if>
        </if>

Chroder, I belive you forgot an </if> in the threadbit edit.
Uh oh I'll take a look
Reply With Quote
  #14  
Old 05-01-2004, 05:06 PM
Chroder's Avatar
Chroder Chroder is offline
 
Join Date: Sep 2003
Location: Toronto, Ontario
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See first post for updated package. Missed a </td> and </if>. Should work now
Reply With Quote
  #15  
Old 05-01-2004, 05:07 PM
SmartGnome's Avatar
SmartGnome SmartGnome is offline
 
Join Date: Mar 2003
Location: Amsterdam
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Scrub

Many TNX ....... works fine now :banana:
Reply With Quote
  #16  
Old 05-01-2004, 05:35 PM
Scrub's Avatar
Scrub Scrub is offline
 
Join Date: Oct 2001
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chroder
See first post for updated package. Missed a </td> and </if>. Should work now
I should've caught that missing </td>. LMAO! Guess I was more interested in the error.
Reply With Quote
  #17  
Old 05-01-2004, 10:37 PM
Chroder's Avatar
Chroder Chroder is offline
 
Join Date: Sep 2003
Location: Toronto, Ontario
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #18  
Old 05-02-2004, 03:58 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just do the thread title link?
Reply With Quote
  #19  
Old 05-02-2004, 06:13 AM
Chroder's Avatar
Chroder Chroder is offline
 
Join Date: Sep 2003
Location: Toronto, Ontario
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Because it's clumsy and annoying
Reply With Quote
  #20  
Old 05-02-2004, 06:18 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you asked for a different location. Sorry it wasn't the answer you wanted.
Reply With Quote
  #21  
Old 05-02-2004, 12:56 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

excellent hack idea by the way
the thread previews get annoying when they don't have html stripped in the thread preview alt tip
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07140 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete