View Full Version : vbRanking revised
testnutzer123
05-29-2006, 10:00 PM
You might know the vbRanking plugin (http://www.vbranking.com/) for vBulletin 3.5.x. (95265)
This one is a complete rewrite.
The plugin will regenrate links to a new format (e.g: showthread-goto_newpost-t_27730.html).
Webspiders, like the GoogleBot, will then parse the whole page and generate better search indexes from your forum.
does correctly handle "all" arguments
Less RewriteRules, less preg_replaces
Should do better performance-wise.
Only regenerates links for GUEST (i.e. all spiders)
Requirements
vB3.5
mod_rewrite
No active vbRanking from other vendor(s).
License
? 2006 by Nils Maier
The GNU General Public License (GPL) (http://www.opensource.org/licenses/gpl-license.php)
Homepage
http://celebnamer.celebworld.ws/stuff/vbRanking/
Installation
Install the RewriteRule stuff (upload and/or merge upload/.htaccess)
Install the plugin (upload/product_*.xml)
Done!
Code
(just as a reference the code from the plugin and from .htaccess).
Code is dead simple.
<?php
/*
(C) 2006 by Nils Maier
License: GNU General Public License (GPL) 2.0, http://www.opensource.org/licenses/gpl-license.php
*/
function _c_vBRanking_replace($in)
{
return sprintf(
'%s-%s.html%s',
$in[1],
preg_replace(array('/(&|&(?!quot;|lt;|gt;))/', '/=/'), array('-', '_'), $in[2]),
$in[3]
);
}
function vBRanking($in)
{
return preg_replace_callback('-(<a.*href="(?!\w+:).*)\.php\?(.*)(#|")-Ums', '_c_vBRanking_replace', $in);
}
if (!$vbulletin->userinfo['userid'])
{
$output = vBRanking($output);
}
?>
Rewrite Rules:
RewriteEngine on
RewriteRule ^(.*)-(.+?)_(.*?)\.html$ $1.html?$2=$3 [N,QSA,L]
RewriteRule ^(.*)\.html$ $1.php [QSA]
Notes
Beta version.
No support (maybe you'll get some if I have a nice day)
Lady Divus
05-30-2006, 04:41 AM
Thank you for the hack, i will install it later on. Sounds interesting -
Lady Divus
testnutzer123
05-30-2006, 04:45 AM
Reserved!
huh?
kurtbarker
05-30-2006, 05:04 AM
just to clarify mate... does this ONLY rewrite the links for guests... coz I like the idea but saw it pointless for actual members...
also, is it easy and clean to uninstall if required?
and that reserved post is funny, LOL
there is a massive vBrewrite which is good, but I reckon a little too big at the moment...
thanks
testnutzer123
05-30-2006, 05:09 AM
...
also, is it easy and clean to uninstall if required?
...
You may deactivate/uninstall the plugin anytime.
The RewriteRule stuff however might be left in then.
It shouldn't cause harm and furthermore regenerated links still work (eg. if a guest copy/paste'd such link somewhere).
redspider
05-30-2006, 05:10 AM
Reserved!
maybe question come later but will be hard to find .
anyway nice hack will try later in one of my site to compare with other similar seo .
maroceve
05-30-2006, 07:57 AM
yes i d like to hear some more reviews cause vrewrite is causing a lot of problems in my site...
Barakat
05-30-2006, 09:35 AM
it makes a server enternal error ? and wont work ...
2 what is that code ? or to put it
Code is dead simple.
<?php
/*
(C) 2006 by Nils Maier
License: GNU General Public License (GPL) 2.0, http://www.opensource.org/licenses/gpl-license.php
*/
function _c_vBRanking_replace($in)
{
return sprintf(
'%s-%s.html%s',
$in[1],
preg_replace(array('/(&|&(?!quot;|lt;|gt;))/', '/=/'), array('-', '_'), $in[2]),
$in[3]
);
}
function vBRanking($in)
{
return preg_replace_callback('-(<a.*href="(?!\w+:).*)\.php\?(.*)(#|")-Ums', '_c_vBRanking_replace', $in);
}
if (!$vbulletin->userinfo['userid'])
{
$output = vBRanking($output);
}
?>
testnutzer123
05-30-2006, 11:51 AM
it makes a server enternal error ? and wont work ...
The RewriteRule stuff might cause 500 when Apache is not correctly configured.
a) You need to have mod_rewrite installed, and it must be properly configured, i.e. FollowSymLinks.
See http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewriterule (esp. the "Note: Enabling rewrites in per-directory context" paragraph).
2 what is that code ? or to put it
...
That code is simply the plugin code that gets installed.
No need to install it manually ;)
Lady Divus
05-30-2006, 01:50 PM
and that reserved post is funny, LOL
Ok, did i say something stupid?
re?served
Pronunciation: (ri-z?rvd'), [key]
?adj.
1. kept or set apart for some particular use or purpose.
Is there a problem with reserving a hack for later use? Oh well, i must be missing something. Can someone fill me in? I guess i forgot to wash the word stupid off my forehead when i showered this morning...Awaiting my crucifiction -
Lady Divus
Bad Bunny
05-30-2006, 03:44 PM
Usually the hack author reserves the first reply for his own use later on. By simply stating "Reserved!" it implied you were saving the post to be edited for information at a later date, which as I stated is a semi-common practice here.
Lady Divus
05-30-2006, 04:13 PM
Usually the hack author reserves the first reply for his own use later on. By simply stating "Reserved!" it implied you were saving the post to be edited for information at a later date, which as I stated is a semi-common practice here.
Oh ok, i wasnt aware of that...Thank you for clarifying this for me...I was simply stating i was reserving it for later use lol...I know now though :) Sorry for the confusion testnutzer123, indeed my statement meant something completely different...Thank you Bad Bunny...Be well -
Lady Divus
xStylezx
05-30-2006, 07:22 PM
Oh ok, i wasnt aware of that...Thank you for clarifying this for me...I was simply stating i was reserving it for later use lol...I know now though :) Sorry for the confusion testnutzer123, indeed my statement meant something completely different...Thank you Bad Bunny...Be well -
Lady Divus
Why would you make a post to reserve a hack for later use?Subscribing to the thread i can see,but just making a post doesnt make alot of sense to me.Whatever,dont wanna get the thread offtopic,just curious
Lady Divus
05-30-2006, 07:30 PM
Why would you make a post to reserve a hack for later use?Subscribing to the thread i can see,but just making a post doesnt make alot of sense to me.Whatever,dont wanna get the thread offtopic,just curious
I made a bad by making a Reserved post. No big deal. My intentions were not intended to be anything other than Reserved for later use. I wanted to be sure no one else had errors as a result of using this hack first.
You are right, i clicked, and typed Reserved when i could have used the subscribe button. I certainly didnt mean for anyone to fall to peices over it. If i have offended anyone, or broken any rules by making that post, i extend my apologies and promise to never do it again. testnutzer123, i am sorry this thread got so off topic -
Lady Divus
Snake
05-31-2006, 09:25 PM
Thanks for the hack! :)
redlabour
06-01-2006, 09:16 AM
Warning !
vBRanking V1.1 was a fine Products (even if it does not work correct with 3.5 !).
This Version here does create a 500 Servererror. Funny - because vBRanking 1.1 and other Software for Rewriting runs without problems. ;)
The Chief
06-02-2006, 12:59 AM
What's the URL rewrite code for it to work on lighttpd? :D
board.trash
06-07-2006, 12:08 AM
404 error here, mod rewrite is installed :surprised:
sabrawy
12-19-2007, 03:44 PM
can i rewrite the threads with thire names??
for example im inside Flash forum
inside a thread >> About Flash
i want the link like this
http://myforum.com/flash/about-flash/
also i want to know if that possople
i want to replace the none english caracters with aski code to make it work
can i do that with this hack??and how?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.