Originally Posted by
cscgal
Update:
I just took a look at vB 3.5. Based on what I can see - and this still goes untested - add the .htaccess file as mentioned above. Then, throw all the PHP code into the global_complete hook. The only difference to make is the last line should read:
$output = preg_replace($search_array, $replace_array, $output);
We're doing a find/replace on the parsed $output instead of the raw $vartext because, quite simply, a hook doesn't exist earlier in the function. So hopefully it will work.
If for whatever reason that above hook doesn't work, the fail-safe way that will 100% work in vB 3.5 is to add the exact code as in the original tutorial below:
function print_output($vartext, $sendheader = true)
{
global $pagestarttime, $querytime, $vbulletin;
global $vbphrase, $stylevar;
For all updated and newer versions of vBulletin 3.7 which has been tested, im not quit sure for vB 3.6x though, these codes have a minor change. I hope this can get stickied somehow for the newer versions of vB incase other members would still love this wonderful SEO from the great Dani herself!
Below:
$output = preg_replace($search_array, $replace_array, $output);
will not work, it will show a blank page, so as she mentioned earlier, make sure it still stands as
$vartext = preg_replace($search_array, $replace_array, $vartext);
Also, at the beginning, make sure:
function print_output($vartext, $sendheader = true)
{
global $pagestarttime, $querytime, $vbulletin;
global $vbphrase, $stylevar;
[/quote] has now changed too:
function print_output($vartext, $sendheader = true)
{
global $pagestarttime, $querytime, $vbulletin, $show;
global $vbphrase, $stylevar;
This should comeplete the file edits and update. The only file this will effect is the ./includes/functions.php . Enjoy!
dynastyCODERS#1 when it comes to Programming Tutorials, Database designs and discussions, Operating Systems, you name it, check us out and drop us a line to tell us your opinions on any and everything in mind!;)