Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
vbRanking revised Details »»
vbRanking revised
Version: 0.9, by testnutzer123 testnutzer123 is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 05-29-2006 Last Update: Never Installs: 11
Uses Plugins
Additional Files Is in Beta Stage  
No support by the author.

You might know the vbRanking plugin for vBulletin 3.5.x. (https://vborg.vbsupport.ru/showthread.php?t=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)

Homepage
http://celebnamer.celebworld.ws/stuff/vbRanking/

Installation
  1. Install the RewriteRule stuff (upload and/or merge upload/.htaccess)
  2. Install the plugin (upload/product_*.xml)
  3. Done!

Code
(just as a reference the code from the plugin and from .htaccess).

Code is dead simple.
PHP Code:
<?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('/(&amp;|&(?!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:
Code:
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)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-30-2006, 04:41 AM
Lady Divus Lady Divus is offline
 
Join Date: Feb 2006
Location: U.S.A.
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the hack, i will install it later on. Sounds interesting -

Lady Divus
Reply With Quote
  #3  
Old 05-30-2006, 04:45 AM
testnutzer123's Avatar
testnutzer123 testnutzer123 is offline
 
Join Date: Mar 2003
Location: Germany
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lady Divus
Reserved!
huh?
Reply With Quote
  #4  
Old 05-30-2006, 05:04 AM
kurtbarker kurtbarker is offline
 
Join Date: Nov 2005
Location: Kogarah, NSW
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 05-30-2006, 05:09 AM
testnutzer123's Avatar
testnutzer123 testnutzer123 is offline
 
Join Date: Mar 2003
Location: Germany
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kurtbarker
...
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).
Reply With Quote
  #6  
Old 05-30-2006, 05:10 AM
redspider's Avatar
redspider redspider is offline
 
Join Date: Jul 2005
Posts: 225
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lady Divus
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 .
Reply With Quote
  #7  
Old 05-30-2006, 07:57 AM
maroceve maroceve is offline
 
Join Date: Oct 2005
Location: Casablanca, Morocco
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes i d like to hear some more reviews cause vrewrite is causing a lot of problems in my site...
Reply With Quote
  #8  
Old 05-30-2006, 09:35 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it makes a server enternal error ? and wont work ...


2 what is that code ? or to put it

Code is dead simple.

PHP Code:
<?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('/(&amp;|&(?!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); 

?>
Reply With Quote
  #9  
Old 05-30-2006, 11:51 AM
testnutzer123's Avatar
testnutzer123 testnutzer123 is offline
 
Join Date: Mar 2003
Location: Germany
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Barakat
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...ml#rewriterule (esp. the "Note: Enabling rewrites in per-directory context" paragraph).
Quote:
Originally Posted by Barakat
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
Reply With Quote
  #10  
Old 05-30-2006, 01:50 PM
Lady Divus Lady Divus is offline
 
Join Date: Feb 2006
Location: U.S.A.
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kurtbarker
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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:01 PM.


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.04614 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete