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)

dssforum 11-26-2003 09:38 PM

I keep getting this error :

<?php
// +--------------------------------------------------------------
// | Search Engine Indexer for vBulletin (Script by TECK)
// | http://www.teckwizards.com/
// | + archive
// +--------------------------------------------------------------
error_reporting( E_ALL & ~E_NOTICE );

$templatesused = 'archive,archive_homekeytag,archive_forumbit,archi ve_categorytitle,archive_forumtitle,archive_homein fo';
require_once( './global.php' );

if ( !$permissions['canview'] )
{
archive_nopermission();
}

// +--------------------------------------------------------------
// | Forums
// +--------------------------------------------------------------
function showforums( $forumid=-1 , $spacer='' , $permission='' )
{
global $DB_site,$bburl,$bbuserinfo,$session,$enableaccess ,$iforumcache,$ipermcache,$iaccesscache,$usergroup def,$noperms;

if ( !is_array( $permission ) )
{
$permission = getpermissions( 0 , -1 , $bbuserinfo['usergroupid'] );
$usergroupdef = $permission;
}

if ( !isset( $iforumcache ) )
{
$iforums = $DB_site->query("
SELECT forumid,parentid,displayorder,threadcount,replycou nt,title,description
FROM forum
WHERE displayorder<>0 AND active=1
ORDER BY parentid,displayorder,forumid
");
while ( $iforum = $DB_site->fetch_array( $iforums ) )
{
$iforumcache["$iforum[parentid]"]["$iforum[displayorder]"]["$iforum[forumid]"] = $iforum;
}
$DB_site->free_result( $iforums );
unset( $iforum );

$iforumperms = $DB_site->query("
SELECT forumid,canview
FROM forumpermission
WHERE usergroupid='$bbuserinfo[usergroupid]'
");
while ( $iforumperm = $DB_site->fetch_array( $iforumperms ) )
{
$ipermcache["$iforumperm[forumid]"] = $iforumperm;
}
$DB_site->free_result( $iforumperms );
unset( $iforumperm );

$noperms['canview'] = 0;

if ( $bbuserinfo['userid'] != 0 and $enableaccess == 1 )
{
$iaccessperms = $DB_site->query("
SELECT forumid,accessmask
FROM access
WHERE userid='$bbuserinfo[userid]'
");
while ( $iaccessperm = $DB_site->fetch_array( $iaccessperms ) )
{
$iaccesscache["$iaccessperm[forumid]"] = $iaccessperm;
}
unset( $iaccessperm );
$DB_site->free_result( $iaccessperms );
}
else
{
$iaccesscache = '';
}
}
if ( !is_array( $iforumcache["$forumid"] ) )
{
return;
}

while ( list( $key1 , $val1 ) = each( $iforumcache["$forumid"] ) )
{
while ( list( $key2 , $forum ) = each( $val1 ) )
{
if ( is_array( $iaccesscache["$forum[forumid]"] ) )
{
if ( $iaccesscache["$forum[forumid]"]['accessmask'] == 1 )
{
$forumperms = $usergroupdef;
}
else
{
$forumperms = $noperms;
}
}
elseif ( is_array( $ipermcache["$forum[forumid]"] ) )
{
$forumperms = $ipermcache["$forum[forumid]"];
}
else
{
$forumperms = $permission;
}
if ( $forumperms['canview'] )
{
if ( empty( $forum['description'] ) )
{
$forum['description'] = 'No description available.';
}
eval( '$forumtitle = "' . gettemplate( 'archive_categorytitle' ) . '";' );
if ( $forum['parentid'] != '-1' )
{
eval( '$forumtitle = "' . gettemplate( 'archive_forumtitle' ) . '";' );
}
eval( '$forumbits .= "' . gettemplate( 'archive_forumbit' ) . '";' );
$forumbits .= showforums( $forum['forumid'] , $spacer . '&nbsp; &nbsp; ' , $forumperms );
}
}
}

return $forumbits;
}

$showforumbits = showforums();
$showthreadbits = '';
$showpostbits = '';

$username = 'visitor';
if ( $bbuserinfo['userid'] != 0 )
{
$username = $bbuserinfo['username'];
}

$headertitle = 'Home';
eval( '$metakeytags = "' . gettemplate( 'archive_homekeytag' ) . '";' );

$navbar = $bbtitle . ' Archive';
$pagenav = '&nbsp;';
eval( '$pagetitle = "' . gettemplate( 'archive_homeinfo' ) . '";' );

eval( 'dooutput( "' . gettemplate( 'archive' ) . '" );' );

?>

dssforum 11-26-2003 09:41 PM

<a href="http://www.tsxclub.com/forums/archive" target="_blank">http://www.tsxclub.com/forums/archive</a> is it a problem if we have "s" forums instead of forum? what is causing this error and how can it be fixed! Thanks! Getting same error on both of my forums

Onkel_Tom 11-26-2003 09:49 PM

This is not an error ! Your Webserver just open the complete archive file and show you the syntax.
I think you have a problem with Apache's ForceType directive.
Just try to copy archive to archive.php and try to open this file.
But first look at this CHANGES

dssforum 11-26-2003 10:05 PM

Thx for the reply buddy!!

Now I get this http://www.tsxclub.com/forums/archive.php

The page opens but the links dont work any help is appriciated!

Onkel_Tom 11-26-2003 10:14 PM

yep, your Server has a problem with Apache's ForceType directive !

Please check the syntax of your .htaccess file
For me the following CHANGE fix the problem.
If not ask your Webspaceprovider or administrator of the server how to handle the ForceType syntax.

yavar 12-11-2003 02:43 PM

i have a problem .
this hack haven't index.php file !
index.php isn't in attachment zip file !
I do all works that written in readme file !but it dosen't work !

dssforum 12-11-2003 02:46 PM

Quote:

Originally Posted by Onkel_Tom
yep, your Server has a problem with Apache's ForceType directive !

Please check the syntax of your .htaccess file
For me the following CHANGE fix the problem.
If not ask your Webspaceprovider or administrator of the server how to handle the ForceType syntax.

my host said we have it installed by default anything else that might of cause this problem?

yavar 12-11-2003 02:50 PM

i have a problem .
this hack haven't index.php file !
index.php isn't in attachment zip file !
I do all works that written in readme file !but it dosen't work !

coolmile 12-11-2003 03:45 PM

Quote:

Originally Posted by yavar
i have a problem .
this hack haven't index.php file !
index.php isn't in attachment zip file !
I do all works that written in readme file !but it dosen't work !


you don't need index.php file. you need to make .htaccess works.

see my site. http://tarantulas.us/forums/archive/

obschina 12-23-2003 06:19 PM

Thank you TECK...I installed this, let's see where I get with it!

-obs


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