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
vRewrite - SEOed URLs for vBulletin Details »»
vRewrite - SEOed URLs for vBulletin
Version: 1.5.1, by Immortal Immortal is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-04-2006 Last Update: 05-15-2006 Installs: 506
Uses Plugins Template Edits
Additional Files  
No support by the author.

About

vRewrite is an advance but simple system to rewrite vB's URLs. The rewrite system uses preg_match_all and str_replace to rewrite the URLs. It will rewrite any URLs that are dynamic ex: showthread.php?t= to /the-forum/title-of-the-forum-id.html. Why? SEs (Search Engines) rate results based on filename. Not only that, but most SEs give a "boost" to static URLs (what we do here) versus dynamic URLs. vRewrite accomplishes both of this, for all URLs that a search engine (or a guest) will see.

Installation

Please download vRewrite.zip and read install.html for more information on how to install it.

Requirements

vRewrite assumes that you are using Apache with the mod_rewrite module enabled, and running vBulletin 3.5.x. However, if you ask for support here on IIS' module or on vBulletin 3.0.x - I will be more then happy to assist you.

Contributions

I would like to thank Chroder and Cole for assisting me release vRewrite. I could not have released it if it wasn't for them.

I would like to thank the following people/boards for helping beta test vRewrite and making it a better product.

Gaming Ultimate, BP Gaming, NBS Designz Cyclez, Hosting-Talk and Forum University.

Copyright

I've spent many hours working and perfecting vRewrite. The only thing I ask you to do is if you use it, please keep the link back. If you wish to put it in your style instead, simply remove or comment out that line. However, if you use vRewrite you MUST link back. That is the only thing I ask.

Known Issues

There are no known issues with the latest release (1.0).

Support / Issues

If you have any problems or discover a bug please post here in this thread. I have also included my email in the install.html email for one-on-one support. The only thing I ask you is please do not post this email address publicly - it is my personal email.

Changelog

1.5 Release - vRewrite 1.5 has become stable, and all users under 1.5 RC3 and 1.0 need to upgrade. Support for 1.0 will no longer be offered, and you will be told simply to upgrade. Please continue to keep all bug and feature suggestions on the bug tracker at:

Code:
http://www.techhelpforum.com/vrewrite
1.1 Release - Several bug fixes, and a few new features. Details here.

03/26/06 - Updated the thread to reflect vRewrite 1.5 Beta links. vRewrite files has NOT changed.

03/11/06 - Updated the thread to take advantage of vB.org's new prefix feature. vRewrite itself has NOT changed.

1.0 Release (02/19/06) - I have released the much awaited 1.0. This is the first stable release of vRewrite. All users now should be safe installing vRewrite. For more information, and how to upgrade, please see here.

1.0 Preview (01/12/06) - I have released a preview version of 1.0. This is the final version before 1.0 is considered stable. I believe everything should work in this new preview, but one bug (see known issues). Please see here for more information and how to upgrade.

01/05/06 - Updated ZIP to include a fix for boards running a table prefix. You do not need to upgrade unless you previously had SQL errors. You can upgrade by importing the product and choose "Allow Overwrite".

Donations

Any donations are very much appreciated! I do this out of my free time and work many hours on it - all for free. Anything to help is always very welcomed

If you use vRewrite, please click Install. This helps you keep track of additional upgrades and shows to me that you care about vRewrite


You may not post vRewrite ZIP or any files contained in the ZIP on any website. You may not also post any support requests/give support on any website other then this one, without my permission. If you do so, you will get a DMCA for copyright infringement. I do not want this spread to pirated users. Please stop piracy and do not share the source outside of this thread and vB.org/com. Thanks.

Support will only be obtained at:
https://vborg.vbsupport.ru/forumdisplay.php?f=182

Supporters / CoAuthors

Show Your Support

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

Comments
  #1062  
Old 04-17-2006, 12:33 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jdingman
Bhuwan, was that towards me? I am rewriting members.php and that works fine, it was just the search portion that wasn't working...
Sorry it was a bug i meant to tell the general public about
Reply With Quote
  #1063  
Old 04-17-2006, 09:57 PM
Boredello Boredello is offline
 
Join Date: Apr 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seem to have it working now.... However it is taking away my images directory... and buttons and such.... hmm?

Like my forum isn't displaying showthread button etc...

the main page is fine just the forums.... they are losing all of their images.

edit: blah I cannot figure out what is causing this... Didn't see any other people with this issue...hmm
Reply With Quote
  #1064  
Old 04-18-2006, 03:36 AM
saidev saidev is offline
 
Join Date: Apr 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Not Found
The requested URL /search-getnew.html/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Quote:
Originally Posted by jdingman
anyone else getting this?
I got that too, when a user click on "New Post" after they logged in, they get that error message, I found that if you remove the "/" at the end, it will work, but I don't expect my user to know how to to that. I've checked the .htaccess file, notice that rule does not have "/" when the string terminate. I guess is in the interal works of the plugin which I am not sure where to look....anyone?
Reply With Quote
  #1065  
Old 04-18-2006, 04:30 AM
Gastongr Gastongr is offline
 
Join Date: Aug 2004
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi this is a great hack!
i instaled and it's running well.

