The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
I am tired of my 200,000 posts not being listed in Google. I was inspired by phpbuilder.com this morning and I wrote:
vbSpiderFriend - the search engine indexer for all of your posts Purpose: Allow search engine spiders to crawl a linked list of all of your posts. Project Requirements: -Friendly URLs (no query strings) -Good dynamic meta tags -Never have to touch the script again.. It is Y3K compliant, simply re-submit to the engines to update your listings Install Requirements: -vBulletin 1.x or 2.x -about 10 minutes 1) Download the attached Zip. 2) Open class.mysql.php and put your database login info at the top. 3) Create a new directory called archive under your forum, like /forum/archive 4) Open the included .htaccess and change the Error 404 to your new archive path. 5) Open index.php and change the self-explanatory variables at the top of the file. 6) Upload all 3 files to your archive directory. 7) Submit /forum/archive/index.php to search engines and watch em crawl DISCLAIMER: I don't use 2.x but I checked the schema and this should work fine. NOTES: This uses ErrorDocument and query string parsing to get the variables needed. I do not have the time or energy to troubleshoot this if it does not work on your server. Sorry! Show Your Support
|
Comments |
#222
|
|||
|
|||
![]()
Absolutely, it would be awful (and very easy) to forget to add a new private forum to the exclude list and find your private posts indexed by search engines, you might even get sued for breach of privacy and you can never get rid of the things once in the search engines. Really a big risk.
MUCH safer to list the forums that you want indexed and have the code ignore any others. No risk of mistakes then. |
#223
|
||||
|
||||
![]()
I finially got everything indexed on google! YEY! The only problem I see is this:
http://www.google.com/search?num=100...=Google+Search See all the 'No posts, please go back' ? I'm afraid google indexed too many of these pages and not enough of the actual threads. Is there a way to turn off the pages without topics? |
#224
|
|||
|
|||
![]() Quote:
|
#225
|
|||
|
|||
![]()
For those of you who were having posts not show up, you may have to change some code. The original has it skip all but one second of the last day of each of the 'weeks' to fix this, find:
Code:
$date1 = "$month/$fw/$year"; $date2 = "$month/$lw/$year"; $ts1 = strtotime("$date1"); $ts2 = strtotime("$date2"); echo spacer(2)."Dates: $date1 to $date2<br> <br>"; $query = "SELECT title,threadid,lastpost FROM thread WHERE lastpost > '$ts1' AND lastpost < '$ts2' AND forumid='$forumID' ORDER BY dateline ASC"; Code:
$date1 = "$month/$fw/$year"; $date2 = "$month/$lw/$year"; $ts1 = strtotime("$date1"); $ts2 = strtotime("$date2"); $ts3 = $ts2 + 86399; echo spacer(2)."Dates: $date1 to $date2<br> <br>"; $query = "SELECT title,threadid,lastpost FROM thread WHERE lastpost > '$ts1' AND lastpost < '$ts3' AND forumid='$forumID' ORDER BY dateline ASC"; This may not be the problem everyone is having, but it is the problem I was having. Hope it helps someone! |
#226
|
|||
|
|||
![]()
Another thing, if you don't want it to display categories that can't contain threads find:
Code:
$query = "SELECT title,forumid FROM forum$whereclause ORDER BY forumid ASC"; Code:
$query = "SELECT title,forumid FROM forum$whereclause AND cancontainthreads='1' ORDER BY forumid ASC"; Just another little nit-picky thing I wanted to add. ![]() |
#227
|
||||
|
||||
![]()
Too bad, doesn't work for me, it simply reloads the page again and again...
![]() my code: PHP Code:
http://www.mcseboard.de/archiv/ Thanks, -Tom |
#228
|
||||
|
||||
![]()
Try this line...
$forumURL=""; // Base URL of your forum should be something like: $forumURL="/forums"; // Base URL of your forum Quote:
|
#229
|
||||
|
||||
![]() Quote:
$forumURL="http://www.mcseboard.de"; // Base URL of your forum and $forumURL="/"; // Base URL of your forum Both had the same effect as the empty one, strange... ![]() |
#230
|
||||
|
||||
![]()
It works now
![]() Yeah, cool and now it says: no posts go back :ermm: Update: Ok, it works now sometimes correct(?) Think I still have to tweak here and there... |
#231
|
|||
|
|||
![]()
Hi,
I have an odd error. Whenever I click on a link from the index page (where it lists all the forums), I get a 404. (I took out the ErrorDocument, cause it would just reroute me to the archive's index and I was wondering if it was your script or a 404. Anyway ...) I looked at your script and saw that you are reading everything from $REQUEST_URI, instead of using $PATH_INFO. As I would have guessed. I would parse it like that: PHP Code:
My server runs Apache 1.3.x with PHP4.x.x (installed as an Apache Module). No clue really how to fix it, since I am a bit off with your script (reading someone else' code can be a tough on indeed.). :-/ Any help is appreciated. ![]() Thanks! Till P.S. A "bug", that I might add. I have categories and forums. So for example, "Site related" holds "News" and "Chat", yet they all get output on the same page although "Site related" is not allowed to have any threads, let alone posts. If you have a look at the vbulletin database, table "forum", the is a field called "cancontainthreads", which' value is 0 if it's a category and 1, if it's an actual forum. (Kind of hard to explain, but I am sure you get the drift.) So my suggestion would be to select those first and kind of group by. Maybe not really a bug, more a feature request. ![]() |
![]() |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|