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)

Still Waters 02-04-2004 05:24 PM

Hey guys, I'm stuck at step 1.

Quote:

1)
httpd.conf needs editing to enable and configure mod_rewrite. Here's all the relevent bits from my httpd.conf. It can go anywhere between the <VirtualHost> & </VirtualHost> tags.
RewriteEngine on
RewriteRule ^/f([0-9]+)/s([^/]+?)$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)/s([^/]+?)\.html$ /showthread.php?threadid=$1&s=$2 [L]
RewriteRule ^/s([^/])+?/$ /index.php?s=$1 [L]
I put this into my root .htaccess file, and (right away) my site didn't work anymore (so I removed it again). What am I doing wrong? Thanks!

dr1 02-17-2004 12:55 PM

I have 1000's of pages spidered using this hack, it's wonderful, thanks.

I want to move to vB3, how can I do this and not effect all my pages.
I noticed that the archive in vB3 works a little differently.

Any suggestions or tips on doing the migration?

Thanks.

Skyline_GT 02-23-2004 01:24 AM

WHat do I need to do if I got Internal Server Error?

DoMiN8ToR 02-23-2004 03:10 PM

Yes a version for Vbulletin 3 would be much appreciated!

blakkboy 02-26-2004 03:05 AM

im trying to use this hack with my forums but i cant seem to get it to work.

i did all the instructions and this is supposed to be my archive but look

www.tru-essence.net/forum/archive/

blakkboy 02-29-2004 02:05 AM

i get all this


Quote:

<?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' ) . '" );' );

?>

michaelab 02-29-2004 08:21 AM

When I go to your archive blakkboy (at www.tru-essence.net/forum/archive/) I get:

Code:

Not Found
The requested URL /forum/archive/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.29 Server at www.tru-essence.net Port 80

Which suggests to me it hasn't been installed correctly but I know very little about this hack so I wouldn't know what was wrong.

Michael.

cirisme 03-01-2004 07:43 PM

Quote:

Originally Posted by DoMiN8ToR
Yes a version for Vbulletin 3 would be much appreciated!

Not needed since vb3 includes its own :)

blakkboy 03-03-2004 01:09 PM

Quote:

Originally Posted by michaelab
When I go to your archive blakkboy (at www.tru-essence.net/forum/archive/) I get:

Code:

Not Found
The requested URL /forum/archive/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.29 Server at www.tru-essence.net Port 80

Which suggests to me it hasn't been installed correctly but I know very little about this hack so I wouldn't know what was wrong.

Michael.



alright so could someone let me know what ive done wrong

DoMiN8ToR 03-10-2004 06:44 PM

Quote:

Originally Posted by cirisme
Not needed since vb3 includes its own :)

Yes, but it's not as nice as this one and it's not URL compatible...

limey 03-10-2004 10:22 PM

The vb3 archive imo is inferior to Teck's version. I personally wish I never upgraded, so if you are on the fence, thats my story for you.

eoc_Jason 03-11-2004 08:28 PM

I just did some URL rewriting to redirect my old archive from this (and another hack) to all go to the new vB3 archive... Search Engines and traffic haven't missed a beat....

Since the new & old archives use a different amount of pages & posts per threads, I didn't do exact page redirects, only threads...

Anyhow, here's my 4 rewrites... 2 for one other old archive hack , and 2 for this archive hack.

Code:

  RewriteCond %{REQUEST_URI} ^/archive/forum/(\d+)-(\d+)
  RewriteRule ^/archive/forum/(\d+)-(\d+) http://forums.yoursite.com/archive/index.php/f-$1 [R=301,L]

  RewriteCond %{REQUEST_URI} ^/archive/topic/(\d+)-(\d+)
  RewriteRule ^/archive/topic/(\d+)-(\d+) http://forums.yoursite.com/archive/index.php/t-$1 [R=301,L]

  RewriteCond %{REQUEST_URI} ^/forumdisplay/f-(\d+)
  RewriteRule ^/forumdisplay/f-(\d+) http://forums.yoursite.com/archive/index.php/f-$1 [R=301,L]

  RewriteCond %{REQUEST_URI} ^/showthread/t-(\d+)
  RewriteRule ^/showthread/t-(\d+) http://forums.yoursite.com/archive/index.php/t-$1 [R=301,L]


limey 03-11-2004 10:41 PM

Quote:

Originally Posted by eoc_Jason
I just did some URL rewriting to redirect my old archive from this (and another hack) to all go to the new vB3 archive... Search Engines and traffic haven't missed a beat....


My way seems easier, am I missing something you are doing that I'm not?
Code:

RewriteRule showthread/t-(.*).html$ http://www.yourdomain.com/forums/archive/index.php/t-$1 [R,L]
RewriteRule forumdisplay/f-(.*).html$ http://www.yourdomain.com/forums/archive/index.php/f-$1 [R,L]

Still wish we could get titles in the vb3 archive anyone figured that out yet?

Vb-Hispano 04-21-2004 09:02 PM

Migration a vb3.0 is possible?

thanks

MogKnight 04-28-2004 04:11 AM

Thanks for the hack, however, I'm having some problems...

http://forums.ffshrine.org/archive/

it caches the archive index, and the main forum pages- but NO threads.

why is this? do I have to wait yet another month?

MogKnight 05-01-2004 08:41 AM

anyone know?

clubplanet 05-05-2004 04:01 AM

Had no problems converting this to work with the built-in vB3 archive. Just had to add these 2 lines to Apache's httpd.conf:

RedirectMatch permanent /showthread/(.*) /archive/index.php/$1
RedirectMatch permanent /forumdisplay/(.*) /archive/index.php/$1

All the Google links now work...

parajsa 05-05-2004 11:09 AM

Greetings,
I can not run this script on my new server. I can see the front page of your archive, but get an error page whenI click on any links. The module Mod_mime is installed.

The apache is 2.0.47

What can i do?

Runnin Vbulletin 2.3.5

:ermm:

kaosmoon 07-13-2004 06:05 PM

Thanks to you for the mod.

I know jack about programming and i got this to work. Talk about user friendly!

Thanks again, so cool!

imageconstrux 01-18-2005 01:56 AM

n/m - figured out a workaround...

imageconstrux 03-01-2005 12:12 AM

n/m - figured it out

laeth 03-01-2005 05:08 AM

hm, slight prolem. Mt ftp wont let me rename the archive file. When ever I rename the archive.txt file to just 'archive' it deletes itself, or once refreshed just renames itself to 'archive.txt'.

Any ideas? Does the archive vbulletin folder have anything to do with it?

imageconstrux 03-01-2005 11:18 AM

It seems that vB 2 has become the red-headed stepchild, since vB 3 came out. So I'm not the best guy to answer this, but if I don't, it's likely nobody will.

Does the same thing happen to the other files that you drop the .txt from?

MRGTB 08-21-2005 04:38 AM

I'm a little confused here, I have installed the useragent mod, but there is a section of code at the bottom of the mod that I need to add and the instuctions dont seem to tell you were to put it.

It seems to say it goes in online.php, can anbody help. Becuase I see nothing there in the code I posted below taken from the mod that I need to install, that tell you were to put it.

Code:

## No more changes to forum/global.php
## ----------------------------------------------------------------------------- ##


## function for user ip address checking
## matches full/part of an ip address
## might be useful for people who dont have a .htaccess file
## or those who want to identify bots who dont supply a valid or a cloaked
## useragent. probably should be called on return of 0 from useragentcheck
## in online.php
##
## i think its unnecessary. also the ip address matching isnt great since php
## cant handle CIDR addresses so either you break the ip address up and match
## values or you use ranges (as below) which will also identify ip outside
## the allocated range
## ie crawler918.com
## http://ws.arin.net/cgi-bin/whois.pl?queryinput=!%20NET-12-148-209-192-1
## 12.148.209.192/26
## /26 is 62 ip addresses identifying 12.148.209. means that you're blocking 254 ip
## address which will exclude non rogue ips.
## ip address have a tendancy to change and would result in a fairly bit list.

function useripaddresscheck( $match_addr, $addr_code )
{

  $addr = array(
    '12.148.209.'        => 'www.nameprotect.com|||crawler918.com', 
    '12.148.196.'        => 'www.nameprotect.com|||crawler918.com',
    '12.175.0.'                => 'www.nameprotect.com|||crawler918.com',

    '63.148.99.'        => 'www.cyveillance.com|||cyveillance',
    '65.118.41.'        => 'www.cyveillance.com|||cyveillance'
  );
 
  foreach( $addr as $useraddr => $addrurl )
  {
    if ( preg_match ("/^\d+$/", $useraddr) )
    {
      $useraddr = $addrurl;
      $addrurl  = "Web Robot";
    }

    if ( preg_match ("/^". preg_quote ($useraddr) ."\d+/i", $match_addr) )
    {
      $addrinfo = preg_split ("/\|\|\|/", $addrurl);
          if (!($addrinfo[1])) {
              $addrinfo[0] = "http://www.robotstxt.org/wc/active.html";
              $addrinfo[1] = "Web Robot ".$useraddr."*";
          }

          switch ($addr_code) {
            case 0:
              return 1;
              break;
            case 1:
              return $addrinfo[1];
              break;
            case 2:
              return '</a><a href="http://'. $addrinfo[0] .'" alt="'. $addrinfo[1] .'"><i>'. $addrinfo[1] .'</i>';
              break;
          }
    }
  }
 
}

## ----------------------------------------------------------------------------- ##


gsk8 10-23-2005 11:16 AM

I recently upgraded to 3.5 and wondered if this upgrade "overwrote" and I would need to re-install? Thanks!

Ch3W 10-28-2005 11:30 AM

Hmm... can I add custom headers to this script? I'd like to include my site menu at the top. Thanks

Thanks

Kiriaki 11-15-2007 01:55 PM

Can i install it to Vbulletin 3.6.8?? is there something new to use??

onehost 11-30-2007 06:30 PM

Quote:

Originally Posted by Kiriaki (Post 1383015)
Can i install it to Vbulletin 3.6.8?? is there something new to use??

hrmm, the last real post was back in 2004, scripts die out
quickly when modders do not support them anymore.

why would anyone setup a v2.2 on a v3.6.8 anyway...
I wouldnt even think it would work...

peterle1 12-09-2007 03:49 PM

Quote:

Originally Posted by Kiriaki (Post 1383015)
Can i install it to Vbulletin 3.6.8?? is there something new to use??

What for, there is an archive already in vb?


All times are GMT. The time now is 06:48 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.02664 seconds
  • Memory Usage 1,826KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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