vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Search-Engine Listing (Dynamic) (https://vborg.vbsupport.ru/showthread.php?t=1092)

08-28-2000 03:52 AM

I don't know why it won't work for some people, so don't ask.

But I do have a bug fix.

Instead of replacing $newpostlink="#newpost"; with $newpostlink="showthread.php?threadid=$threadid#ne wpost";, replace it with this:
Code:

if ($pagenumber=="1") {
    $newpostlink="showthread.php?threadid=$threadid#newpost";
} else {
    $newpostlink="showthread.php?threadid=$threadid&pagenumber=$pagenumber#newpost";
}

:D

[Edited by Ed Sullivan on 08-28-2000 at 01:55 AM]

08-28-2000 06:27 AM

thanks ed... i noticed that little bug on page spans...

still not working for the actual hack though :(

10-13-2000 08:31 PM

To implement Brian's "slow down the spider" suggestion of 7/13/00, I did this:

My "search" file was

Code:

<?
$searcharray=explode("/",$REQUEST_URI);
$searchcount=count($searcharray);
$spec = $searchcount - 1;
$threadid = $searcharray[$spec];
require("showthread.php");
?>

so I changed it to

Code:

<?
$searcharray=explode("/",$REQUEST_URI);
$searchcount=count($searcharray);
$spec = $searchcount - 1;
$threadid_with_dotphp_suffix = $searcharray[$spec];
$threadid = substr($threadid_with_dotphp_suffix, 0, -4);
require("showthread.php");
?>

and to add the ".php" to the end of the URL of each thread title in the search.php3 results listing I modified this line search.php3

Code:

print "<a href=\"search/$threadid\">$title</a><br>\n";
to become this

Code:

print "<a href=\"search/$threadid.php\">$title</a><br>\n";


All times are GMT. The time now is 01:59 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.01760 seconds
  • Memory Usage 1,716KB
  • 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
  • (5)bbcode_code_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
  • (3)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