vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Thread Titles - Pop-Up Descriptions (https://vborg.vbsupport.ru/showthread.php?t=59072)

Prince 12-09-2003 10:00 PM

Thread Titles - Pop-Up Descriptions
 
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/fo...?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

Quote:

Originally Posted by FleaBag
... 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?

PHP Code:

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]$highlightwordstitle="$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], 0200);
    
$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");


All times are GMT. The time now is 04:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01111 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete