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)
-   -   vbArchive - Search Engine Indexer for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=47667)

TECK 01-20-2003 08:35 PM

You did not read the readme file properly. Did you add to functions.php the needed code?

Floris 01-20-2003 08:44 PM

You removed the 'No' part
rofl :)

TECK 01-20-2003 08:47 PM

:)
Floris, did you updated the archive? So I can link it to the first post?

EDIT: I posted in the first post an useful info from Google, related to links crawling...
So patience if you don't see your links next day up. :)

TLucent 01-21-2003 01:59 AM

Thank you!

eva2000 01-21-2003 11:19 AM

so far 17,787 links in alltheweb http://www.alltheweb.com/search?cat=...on&_sb_lang=en

before indexing this vBarchive links :)

crocket 01-21-2003 01:56 PM

Quote:

Originally posted by crocket
PHP Code:

Fatal errorCall to undefined function: archive_navbar() in /home/lcdmod/public_html/forums/forumdisplay on line 23 

Im getting that error when i click on a link :(

whats the problem :)


http://lcdmod.com/forums/archive

Thank You
Crocket

Yes i have installed the Hack into the functions.php file

I have gone thru the install process.. And checked it and it seems fine. But i still get the error message! :(

TECK 01-21-2003 02:12 PM

You are getting this error message because you don't have that function present in functions.php file.
Check your installation.

crocket 01-21-2003 02:31 PM

Sorry but i dont get what you mean.

Your saying i dont have that function in function.php..

But what do you mean by this? Am i looking for something in particular that i need to change?

If your on about are the lines from add_to_functions.php in functions.php - Yes i have done that step!

Here is the ending of the functions.php file

PHP Code:

  // update user table from session table in bulk
  
mt_srand ((double) microtime() * 1000000);
  if (
mt_rand(1,100)=='50') {
    
$oldsessions=$DB_site->query("SELECT userid,lastactivity FROM session WHERE lastactivity<'".(time()-$cookietimeout)."'");
    while (
$oldsession=$DB_site->fetch_array($oldsessions)) {
      
$DB_site->query("UPDATE user SET lastactivity=$oldsession[lastactivity] WHERE userid=$oldsession[userid] AND lastactivity<$oldsession[lastactivity]");
    }
     
$DB_site->query('DELETE FROM session WHERE lastactivity<'.(time()-$cookietimeout));

        
//searches expire after a week:
        
$DB_site->query("DELETE FROM search WHERE dateline<".(time()-(7*24*60*60)));
  }

  
// bye bye!
}

if (!
$noshutdownfunc) {
  
register_shutdown_function("doshutdown");
}
// ###################### Start archive_nopermission ####################### function archive_nopermission() { global $headinclude,$headnewpm,$bburl,$bbtitle,$homeurl,$hometitle,$titleimage,$copyrighttext,$versionnumber; $metakeytags = ''; $headertitle = 'Message'; $pagetitle = '' . $bbtitle . ' Message'; $navbar = '' . $bbtitle . ' Archive'; $pagenav = ' '; $showforumbits = ''; $showthreadbits = ''; $showpostbits = 'You do not have permission to access this page.'; eval( 'dooutput( "' . gettemplate( 'archive' ) . '" );' ); exit; } // ###################### Start archivenavbar ####################### function archivenavbar( $id , $idtype='forum' , $highlightlast=1 ) { global $bbtitle,$bburl,$navbits,$navbar; $navbits = archivenav( $id , $idtype , $highlightlast ); $navbar = '' . $bbtitle . ' Archive > ' . $navbits; return $navbar; } // ###################### Start archivenav ####################### function archivenav( $id , $idtype='forum' , $highlightlast=1 ) { global $DB_site,$bburl,$threadcache; $code = ''; if ( $id != -1 ) { if ( $idtype == 'thread' ) { if ( !isset( $threadcache["$id"] ) ) { $getforumid = $DB_site->query_first(" SELECT forumid FROM thread WHERE threadid=$id "); } else { $getforumid['forumid'] = $threadcache["$id"]['forumid']; } $code = archivenav( $getforumid['forumid'] , 'forum' , 1 ); if ( $highlightlast ) { $code .= '' . $threadinfo['title'] . ''; } else { $code .= $foruminfo['title']; } } else { $foruminfo = getforuminfo( $id ); if ( $foruminfo['parentid'] != -1 ) { $code = archivenav( $foruminfo['parentid'] , $idtype , 1 ); } if ( strlen( $code ) > 0 ) { $code .= ' > '; } if ( $highlightlast ) { $code .= '' . $foruminfo['title'] . ''; } else { $code .= $foruminfo['title']; } } } return $code; } // ###################### Start archivepagenav ####################### function archivepagenav( $results , $address ) { global $perpage,$pagenumber; if ( $results <= $perpage ) { return; } $totalpages = ceil( $results / $perpage ); while ( $curpage++ < $totalpages ) { if ( $curpage == $pagenumber ) { $pagenav .= '[' . $curpage . ']'; } else { $pagenav .= ' ' . $curpage . ' '; } } $pagenav = 'Pages: ' . $pagenav; return $pagenav; }
?> 


TECK 01-21-2003 03:03 PM

Ya, I was right, you do not have the code in functions.php file.
In other words, you mixed an old installation with a new one.
You downloaded a previous version and install it, then update it, but you forgot to update the code in functions.php, because that's not the functions.php code available in the latest version.

Clear your browser temp files, redownload the package and follow the upgrade instructions listed in the first post.

EDIT: Use a decent editor, like TextPad or EditPlus2, look at the messed code you posted above...

crocket 01-21-2003 04:29 PM

OMG It works!

Thank You very much for your support / help!

Ive allways wanted a working archive and im pleased to say im extremely pleased!

Thank You once again!

Crocket

If you want to add it as a working archive.. http://www.lcdmod.com/forums/archive


All times are GMT. The time now is 06:36 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.01687 seconds
  • Memory Usage 1,761KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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