vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vbRanking revised (https://vborg.vbsupport.ru/showthread.php?t=117102)

testnutzer123 05-29-2006 10:00 PM

vbRanking revised
 
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)

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

Quote:

Originally Posted by Lady Divus
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

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).

redspider 05-30-2006 05:10 AM

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 .

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 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); 

?>


testnutzer123 05-30-2006 11:51 AM

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 ;)

Lady Divus 05-30-2006 01:50 PM

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

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

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

xStylezx 05-30-2006 07:22 PM

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

Lady Divus 05-30-2006 07:30 PM

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

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?


All times are GMT. The time now is 04:49 AM.

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.01110 seconds
  • Memory Usage 1,777KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete