Mods, I'm posting this here because it doesn't really seem to fit in any of the other forums. I'm hoping it can be moved to vB FAQ.
I got this idea from fastforward's hack at vB.org. This does not modify your actual PHP files though. The only downside of this hack is that WOL will just show a bunch of Unknown Location links when users are viewing a forum or viewing a thread. All other aspects of WOL will still function.
Also different to fastfoward's release is that (1) this one works (I never got his working successfully), and (2) broken images are a nonissue as this doesn't emulate directories, just a ton of flat files.
Requirements: Apache with mod_rewrite enabled (if your phpinfo page contains the text "mod_rewrite" then it's installed)
Time required: 20 minutes, plus backup time
If you mess up you can grandly break your forums! Do a database backup first, and if it doesn't work, revert the backup.
1. Turn your forums off in the admin CP
2. Back up your database (seriously)
3. Download the attached .htaccess file. Please don't quote its contents; I don't want unlicensed users to be able to see its contents.
4. Upload it to your forums' root directory. If you already have a .htaccess file there, just append this one's contents to the existing one.
5. In the templates forumhome_forumbit_level1_nopost, forumhome_forumbit_level1_post, forumhome_forumbit_level2_nopost, forumhome_forumbit_level2_post, forumdisplay_forumbit_level1_nopost, forumdisplay_forumbit_level1_post, forumdisplay_forumbit_level2_nopost, and forumdisplay_forumbit_level2_post (eight in total), replace:
With:
7. In forumdisplaybit, replace:
with:
8. In your phpinclude template, add the following:
This disables sessionhashes in the flat URLs. This will cause problems for a few people; namely those behind a proxy, but Google won't index your site unless sessionhashes are gone.
9. Reopen your forums in the admin CP. If all goes well, links like showthread.php?s=sessionhash&threadid=threadid will be equivalent to threadidthreaidsessionsessionhash.html. Note that these .html files don't actually exist! They are effectively aliases to the proper pages.
10. Submit your forums to Google and wait for Mr. Bot to come-a-knocking!
I got this idea from fastforward's hack at vB.org. This does not modify your actual PHP files though. The only downside of this hack is that WOL will just show a bunch of Unknown Location links when users are viewing a forum or viewing a thread. All other aspects of WOL will still function.
Also different to fastfoward's release is that (1) this one works (I never got his working successfully), and (2) broken images are a nonissue as this doesn't emulate directories, just a ton of flat files.
Requirements: Apache with mod_rewrite enabled (if your phpinfo page contains the text "mod_rewrite" then it's installed)
Time required: 20 minutes, plus backup time
If you mess up you can grandly break your forums! Do a database backup first, and if it doesn't work, revert the backup.
1. Turn your forums off in the admin CP
2. Back up your database (seriously)
3. Download the attached .htaccess file. Please don't quote its contents; I don't want unlicensed users to be able to see its contents.
4. Upload it to your forums' root directory. If you already have a .htaccess file there, just append this one's contents to the existing one.
5. In the templates forumhome_forumbit_level1_nopost, forumhome_forumbit_level1_post, forumhome_forumbit_level2_nopost, forumhome_forumbit_level2_post, forumdisplay_forumbit_level1_nopost, forumdisplay_forumbit_level1_post, forumdisplay_forumbit_level2_nopost, and forumdisplay_forumbit_level2_post (eight in total), replace:
Code:
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]">
Code:
<a href="$bburl/forumid$forum[forumid]session$flathash.html">
Code:
<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]">
Code:
<a href="$bburl/threadid$thread[threadid]session$flathash.html">
PHP Code:
$useflathashes = 0; // Change to 1 to turn on
if ($useflathashes)
{
$flathash = $session[sessionhash];
}
9. Reopen your forums in the admin CP. If all goes well, links like showthread.php?s=sessionhash&threadid=threadid will be equivalent to threadidthreaidsessionsessionhash.html. Note that these .html files don't actually exist! They are effectively aliases to the proper pages.
10. Submit your forums to Google and wait for Mr. Bot to come-a-knocking!
Comment