PDA

View Full Version : vB3 Pseudo Easy Archive


grandeur_69
04-15-2004, 10:00 PM
This is a dual solution:
1) for those who are upgrading from vB Easy Archive in vB2
2) for those who run Apache as a cgi but have rewrite access

I have made modifications to vB3's archive files to make it work like the old Easy Archive that we all loved.

Simply add this to .htaccess or apache config files:

RewriteRule ^/archive/forum/([0-9]+).html$ /archive/index.php?f=$1 [L]
RewriteRule ^/archive/topic/([0-9]+).html$ /archive/index.php?t=$1 [L]


... and use the files that I've attached. You can see one in progress at: http://www.abnehmen.com/archive/, but I have made more mods to this so that i can use the header/footer that I had in vb2.

dethfire
04-16-2004, 04:50 AM
hmmm I have the cgi problem and using your stuff it still kicks me back to the forum home, I applaud your efforts though!

grandeur_69
04-16-2004, 05:02 AM
do your rewrite rules work? i would check that issue first ... put up a couple dummy files and test it ...
not that i'm saying you didn't, but you must replace the current archive files with the ones in the zip file i attached as there are a couple redirects in there that are now commented as they just mess things up.

dethfire
04-16-2004, 05:11 AM
yeah hmmm, looks like the rewrite rules aren't working, I know I have mod rewrite installed and working because I use some simple rewrite other places

grandeur_69
04-16-2004, 06:26 AM
the mod-rewrite wouldn't work in my .htaccess file, so i had to put it in the apache config file for that site .. u need at least ssh access to the server ... possibly even root ... good luck

Majik?
04-16-2004, 04:49 PM
Put a line before any rewrite rules in your HTACCESS file to turn rewrite on.

AN-net
04-17-2004, 03:07 AM
thanks:) vb should definately look at this because i have php/apache as cgi and i hate that i cant use the archive.

AN-net
04-17-2004, 03:10 AM
where can i find my .htacces files or apache config files?

filth
04-17-2004, 03:05 PM
.htacces file you create yourself its a simple text document that has had its name changed

so simply create a text file and enter the code above upload it to the server (presumably into the root directory) and rename it to .htacces (yup no name before the .)

change the name after you upload as windows doesnt like filenames with nothing before the .

AN-net
04-17-2004, 03:11 PM
thanks:)

AN-net
04-17-2004, 03:13 PM
my site's root directory or my forums?

13th_Disciple
04-17-2004, 03:28 PM
whatever directory you want the rewrite rules on.. if it is for your forums, put it at forumroot..

filth
04-17-2004, 03:31 PM
yeah as 13th Disciple said in the forum root.

if you out it in your normal root directory it would affect your complete web accessible area placing it into your forum folder means only things in that folder will use it

AN-net
04-17-2004, 04:11 PM
when i upload .htaccess.txt to the archive folder it just disappears

Majik?
04-17-2004, 07:19 PM
when i upload .htaccess.txt to the archive folder it just disappears
It's there, but files that are .anything are regarded as hidden files. ;)

AN-net
04-17-2004, 08:38 PM
still when ever i click on my archive link, i get spit back out to my forums index

filth
04-17-2004, 08:55 PM
when i upload .htaccess.txt to the archive folder it just disappears

you should be able to set your ftp client to show hidden files can be useful

FlyBoy73
04-18-2004, 06:10 PM
I have part of mine working but none of the links under the listing work.. Any ideas?

http://www.prisontalk.com/forums/archive/index.php

grandeur_69
04-19-2004, 05:59 PM
change:

RewriteRule ^/archive/forum/([0-9]+).html$ /archive/index.php?f=$1 [L]
RewriteRule ^/archive/topic/([0-9]+).html$ /archive/index.php?t=$1 [L]

to:

RewriteRule ^/forums/archive/forum/([0-9]+).html$ /forums/archive/index.php?f=$1 [L]
RewriteRule ^/forums/archive/topic/([0-9]+).html$ /forums/archive/index.php?t=$1 [L]

to make use of your pathing

grandeur_69
04-19-2004, 06:01 PM
and, for all those who have possibly used my files, there is an update because there was a bug in viewing multiple pages ...

dethfire
04-19-2004, 07:14 PM
it all still sends me back to the home page

Natch
04-20-2004, 11:12 AM
This is a dual solution:
1) for those who are upgrading from vB Easy Archive in vB2
2) for those who run Apache as a cgi but have rewrite access

I have made modifications to vB3's archive files to make it work like the old Easy Archive that we all loved.

Simply add this to .htaccess or apache config files:

RewriteRule ^/archive/forum/([0-9]+).html$ /archive/index.php?f=$1 [L]
RewriteRule ^/archive/topic/([0-9]+).html$ /archive/index.php?t=$1 [L]


... and use the files that I've attached. You can see one in progress at: http://www.abnehmen.com/archive/, but I have made more mods to this so that i can use the header/footer that I had in vb2.
Will this work if you never used Easy Archive for vB2 ?

keiser
04-23-2004, 12:43 AM
when i upload .htaccess.txt to the archive folder it just disappears

.htaccess.txt isn't correct, it should be .htaccess

keiser
04-23-2004, 12:45 AM
I get: You don't have permission to access /forums/index.php on this server.

When I upload the .htaccess file

AN-net
04-30-2004, 02:18 AM
.htaccess.txt isn't correct, it should be .htaccess
but what is the file type?

Majik?
04-30-2004, 03:29 AM
but what is the file type?The filetype is "HTACCESS".. The file name is simply ".htaccess". ;)