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)
-   -   Improved Thread Preview Hack (https://vborg.vbsupport.ru/showthread.php?t=35645)

inetd 04-30-2002 05:25 PM

Quote:

did you follow the instructions in the separate text file for doing
search.php?
YES!

inetd 05-03-2002 12:28 PM

Don't show preview for some threads... :(

inetd 05-03-2002 06:19 PM

Quote:

Originally posted by inetd
Don't show preview for some threads... :(
example:
Code:

<td bgcolor="#F1F1F1" align="left" width="100%"><font face="verdana, arial, helvetica" size="2" > <a href="showthread.php?s=&threadid=2745" title="">Grabber</a></font> <font face="verdana,arial,helvetica" size="1" ></font></td>
title empty....

John 05-04-2002 06:00 PM

Slight problem here - although I've applied the search part of this hack 3 times over (just to make sure it's not me), whenever I do a mouseover for the links on a search page it says "fppreview" in a small yellow box, instead of the post contents. Help?!

John 05-04-2002 06:29 PM

Sorted it - in the code for the template change (when adding this to search.php) the title of "fppreview" instead of "$fppreview" :eek:

inetd 05-04-2002 07:29 PM

John, if you change fppreview to $fppreview, you see preview in search? I don't see :(

N!ck 05-04-2002 09:03 PM

no comprendo

Swamper 05-06-2002 03:45 PM

Quote:

Originally posted by inetd
John, if you change fppreview to $fppreview, you see preview in search? I don't see :(
That's what I did, works for me.

Great hack!

TECK 05-09-2002 03:03 PM

nick, i think you forgot one little detail.. if the thread is deleted, the previewpostid will still be there. you could do this:

open functions.php and go to [high]deletethread()[/high] function.
find:
Code:

    $DB_site->query("DELETE FROM thread WHERE threadid='$threadid'");
BELOW this, add:
Code:

    $DB_site->query("DELETE FROM thread WHERE firstpostid='$firstpostid'");
let me know what you think.

inetd 05-09-2002 03:29 PM

nakkid, please fix bug with preview in search


All times are GMT. The time now is 09:32 AM.

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.01273 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete