View Full Version : vbArchive - Search Engine Indexer for vBulletin
I have no idea why the crawlers would go to your images, it's ilogic.
Dean C
09-07-2003, 12:13 PM
The same thing happened to me when I closed my board for a few hours :) ^^
FastAttack
09-07-2003, 07:45 PM
/edit
nm I got it work :)
NexDog
09-07-2003, 10:34 PM
Okay, I'm going to rehack from scratch. Maybe I missed something somewhere. Strange as I've applied this hack 5-6 times....
NexDog
09-08-2003, 06:00 AM
Rehacked and nothing. :(
AltaVista's spider registers as going to archive, not many others though. I'm scared that my archive isn't getting spidered correctly....
EVO VIII Chris
09-09-2003, 02:30 PM
Why is it that I have this hack installed and the archive works great and all however it did not make my current posts and links in my forum to be search engine index-able. For example the links still look like this... http://www.vorspann.net/Forums/showthread.php?threadid=16
Thanks
Chris
Tigerdude
09-09-2003, 03:23 PM
Does the new search engine archive that is part of VB3 work as well as this hack? If not will this hack wirk with VB3?
I'm spidered up the ying-yang and I'm scared to death of upgrading to VB3 and losing all of my search engine positions.
NexDog
09-09-2003, 10:12 PM
Today at 01:30 AM EVO VIII Chris said this in Post #756 (https://vborg.vbsupport.ru/showthread.php?postid=432558#post432558)
Why is it that I have this hack installed and the archive works great and all however it did not make my current posts and links in my forum to be search engine index-able. For example the links still look like this... http://www.vorspann.net/Forums/showthread.php?threadid=16
Thanks
Chris
You misunderstand what the hack does. And I don't see the archive:
http://www.vorspann.net/forum/archive/
One thinks you should reread the first post.
NexDog
09-10-2003, 10:25 PM
Well, my archive just gets worse and worse. Crawlers are now hitting pages as:
http://nexusportal.net/showthread/t-1189.html?
Complete with sessionhash. :(
EVO VIII Chris
09-10-2003, 10:55 PM
You have the wrong link NexDog. My Forums are in a Forums folder not Forum, notice the S. Therefore the link is www.vorspann.net/Forums/archive/
Now what I am wondering is then why are the pages on this site all indexable and same with lots of other sites like www.evolutionm.net They all look like this...
http://forums.evolutionm.net/showthread.php?s=&threadid=38799
Why aren't my sites pages like that?
Chris
NexDog
09-10-2003, 11:04 PM
Your archive links:
http://www.vorspann.net/Forums/forumdisplay/f-20.html
http://www.vorspann.net/Forums/showthread/t-16.html
Completely spiderable. :)
This is also spiderable:
http://forums.evolutionm.net/showthread.php?s=&threadid=38799
But anyone browsing the site adds a sessionhash to the link, including spiders which is why you would need that other mod to strip out the hash for spiders. But everything looks good, mate. You haven't done anything wrong - installed perfectly.
X-Fan
09-21-2003, 05:11 AM
You need to install the vbHome addon instead (search engine indexer), that does this.
http://www.teckwizards.com/forum/showthread.php?s=&threadid=617
Is that available anywhere here at vBulletin.org, as TeckWizards.com is down it seems.
At any rate, I managed to work around it by removing the code from home/global.php and putting it in admin/functions.php and it works fine. Take a look:
http://www.comixfan.com/xfan/forums/archive/
Thanks for another great hack, TECK!
KelteN
09-21-2003, 05:12 PM
Is that available anywhere here at vBulletin.org, as TeckWizards.com is down it seems.
At any rate, I managed to work around it by removing the code from home/global.php and putting it in admin/functions.php and it works fine. Take a look:
http://www.comixfan.com/xfan/forums/archive/
Thanks for another great hack, TECK!
Yeah, I also need this. I just installed vBArchive and am getting the follow error:
Fatal error: Cannot redeclare archive_nopermission() (previously declared in /home/user/public_html/global.php:378) in /home/user/public_html/forums/admin/functions.php on line 2554
And I see that the teckwizards.com site is down for a while. :(
KelteN
09-21-2003, 06:01 PM
Okay, I uninstalled vBArchive and tried reinstalling vBHL and I still get that same error. Can anyone help me out? I don't see why it is still giving me that error even after everything has been uninstalled. :(
KelteN
09-21-2003, 06:39 PM
Nevermind I got it working :)
BTW: Here is the link for anyone who is looking for the vBHomelite version.
https://vborg.vbsupport.ru/showthread.php?t=56617
mccollin
09-22-2003, 08:34 PM
I've installed the archive hack, along with the first 2 items in the list of extras (strip session hash for crawlers, and limit crawlers to certain directories). I don't really see the need for number 3, if the first two are done.
I've added a link to the archive page in my main navigation bar (javascript). First question is, is that sufficient? Will the crawlers be OK with the javascript menu to get there, or must it be a hard link. If so, then I can always link it on my footer.
Here's my main question. These are the meta tags that are being generated...
<title>pdaPhoneHome.com Archive - Hitachi G1000</title>
<meta name="keywords" content=" hitachi g, pda, phone, pdaphone">
<meta name="description" content="pdaPhoneHome.com - Discussion about the first Pocket PC based pdaPhone with a keyboard">
OK, the keyword algorithm is stripping my numbers out of the pdaPhone model numbers. This is not good. Anyone know why this is happening?
mccollin
09-22-2003, 09:06 PM
OK, I changed forumdisplay... this line... and it added the numbers back.
$meta['keywords'] = ' ' . preg_replace( '~[^ a-zA-Z0-9]~' , '' , $meta['keywords'] );
Anyone know how I can also get my "-" back? The model numbers for me are pretty key.
smestas
09-25-2003, 06:04 AM
I just finished installing vbArchive and my results are all messed up! I have no clue on where to start to fix it or where to begin to remove it.
HELP!
http://www.alfabb.com/bb/forums/archive
I was previously running Easy Archive but it stoped working for me when I recently swithched hosting companies.
mccollin
09-25-2003, 10:29 AM
Sounds like this may be part of the problem...
The script uses Apache's ForceType directive. Most of Apache servers have it installed by default.
Check with your host to make sure the module is installed.
smestas
09-25-2003, 11:29 PM
mccollin,
You hit the nail on the head! I contacted the server admin and they dont support that ForceType mod. He did however say that they do support AddType. Does that make any differance?
mccollin
09-26-2003, 01:03 AM
I don't think it makes a difference for this one... it requires ForceType. There are other similar hacks that don't. PM me if you are looking for another hosting option... I may be able to help you out.
smestas
09-26-2003, 06:11 AM
mccollin,
Thanks for the hosting offer but I've already commited to a 1 year plan.
Is there no fixes for the non ForceType Mod or is there another good search engine hack that any one else can recomend?
HELP!
mccollin
09-26-2003, 08:44 AM
Do a search on archive and you should find the other hacks. You may still have problems because they require other types of things that your host would likely need to enable.
Doc203
09-29-2003, 09:30 PM
I installed this hack several mo's ago and I can get alta vista and a couple of others to index it, but have yet to see google. I have tried to submit my URL to Google once a month.
Anyone have any ideas, or willing to look at the site to help me get my site indexed by google etc?
mccollin
09-30-2003, 01:52 PM
I've not seen Google hitting these pages either... very strange because Google is all over my site. Inktomi is hitting them, but not Google. I've even submitted the actual archive url to Google I think. I'm only a few weeks into it... I'll go a month or so and see what happens. I do know that my traffic and unique are up since doing this. My Google Adsense revenue is up. So far I've seen no difference in my LinkPop.
Skyline_GT
10-03-2003, 02:24 AM
I got this error
Please check
http://www.gamerzonline.net/forum/archive/
MaDCaT75
10-03-2003, 02:45 AM
I still dont see any google spiders coming to my forum www.sims2forums.com :cry:
Its been 3 weeks now :cry:
Skyline_GT
10-03-2003, 02:58 AM
I got this error??
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@gamerzonline.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.28 Server at www.gamerzonline.net Port 80
Skyline_GT
10-04-2003, 08:52 AM
anyone please help?
mccollin
10-04-2003, 12:22 PM
Is it possible that your server doesn't support Apache's ForceType directive?
Skyline_GT
10-05-2003, 11:24 PM
anyone can help?
atomic fireball
10-06-2003, 12:39 AM
Are you using vBHomeLite as your home page? If so, you need to use the vBhome Search Engline add on for vbhome lite, and NOT the standard "stand alone" release hack.
Skyline_GT
10-06-2003, 05:05 AM
no
I am using the vportal one..
XYRUS
10-06-2003, 10:06 AM
Hy,
sounds like an fantastic hack which I would love to use. But I have one question. What happens with all my old links to forum threads which are already linked at many pages? Will the old links to these threads still work???
thanks for the answear!
XYRUS
10-06-2003, 08:36 PM
I was so excited about the hack i just tried to install it today. But my previous question ist still very important to me.
Anyways i installed the hack but it doesn?t seem to work. I have done all the instructions step by step. I also read this hole thread but I didn?t find any help.
My page runs on a windows2000 server which has apache 2.0 installed (force directory is in the core, right?).
After i installed everything nothing changed in my forum. Also the forum archiv link, which should be like this: http://213.221.104.186/pcmax/forum/archive, doesnt work. It only shows the code...
I realllllly reeeaallly checked everything many times and also retried it often but I just wont get it to work.
Please help me...
Lahey
10-06-2003, 09:02 PM
mine looks the same(shows PHP code on /archive).
This isn't right is it?
http://www.laheyforum.com/archive
If it isn't right I have no idea what to do to it from here.
XYRUS
10-07-2003, 10:54 PM
CanĀ“t nobody help me?
drumsy
10-08-2003, 10:21 PM
I am experiencing the same problem just displaying the code and I confirmed with Rackshack that I am indeed running with the forcetype directive. What gives?
Mickie D
10-10-2003, 03:39 PM
this is my favourite hack of all time :)
but i would like to ask you teck is it possable to make it so that i can make my forums private but have google or any other engine still crawl my archives ?
this would be gr8 then i would get more signups instead of people leeching bandwidth from my forums without getting involved ;)
Regards
Mickie D
LT97B
10-10-2003, 08:29 PM
Is there anyway this will work with Zeus server?????????
I installed, its not working and I suspect its because my host uses Zeus.
Will any of these mod's work? maybe the ones around page 320?
http://support.zeus.com/doc/zws/v4/user_guide.pdf
Please help!!!! Thanks
Skyline_GT
10-11-2003, 06:03 AM
anyone can help us?
NightWalk8r
10-12-2003, 04:14 AM
i'm pretty sure this have been asked already......but i dont feel like looking thru 53 pages for the answer o_O
i just installed this and it's great!!! but how long does it take google to get all of my pages on their server?
LT97B
10-12-2003, 01:09 PM
I did look through all the pages and it was not answered.........Zeus has re-write capability so there must be a way, with just a little help !
darkmage
10-13-2003, 05:54 PM
http://www.ffantasy.com/boards/archive
Works like a charm! Thanks a lot. :)
ugr|dual
10-15-2003, 06:02 PM
just wanted to say that this collection of vbarchive + additional hacks really did the job with search engines for our heavily hacked vb 2.3.0 system. using steps 1-4 of the suggested we now finally have google deep-crawling everything.
keep up the good work.
ugr|dual clicks install.
Lahey
10-15-2003, 06:10 PM
Why won't mine work? It still shows just php code on /archive
I tried renaming the archive file to archive.php and that makes the php work but then none of the links on the page work. and the intstructions didn't say anything about renaming it to .php anyway. Is this a server problem?
DjArcadian
10-16-2003, 04:03 PM
I just installed this script. What am I doing wrong? Look at my results at http://www.djshadowforum.com/forum/archive/
You can see the actual forum at http://www.djshadowforum.com/forum/
NickCat
10-17-2003, 02:54 PM
oi wc3 is important :p
useragent checking
Works both standalone and as a very nice compliment to TECK's vbarchive hack.
What does it do?
Allows you to match the useragent for Guests in Who's Online and display custom names/urls for recognised useragents such as Google, Teoma, Inktomi etc
You can also use it for matching the useragent anywhere on vb, ie for Currently Active Users on forumhome. expect a jazzed up online.php with icons next to names for which browser people are using sometime.
Why?
Got bored of looking up IPs then digging around the session table trying to find out which guests were really web robots also nosey to see who was reading the archives.
Install
Instructions in the file, should work with 2.2.x
Install time, 3-5mins. level, medium.
List of Detected Web Robots (thanks to TECK for listing the main ones)
Last updated: 08/02/03 10pm GMT
googlebot www.google.com Google
gulliver www.northernlight.com Northern Light
ia_archiver www.archive.org The Internet Archive
internetseer www.internetseer.com Internet Seer
linkalarm linkalarm.com Link Alarm
mercator www.research.compaq.com/SRC/mercator Mercator
openbot www.openfind.com.tw Openbot
pingalink www.pingalink.com PingALink Monitor
psbot www.picsearch.com/bot.html PicSearch
scooter www.altavista.com AltaVista
slurp www.inktomi.com/slurp.html Inktomi
turnitinbot www.turnitin.com/robot/crawlerinfo.html Turnitin
slysearch www.turnitin.com/robot/crawlerinfo.html Turnitin
zeus www.waltbren.com/products/zeus_internet_robot.htm Zeus Internet Marketing
zyborg www.wisenutbot.com WiseNut
teoma www.teoma.com Teoma/Ask Jeeves
-- these last 3 are generic and will display the useragent on who's online with a link to robotstxt.org where you can look up the useragent for obsecure and new bots.
spider Web Spider
spyder Web Spyder
crawl Web Crawler
robot Web Robot
Screenshots?
Who's online:
https://vborg.vbsupport.ru/showpost.php?s=&postid=351495
https://vborg.vbsupport.ru/showpost.php?s=&postid=351832
https://vborg.vbsupport.ru/showpost.php?s=&postid=351533
Currently Active Users
https://vborg.vbsupport.ru/showpost.php?s=&postid=351831
enjoy,
inph
thanks to floris for screenshots and testing
Thanks for the great addition to TECK's hack. There is a problem with the script though. In functions.php you have to edit "Teoma/Ask Jeeves" to "Teoma & Ask Jeeves" or something similar. With the original '/' in the name it believes you are passing /ask as a command line switch to your added code in index.php.
Hope this helps.
-Nick
Lahey
10-17-2003, 04:11 PM
Anyone have any expected or guessed times about when v3.0 will be released?
DjArcadian
10-17-2003, 06:07 PM
I just installed this script. What am I doing wrong? Look at my results at http://www.djshadowforum.com/forum/archive/
You can see the actual forum at http://www.djshadowforum.com/forum/
Scratch it. I just decided to upgrade to v3.
verbum
10-18-2003, 06:38 PM
Why won't mine work? It still shows just php code on /archive
I tried renaming the archive file to archive.php and that makes the php work but then none of the links on the page work. and the intstructions didn't say anything about renaming it to .php anyway. Is this a server problem?
Lahey
Sounds like a problem with the .htaccess file. Assuming your Apache configuration includes ForceType, make sure that the code on the uploaded .htaccess (upload as txt then, rename to .htaccess) contains the arguments + expression + exact destination URL as indicated (the latter--URL--if incorrect would produce a 500 error, so it's likely not that).
coolmile
10-20-2003, 06:54 PM
As soon as I put .htaccess file under the forum directory, nobody can access the directory. it shows forbidden error message on the browser. (Even an empty .htaccess file)
I think i have to add some directive or change apache conf file, but i don't know which one.
Need help please.
Courage
10-24-2003, 11:59 AM
Ok, i use for 3 days google adsense
What i must write for adsense?
Mediapartners-Google*
or
Mediapartners-Google (no *) ?
I need this for Who's online hack and session hash stripping
10x
SoLo OnE
10-26-2003, 02:54 PM
As soon as I put .htaccess file under the forum directory, nobody can access the directory. it shows forbidden error message on the browser. (Even an empty .htaccess file)
I think i have to add some directive or change apache conf file, but i don't know which one.
Need help please.
I have the same problem.
ResellerForums
11-02-2003, 05:53 PM
We've got this great hack installed (thanks Teck!), and it works well except:
We have only four forums on our board, and they are all at the root level. That is, their "Forum Parent", as set in the admin, is "No one". (This is intentional, since we don't have enough forums to justify categorization.)
The problem is that on the archive page, the forum names aren't hyperlinked. It seems that this hack doesn't hyperlink forums at the root level because it assumes that they are not actually forums but categories.
Is there a way around this?
See http://www.rfidtalk.com/archive
You'll notice that RFID Forum and RFID Industry News are NOT hyperlinked even though they are actual forums, while Greater Impact of RFID and RFID Technology are (because they are children of test).
replicon
11-06-2003, 11:09 PM
Damn.
This is impossible to run with IIS. :(
Thanks TECK for a great hack. Took about 30 minutes to figure out ISAPI Rewrite and hack your script to run with IIS, but works great! So it's not impossible with IIS :).
http://forums.beyond.ca/archive
ChrisSy
11-07-2003, 05:10 PM
I installed this script a few months back, had no problems and very fast install
I am currently running my board in the root dir so archive is /archive , what files do i need to change if i want to move my board into another directory so the the archive would be /forum/archive?
Dean C
11-07-2003, 07:59 PM
The .htaccess file if my memory serves me correctly :)
Thanks TECK for a great hack. Took about 30 minutes to figure out ISAPI Rewrite and hack your script to run with IIS, but works great! So it's not impossible with IIS :).
http://forums.beyond.ca/archive
Can you post the ISAPI Procedure? I'm interested... Thanks.
atomic fireball
11-08-2003, 09:58 AM
Hi TECK, just wanted to say thanks for the excellent hack. We've had this installed for a few months now, (it's actually the add on to vBhome Lite), and although Google has been hitting our site nicely, we have yet to make a real dent in the Google index.
Everything seems to be synching up just fine, but I still don't understand if the "Unknown Location" issue is a bug or just a consmetic annoyance.
1. If a spider is hitting a page from the archive, and the Who's Online shows the "Unknown Location," is that a problem in terms of getting our site into google?
2. What/where is the varible to change the table content background color, width, centering of the archive? (It shows up as orange 90% and left justified on our board.)
Here's the link to our archive:
http://www.thedigitalreview.com/archive.html
Thanks for any help, and thanks for the work on putting this hack together! We really do appreciate it!
LT97B
11-10-2003, 12:44 AM
I wish this archive thing would work on zeus servers!!! grr
I know zeus has mod_rewrite and so on I guess its just a matter of time until one of you guys figures out a way to make it work...... *sigh*
replicon
11-10-2003, 03:47 PM
Can you post the ISAPI Procedure? I'm interested... Thanks.
Sure, here's the procedure.
1. Install ISAPI Rewrite Free Version (works great if you only host 1 site on IIS)
2. In ISAPI Rewrite's httpd.ini, add the following entries:
RewriteRule /archive /archive.php
RewriteRule /archive/(.*) /archive\.php\?param=/$1
RewriteRule /forumdisplay/(.*) /forumdisplay2\.php\?param=/$1
RewriteRule /showthread/(.*) /showthread2\.php\?param=/$1
This will rewrite /archive, /forumdisplay and /showthread into it's equivilent .php files. We can't use no extension, IIS does not support that properly. This also rewrites the remainder of the URL into the query parameter "param", as IIS will display file not found if you add / after the forumdisplay and showthread urls.
3. In forumdisplay.txt and showthread.txt, replace the line :
$endbit = strrchr( $_SERVER['PHP_SELF'] , '/' );
with :
$endbit = strrchr( $HTTP_GET_VARS['param'] , '/' );
This will extract the remaining URL as a parameter since we moved it to a parameter.
4. Rename archive.txt to archive.php, forumdisplay.txt to forumdisplay2.php, and showthread.txt to showthread2.php, and copy to your live upload directory.
ResellerForums
11-13-2003, 08:31 PM
We've got this great hack installed (thanks Teck!), and it works well except:
We have only four forums on our board, and they are all at the root level. That is, their "Forum Parent", as set in the admin, is "No one". (This is intentional, since we don't have enough forums to justify categorization.)
The problem is that on the archive page, the forum names aren't hyperlinked. It seems that this hack doesn't hyperlink forums at the root level because it assumes that they are not actually forums but categories.
Is there a way around this?
See http://www.rfidtalk.com/archive
You'll notice that RFID Forum and RFID Industry News are NOT hyperlinked even though they are actual forums, while Greater Impact of RFID and RFID Technology are (because they are children of test).
For those interested in a solution, here it is: comment out lines 113, 114, and 116 in archive. So lines 106-119 look like this:
if ( $forumperms['canview'] )
{
if ( empty( $forum['description'] ) )
{
$forum['description'] = 'No description available.';
}
eval( '$forumtitle = "' . gettemplate( 'archive_categorytitle' ) . '";' );
// COMMENTED OUT TO FORCE HYPERLINKING OF FORUMS WITH NO PARENT: if ( $forum['parentid'] != '-1' )
// COMMENTED OUT TO FORCE HYPERLINKING OF FORUMS WITH NO PARENT: {
eval( '$forumtitle = "' . gettemplate( 'archive_forumtitle' ) . '";' );
// COMMENTED OUT TO FORCE HYPERLINKING OF FORUMS WITH NO PARENT: }
eval( '$forumbits .= "' . gettemplate( 'archive_forumbit' ) . '";' );
$forumbits .= showforums( $forum['forumid'] , $spacer . ' ' , $forumperms );
}
replicon
11-14-2003, 09:59 PM
Finally got spidered, and all I can say is WOW.
Guest usercount went from avg of 20 to avg of 90. And we only have 8500 pages spidered (should be about 28,000).
LT97B
11-15-2003, 12:31 PM
Is my hosting co the only co that uses zeus instead of apache or isapi?
Domenico
11-17-2003, 10:44 AM
This addon really does work very well.
Our site www.webhostingtalk.nl has more then 11.000 results in google. :)
It is recommended for everybody!
This addon really does work very well.
Our site www.webhostingtalk.nl has more then 11.000 results in google. :)
It is recommended for everybody!
Thanks. All you have to do left is to add the copyright at the bottom of the web site (links and text), the way it's supposed to be.
Regards,
Floren.
Domenico
11-18-2003, 07:21 AM
Oh, I will add that info as soon as I have time for it. Sorry, I don't remember me removing it as I normally hate when people do such things.
Anyways, is this addon final or do you see any 'improvements' or 'extra functionality' in the near future?
Coordinator Inc
11-22-2003, 06:24 AM
vbArchive v1.3 Released
250,000 Google pages (http://www.google.ca/search?q=showthread/t-&hl=en&lr=&ie=UTF-8) (and counting...) indexed so far. Congratulations to all users!
WHAT'S NEW IN VERSION 1.3:
I added the number of threads and posts for each forum.
The problem with a static page like the main archive page (as well the category ones) was that it never changed.
Now, every time a crawler visit the page, it will see new elements changed, since the number of threads and posts will always change.
Take a look at my archive (http://www.teckwizards.com/archive/), until FireFly updates the vBulletin.org one.
[/b]
Man, I PMed you a week ago.
I need this script to be installed on 2 of my forums for a fee.
Can you do it please?
Let me know either way.
Thanks.
dssforum
11-26-2003, 08:48 PM
Can someome please install this for me been at it all week with no luck trying to install it on www.tsxclub.com
messege me on AIM : FerrariG2
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 . ' ' , $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 = ' ';
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 (https://vborg.vbsupport.ru/showthread.php?postid=342448#post342448)
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 (https://vborg.vbsupport.ru/showpost.php?p=416224&postcount=647) 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
yep, your Server has a problem with Apache's ForceType directive !
Please check the syntax of your .htaccess file
For me the following CHANGE (https://vborg.vbsupport.ru/showpost.php?p=416224&postcount=647) 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
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
Khashyar
01-11-2004, 07:53 PM
Hi guys...
I have used vbarchive with very good results...
HOWEVER, I just upgraded from VB 2.30 (where vbarchive worked fine), to VB 2.34, where installing vbarchive creates an error in my forum...
Have others found that vbarchive does NOT work with the new VB 2.34???
Thanks for your feedback and help...
Khashyar
Onkel_Tom
01-11-2004, 08:36 PM
If you use the upgrade script to update to 2.3.4 you have to install the hack again because the templates will be lost.
Therefore I update to newer version by hand without using the updatescript;)
I use also vB 2.3.4 with vBArchive and it works
Khashyar
01-11-2004, 09:58 PM
thanks for the reply, Tom...
I discovered the problem... I was trying to use the same edited functions.php file that I used with my 2.30 VB..... I needed to take the new 2.34 functions.php file and reinsert the ad-on code from the VBArchive hack....
Now it seems to work...
Thanks for your reply....
Khashyar
bigdaddy04
01-14-2004, 11:38 PM
Is this script good for vBulletin Version 2.3.3 ?
Khashyar
01-15-2004, 05:02 AM
big daddy....
I'm sure that it also works with 2.3.3
Skyline_GT
01-24-2004, 12:08 AM
work perfect http://www.gamerzplanet.net/forums/archive
AN-net
01-28-2004, 06:42 PM
i type http://www.animationation.net/community/archive/ and i get errors:(
dgessler
01-29-2004, 02:55 PM
Anyone know what's wrong with this? Followed instructions, and when I try to open vbarchive.php I get the following:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/aimforum/public_html/archive/admin/vbarchive.php on line 8
Warning: main(): Failed opening './global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aimforum/public_html/archive/admin/vbarchive.php on line 8
Fatal error: Call to undefined function: cpheader() in /home/aimforum/public_html/archive/admin/vbarchive.php on line 165
Any help would be appreciated, thanks!
Dan
armani1072
02-03-2004, 10:01 AM
i get page cannot be viewed error when going to http://www.precisionmuscle.org/archive/ i followed the instructions to a T. the only thing is that i am running vb 2.3.4. am i missing something?
armani1072
02-03-2004, 10:22 AM
nevermind i got it. thanks anyway :D
Still Waters
02-04-2004, 05:24 PM
Hey guys, I'm stuck at step 1.
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!
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
<?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 . ' ' , $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 = ' ';
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:
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
Yes a version for Vbulletin 3 would be much appreciated!
Not needed since vb3 includes its own :)
blakkboy
03-03-2004, 01:09 PM
When I go to your archive blakkboy (at www.tru-essence.net/forum/archive/) I get:
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
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.
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
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?
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.
## 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;
}
}
}
}
## ----------------------------------------------------------------------------- ##
I recently upgraded to 3.5 and wondered if this upgrade "overwrote" and I would need to re-install? Thanks!
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
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
Can i install it to Vbulletin 3.6.8?? is there something new to use??
What for, there is an archive already in vb?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.