Just a frew problems (i don't know if they have been posted before, i have searched and haven't found an answer):

1)

In members pages, for example http://www.webmastershelp.com/u-coolguy-244.html

The link to the last post the user has done doesn't work, vbulletin returns the following error
Quote:
No Thread specified. If you followed a valid link, please notify the administrator
2
When viewing a forum, under the thread titles there is a link to the thread author profile which opens in a new window. that link is like
/u-username-214.html/
instead of
/u-username-214.html
i don't know why but it still loads the page, but with path errors for images and styles.

3

in the /online.php page, when someone is viewing a forum or thread the link to that forum or thread is incorrect, the forum or thread name are missed.
for example
t--334.html

Any help with those issues will be really appreciated.
Thanks for such a great hack.
the best, it's free and unencrypted
Reply With Quote
  #1066  
Old 04-18-2006, 02:48 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uninstalling again... Cannot change display modes (Hybrid / Linear...etc...). If someone is using Hybrid mode, clicking on 'show more posts below this thread' doesn't work.

Nice hack, just a bit too buggy at this time.
Reply With Quote
  #1067  
Old 04-18-2006, 05:43 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am back --will supprt every1 again.
Reply With Quote
  #1068  
Old 04-18-2006, 05:46 PM
Gastongr Gastongr is offline
 
Join Date: Aug 2004
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I am back --will supprt every1 again.
Hi bhuwan, nice to hear that
could you please check my previous post?, it's the last one of the previous page.
Thanks in advance
Gaston
Reply With Quote
  #1069  
Old 04-18-2006, 05:50 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour
Same Error like the 1.0 Version.

Every click on a Thread moves to a unkwon and non existing Thread.

Same from vbAdvanced, TopX and from Forumhome.

Deactivated again now.
Please be sure that the base vBulletin sites are rewritten and working...(i.e. showthread, member, forumdisplay .php).

Once you are sure thi sis okay, PLEASE PM me the hacks that are NOT working -- I will begin adding support for these hacks.

Normally we shouldn't have to add support for these hacks. Since we're tring to prevent excessive queries, we're required to cache the data, hence the reason many hacks wmay not work properly with this.

I am certainly willing to add support for these hacks, but will will need members to help us out and post which hacks they use that arent working...
Reply With Quote
  #1070  
Old 04-18-2006, 05:51 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vasudeva
No, American English. Haven't touched any language or internationalization settings.




Yes, as posted:



It didn't work and in fact produced some sort of looping situation. It was not auto-generated by the helper script.
Are you still having problems? Do you have a test board setup?
Reply With Quote
  #1071  
Old 04-18-2006, 05:53 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cd1986
Sorry, didn't see that part of the post 1st time round. Have you tried adding $myurl to the front of the re-written paths instead of /f/ ?

EDIT: btw, i think the product file contains two showthread.php?f=xyz&page= url replacements. Once i changed the top one to showthread.php?t=xyz&page= i could access all thread pages, whereas before i got invalid link errors.

PHP Code:
#------------------------------
    # Replace showthread.php?t=XYZ&page=
    #------------------------------
 
    
$found preg_match_all('#<a href="showthread\.php\?t=([0-9]+)&amp;page=([0-9]+)"#i'$output$matches);
 
    if(
$found) {
        
$ids = array();
        
$test = array();
        for(
$i 0$i $found$i++) {
            if(
is_numeric($matches[1][$i])) {
                
$ids[] = $matches[1][$i];
 
                
$tid =$matches[1][$i];
                
$test["$tid"]["page$i"] = $matches[2][$i];
}
        }
        for (
$i 0$i < (count($ids)); $i++) {
            
$fname urlize($GLOBALS[foruminfo][title]); 
            
$title urlize($GLOBALS[vRewrite_thread]["$ids[$i]"][title]);
            
$tid $ids[$i];
            
$page $test["$ids[$i]"]["page$i"];
     
$parentid $GLOBALS[foruminfo][forumid];
            if (empty(
$fname)) {
     
$parentid $GLOBALS[vRewrite_thread]["$ids[$i]"][ownerid];
     
$fname urlize($GLOBALS[vRewrite_forum][$parentid][title]);
 
            }
 
            
$new = (($vbulletin->options['vRewrite_showthread'] == 1) ? $fname 'f-' $fname '-' $parentid);
            if(
$vbulletin->options['vRewrite_page'] == "1") {
                
$output str_replace("<a href=\"showthread.php?t={$tid}&amp;=$page\"""<a href=\"$new/$title-page$page-t$tid{$vbulletin->options['vRewrite_extension_showthread']}\""$output);
            } else {
                
$output str_replace("<a href=\"showthread.php?t={$tid}&amp;page=$page\"""<a href=\"$new/$title-t$tid/page$page{$vbulletin->options['vRewrite_extension_showthread']}\""$output);
            }
        }
    } 
Are you using 1.5 stable? I haven't seen any problems with thread pages with 1.5 stable; perhaops you can give me the exact links you had a problem with?
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 03:44 PM.


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.06264 seconds
  • Memory Usage 2,369KB
  • Queries Executed 26 (?)
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
  • (8)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
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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