Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 05-30-2006, 03:44 PM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 05-30-2006, 04:13 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 Bad Bunny
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
Reply With Quote
  #14  
Old 05-30-2006, 07:22 PM
xStylezx xStylezx is offline
 
Join Date: Mar 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lady Divus
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
Reply With Quote
  #15  
Old 05-30-2006, 07:30 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 xStylezx
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
Reply With Quote
  #16  
Old 05-31-2006, 09:25 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the hack!
Reply With Quote
  #17  
Old 06-01-2006, 09:16 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 06-02-2006, 12:59 AM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the URL rewrite code for it to work on lighttpd?
Reply With Quote
  #19  
Old 06-07-2006, 12:08 AM
board.trash board.trash is offline
 
Join Date: Aug 2005
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

404 error here, mod rewrite is installed :surprised:
Reply With Quote
  #20  
Old 12-19-2007, 03:44 PM
sabrawy sabrawy is offline
 
Join Date: May 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


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 11:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04459 seconds
  • Memory Usage 2,307KB
  • Queries Executed 24 (?)
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
  • (1)bbcode_php
  • (3)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