![]() |
VB3 Easy Archive
OK, this isn't the nicest way of doing it I'm sure, but it works!
What this does is change the path of archive files in VB from /forums/archive/index.php/....... to /archive/...... In theory google should spider the archive pages better, as they do not look php generated. My archive (www.martialartsplanet.com/archive) is certainly getting google picking it up, where it was not before. I've only tested this on one site - let me know how it goes! |
why not set your archive up as a subdomain and have it redirect to your www.doamin.com/forum/archive :D
|
Quote:
I just like putting it in the root folder of my domain. :) |
hmm cant upload the 'archive' file, in rc3
|
Quote:
Make sure you keep the file as 'archive.txt' before uploading it, and rename it to 'archive' once it is on your server. |
Quote:
Try calling the file 'archive2' and renaming the references to archive as archive2 in .htaccess. You can then test that it works before switching over to it. you will also need to change the chdir commands in archive.txt to the following : PHP Code:
Hope this makes sense! |
excellent thanks!, thanks for the quick reply :)
|
Quote:
If your archive is currently /forums/archive then please use the instructions in the first post. |
Does it work on IIS 6 ? (Extremely important) ?
|
Quote:
|
.htaccess files works great on IIS (if you install an ISAPI filter for it), but the problem is that the native vb3 archive uses something apache specific and that is why - it doesnt work
|
Quote:
I'm thinking of writing one from scratch, but that will be many months away due to other commitments. Out of interest, what is the code that is apache specific? |
I am extremely interested, because for users of IIS there is no archive feature for vb3 at the moment. I am not sury what is apache specific, but I know, that even with this ISAPI filter which is 100% compatible to htaccess - it comes a blank page.
|
Quote:
http://www.dslteam.de/forum/archive/index.php/ It seems to work OK to me! |
Also, I'm no VB expert, but try changing the following code in /archive/global.php
PHP Code:
PHP Code:
|
I am running apache under windows 2003 at the moment. That is the reason why it is working now.
|
Quote:
I get the first page OK, but the subsequent links dont work. However, W2k may handle this better. |
hmm... but nevertheless - the archive doesnt support IIS and it is really a big problem according to the fact, that about 30 % of all servers running IIS.
|
Just an FYI. But why would you make a hack that is already included in RC4??? I see no difference from yours to the one that is included in RC4.
|
Quote:
I may look at extra functionality in future, such as dynamic meta tags etc, but I'm sure someone else will beat me to this. Personally, I wrote because I thought it would be useful to my own site. I think that http://www.martialartsplanet.com/archive/t-10794 will rate higher than http://www.martialartsplanet.com/forums/archive/index.php/t-10794 to a search engine. But maybe not - the ratings systems change all the time! It certainly made a difference when I were a lad. |
I'm working on a way to make it work on IIS. You have to use adutils.vbs to enable script mapping on the webserver. I'm working on the new archive script that can be used to replace the current script if you run IIS.
I should have this done within the next 2 weeks. There is a hack to use isapi_mod_rewrite in the vb 2 beta hack section which works well to rewrite the forumj urls. I used it until I went with vb3. With vb3 the urls are spidered very well. |
James, thank you, it's what I was waiting for!
|
Quote:
|
I couldn't quite get mine to work because my forum are deep in a file structure like root/site/forums/archive and I couldn't figure the path changes I'd need to make.
on another note, had anyones vb3 actually been spidered? I've had mine up on a big forum for a month and nothing has been spidered. |
Quote:
I'm still waiting for the spiders to pickup the forums - I was hoping this hack would improve things. It used to take around 3 months to get fully spidered on Google, but I'm not convinced this is the case anymore. Keeping fingers very crossed! |
I don't get it, why must you rename the archive folder to archiveold if you have a deeper forum structure? Wouldn't it function the same? I"m confused,
|
Quote:
If your archive is in the normal /forums/archive then you dont need to worry about this. |
James...I am getting this error above my archive:
Warning: chdir(): SAFE MODE Restriction in effect. The script whose uid is 503 is not allowed to access ./../.. owned by uid 0 in /home/virtual/site1/fst/var/www/html/archive on line 28 Any help? |
SAFE MODE --- turn it off, or ask your host to
|
Quote:
I might look at a longer term fix in code, but I'm also thinking about re-writing the archive from scratch anyway, as I'm personally not keen on how it works. This would probably be several months away. |
Works on 3.0.1 and Google likes it more than normal archive!
Thank you |
no problem - glad someone else has 'seen the light'! :D
|
Nice hack!
|
Quote:
Premature end of script headers: /home/******/public_html/forum/archive |
ehsanix - did the original VB archive work OK before you tried this? What is your website address?
|
My vb3 archive does not work because I do not have php compiled as a module. Can this be used as a solution to that?
I appreciate any help. |
Quote:
https://vborg.vbsupport.ru/showthrea...hlight=archive |
Thank you sir. You are a gentlemen and a scolar.
|
Hi Guys,
Great little script, I'm very impressed and very simple and easy to seutp. EDIT: By the way I'm running 3.0.3 and it works perfectly. |
Thanks bL@De - Happy New Year :D
|
All times are GMT. The time now is 03:04 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|