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-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.


All times are GMT. The time now is 11:26 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.00996 seconds
  • Memory Usage 1,739KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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