vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Easy Archive - Search Engine Spiderable Hack! (https://vborg.vbsupport.ru/showthread.php?t=65703)

Xenon 05-30-2004 10:00 PM

vB Easy Archive - Search Engine Spiderable Hack!
 
Ok, as a lot of users have installed SkuZZy's and mine vB Easy Archive Hack i've decided to release a vB3 Version as well.

As vB3 already comes with an build in Archive System, it's not that needed than it was in vb2, but for all of you, who have installed the vb2 version and don't want to loose their indexed Pages, this one is for you :)

I'm lazy and therefore will copy the Releasetext of vb2 by SkuZZy.

About this hack

This hack will help get all your threads listed in google and other search engines and get your threads easily spidered! It works by creating an archive and turning all your posts into .html format. It doesn't actually create the .html files though, but google thinks they are real! It uses mod_mime. If you don't have mod_mime, you will still be able to install this hack, just read the install.txt for help then.

What does it do?

The purpose of this hack are to get your keywords from your forums listed in google and get people visiting them! Since these are all pure text and don't use tables or excess font tags, they are very friendly on bandwidth! This will display all your files in a nice text format that google will absolutely love! Visit the online demo below to see it in action!

Online Demo

To view a demo of this script, visit this site:
http://www.strategy-forum.de/easy_archive/

Requirements

Apache
vBulletin 3.x
mod_mime installed (not absolutelly required, but recommended)
.htaccess
5 minutes of your time...


Known Problems/Confusion

Mod_mime - It is recommended to have mod_mime installed to run these scripts. Mod_mime is a free module which enables a directive called "ForceType". This allows you to use the .htaccess file included to force your files into php mode, which allows simple URL's, without .php in them. If you can see the front page of your archive, but get an error page when you click on any links then this is your problem. To fix it, you will need to install mod_mime, or ask your host to do it. It's a FREE module. For more information, visit http://httpd.apache.org/docs/mod/mod_mime.html
If you want to run vb Easy Archive without mod_mie, please look into the install.txt

Private forums - Private forums are NOT shown and they will NOT be spidered. Some people say the private forums show up, that is because you are logged in as the admin and the archive uses permissions. So anyone who has permission to view the private forums on your forums, will beable to view them on the archives also. But if you log out of your account OR log into an account that doesn't have access to them, then you won't beable to view them :)

Forumlist yes, but threadlist no - https://vborg.vbsupport.ru/showpost....5&postcount=91
https://vborg.vbsupport.ru/showpost....&postcount=153

Credits
SkuZZy aka Adam J. de Jaray, who gets my Special Thanks for his modifications, releasing and of course his Support to my Script's vb2 version. Note, he does not have anything to do with the vb3 version, but without him, there wouldn't have been the vb2 version and therefore i would never have released the one for vb3 :)

Agreement

By using these scripts & installing them, you agree to leave the small (virtually unnoticable) copyright text and links at the bottom of all pages. You also agree to leave jelsoft's copyright there as well. You can modify the scripts much as you want, but this portion must remain intact (links must stay) and visible. This is all I ask :D

Download Final

To install, just download the file below and open the "install.txt" file. All is explained there. Installation should only take a couple of minutes. If you have problems with this script, post them in this thread and I will try and get around to answering them.

insanctus 05-31-2004 04:56 PM

I think I will install this, even though vb3 has it, this is in another area = more for it to spider :)

Can not hurt.

Xenon 05-31-2004 05:55 PM

true :)

msimplay 05-31-2004 08:21 PM

i remember the old archive had some kind of addon that allowed direct access to the archive aswell
1 . The vbulletin on and off.gifs on forum home were turned into the direct link to the archive
same was done for forum display
and again the same for the thread itself

in the thread link said >> link to the archived post here
or something similar

oh yeh i found it now
this addon for the vbhome lite search indexer was great
found in this post
wondering if it could be done for vbulletins indexer as my vbulletin 3 indexer is indexing all my posts like mad

but its weird coz my friend owns a really busy site yet none of his archived posts are getting indexed so i bet this new hack will fix it for him

Prince 06-01-2004 02:33 AM

The old version worked perfectly, here is the error I get with this version:

Fatal error: Call to undefined function: archive_output() in /home/admin/public_html/history/index.php on line 82

can see here:
http://www.ironmagazineforums.com/history/

drumsy 06-01-2004 03:25 AM

Are the archive pages created by vB3 also spidered by search engines? I don't seem to see them around anymore.

Natch 06-01-2004 05:21 AM

I have this installed, but am getting
Code:

Warning: fetch_header(http://www.mobileforces.org/forums/search/header.php): failed to open stream: HTTP request failed! HTTP/1.1 406 Not Acceptable in /home/mofo/public_html/forums/search/archive_functions.php on line 33

Warning: fetch_header(): Failed opening 'http://www.mobileforces.org/forums/search/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mofo/public_html/forums/search/archive_functions.php on line 33

above my content and
Code:

Warning: fetch_footer(http://www.mobileforces.org/forums/search/footer.php): failed to open stream: HTTP request failed! HTTP/1.1 406 Not Acceptable in /home/mofo/public_html/forums/search/archive_functions.php on line 44

Warning: fetch_footer(): Failed opening 'http://www.mobileforces.org/forums/search/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mofo/public_html/forums/search/archive_functions.php on line 44

below the content on every page?

Would there b e any problem in linking to the header and footer php scripts via a local connection, rather than a HTTP connections (caused by $archiveurl . "/header.php") ?

gmarik 06-01-2004 07:59 AM

At last - I lvoe you, man!

Xenon 06-01-2004 11:35 AM

@Prince: have you uploaded all files?
the archive_output() is defined within the functions file.

@natch: Should be possible as well, just replace
PHP Code:

    include($archiveurl '/header.php'); 

in archive_functions.php with
PHP Code:

    include('./your archive folder here/header.php'); 

same with footer

0ptima 06-01-2004 01:31 PM

I cant run the VB3 archive as my host did not compile PHP as a module. I think I will install this!

Natch 06-01-2004 11:58 PM

Quote:

Originally Posted by Xenon
@Prince: have you uploaded all files?
the archive_output() is defined within the functions file.

@natch: Should be possible as well, just replace
PHP Code:

    include($archiveurl '/header.php'); 

in archive_functions.php with
PHP Code:

    include('./your archive folder here/header.php'); 

same with footer

Thanks Xenon - great job!

dstruct2k 06-02-2004 04:02 AM

Quote:

Originally Posted by 0ptima
I cant run the VB3 archive as my host did not compile PHP as a module. I think I will install this!

Same problem here! Yeah, this is getting installed ASAP!

Natch 06-02-2004 04:30 AM

Well one wierd thing is that my host didn't used to have PHP as a module, but after I installed this, the default Archive works :D

:w00t: hehe thanks anyway - I'll keep both (why not)

0ptima 06-02-2004 12:41 PM

Quote:

Originally Posted by Natch
Well one wierd thing is that my host didn't used to have PHP as a module, but after I installed this, the default Archive works :D

:w00t: hehe thanks anyway - I'll keep both (why not)

what version of PHP do you have?

Natch 06-02-2004 12:56 PM

Nah - it's looking like my hosting provider has installed PHP 4.3.5 as a module ! and I didn't even ask em :D

And again I say :w00t:

Xenon 06-02-2004 02:04 PM

*gg*

the host fears you'll isntall more hacks if they don't compile php as a module ^^

Natch 06-02-2004 02:16 PM

Little tdo they know that I'm moving server's again in the next week or so ...

Touch wood the new datacenter is modular as well :D

I modded your code just a little Xenon - there was a golden opportunity to use the Archive's CSS file (just sitting there :))

Find:
PHP Code:

    <base href=\"$forumurl/\"> 

Add afterwards:
PHP Code:

    <link rel=\"stylesheet\" href=\"./archive/archive.css\" type=\"text/css\" /> 

With this then, it would be relatively trivial (sort-of) to make this archive look just like the vB3 default one ...

Xenon 06-02-2004 02:26 PM

thx for the tip :)

i still prefere the easy version, but, i'm sure there are some, who prefere a better looking way ;)

monstergamer 06-02-2004 02:53 PM

Quote:

Originally Posted by Natch
Little tdo they know that I'm moving server's again in the next week or so ...

Touch wood the new datacenter is modular as well :D

I modded your code just a little Xenon - there was a golden opportunity to use the Archive's CSS file (just sitting there :))

Find:
PHP Code:

    <base href=\"$forumurl/\"> 

Add afterwards:
PHP Code:

    <link rel=\"stylesheet\" href=\"./archive/archive.css\" type=\"text/css\" /> 

With this then, it would be relatively trivial (sort-of) to make this archive look just like the vB3 default one ...

could not find <base href="$forumurl/\">
in any of the file

found <base href=\"$forumurl/\">
and added the code there, and i get an error

Natch 06-03-2004 04:49 AM

Quote:

Originally Posted by monstergamer
could not find <base href="$forumurl/\">
in any of the file

found <base href=\"$forumurl/\">
and added the code there, and i get an error

What error do you get ?

monstergamer 06-03-2004 05:13 PM

i fixed it

this is what i had to do
find
<base href=\"$forumurl/\">

add under that
<link rel=\"stylesheet\" href=\"./archive/archive.css\" type=\"text/css\" />

Rich 06-04-2004 12:04 AM

Hello,
I get the same error except it shows the archive,but not the header and footer. I just get parse errors.

Xenon 06-04-2004 09:40 AM

did you do the local include change i posted for Natch?

https://vborg.vbsupport.ru/showpost....76&postcount=9

Onkel_Tom 06-06-2004 10:48 PM

nice work Stefan, thank you ;)

another important hint is that the files "forum" and "topic" should be chmod to 755 after upload.

Xenon 06-07-2004 09:58 AM

well, all vbulletin files should have this chmod ;)

[offtopic]Hayabusa Forum? Da muss ich mal meinen Dad hinlenken ;)[/offtopic]

krohnathlonman 06-11-2004 07:50 PM

well, it won't get that great of search positioning unless the thread titles are inserted into the HTML page titles.... Looks like it'll take a bit of rewriting to get this in it's current form.

Prince 06-11-2004 08:02 PM

Quote:

Originally Posted by krohnathlonman
well, it won't get that great of search positioning unless the thread titles are inserted into the HTML page titles.... Looks like it'll take a bit of rewriting to get this in it's current form.

you're right, but it's simple!

open archive_functions.php

find:
PHP Code:

$header "
        <html>
            <head><title>
$title</title></head>
            <base href=\"
$forumurl/\">
        <body> 


change to:
PHP Code:

$header "
        <html>
            <head>
            <title>
$threadinfo[title] - $title</title>
            <meta name=\"keywords\" content=\"
$threadinfo[title]\">
            <meta name=\"description\" content=\"
$threadinfo[title]\">
            <base href=\"
$forumurl/\">
            </head>
        <body> 


krohnathlonman 06-11-2004 10:58 PM

the threadinfo[title] is what I tried and it didn't work...

http://www.iamnotageek.com/history/topic/64131-1.html

basically threadinfo is defined well after the header and I haven't figured out what all needs to be rearranged yet for this to work....

Prince 06-11-2004 11:05 PM

Quote:

Originally Posted by krohnathlonman
the threadinfo[title] is what I tried and it didn't work...

http://www.iamnotageek.com/history/topic/64131-1.html

basically threadinfo is defined well after the header and I haven't figured out what all needs to be rearranged yet for this to work....

oops, sorry I forgot to tell you to do this:

find:
global $archiveurl, $forumurl, $title;


change to:
global $archiveurl, $forumurl, $title, $threadinfo;

krohnathlonman 06-12-2004 12:21 AM

Thanks for the help on the addition....

in the forum file I also did this:
PHP Code:

            $bah                         str_replace(" ""_"$thread[title]);

    
$threadbits .= "<li /><a href=\"$archiveurl/topic/$thread[threadid]-1$bah.html\">$thread[title]</a>\n"


Prince 06-12-2004 01:53 AM

Quote:

Originally Posted by krohnathlonman
Thanks for the help on the addition....

in the forum file I also did this:
PHP Code:

            $bah                         str_replace(" ""_"$thread[title]);

    
$threadbits .= "<li /><a href=\"$archiveurl/topic/$thread[threadid]-1$bah.html\">$thread[title]</a>\n"


to make the URL the thread title... well you can do that but honestly it will not help you with Google.

krohnathlonman 06-12-2004 05:07 AM

are you sure? I know alot of people that swear by it..... I'm trying to test it out myself, but don't think that it could hurt anything....

Xenon 06-12-2004 10:54 AM

As for the page title, that's a good idea, will add it to the next version i upload here.

as for the thread_title in urls. It can even have a negative effect, if urls get too long...
so i suggest to keep the title out of there.

Prince 06-12-2004 03:56 PM

Quote:

Originally Posted by krohnathlonman
are you sure? I know alot of people that swear by it..... I'm trying to test it out myself, but don't think that it could hurt anything....

people swear by many things that does not make them true. ;)

Xenon 06-15-2004 04:19 PM

Ok, i have uploaded a new zip file.

Basically a lot of files have been edited.
Most of them, just slightly, to remove typos or such.
I also added the doctype tag, and made them XHTML1.0 Transitional.
Also the absolute include for the header/footer have been changed to relative ones.

all you need to do is, to upload all changed files, the rest should work :)

Natch 06-15-2004 04:31 PM

thx man - great work btw

default files work a treat now :) only mod I re-did was the link to the archive.css stylesheet [hint hint ;)]

Xenon 06-15-2004 04:59 PM

thx :)

yeah, i looked at that mod as well, but wasn't too sure, if i should add it or not.

i may try it on my own archive maybe, and then decide if i will add it to the next version or not ;)

Onkel_Tom 06-15-2004 10:21 PM

Onkel_Tom updated the files and also Natch's stylesheet addition !
Works fine ;)

thanks you guys !

Xenon 06-16-2004 02:00 PM

:)

freut mich zu h?ren.

Cold Steel 06-20-2004 05:46 AM

I'm running Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2634a mod_ssl/2.8.18 OpenSSL/0.9.7a PHP-CGI/0.1b

I chmod all files to 755. But I can only get the main page to work -- all links on the page give me 500 errors.

http://forums.asiansinc.com/search/

Any ideas?


All times are GMT. The time now is 02:32 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
  • Page Generation 0.01550 seconds
  • Memory Usage 1,860KB
  • 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_code_printable
  • (12)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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