Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBSEO-style friendly urls using vB_Friendly_Url mechanism Details »
vBSEO-style friendly urls using vB_Friendly_Url mechanism
Mod Version: 0.6, by alex.sk (Member) alex.sk is offline
Developer Last Online: Aug 2014 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (4 votes - 3.75 average) Installs: 25
Released: 21 Feb 2013 Last Update: 23 Feb 2013 Downloads: 340
Not Supported Uses Plugins Re-usable Code Translations  

This plugin enables the following url scheme:

vbulletin/forum-name/
vbulletin/forum-name/index10.html
vbulletin/forum-name/thread-title-145.html
vbulletin/forum-name/thread-title-145-7.html
vbulletin/members/admin.html

This is close to what vBSEO 3.5.2 generates in its default configuration.
he original goal of this plugin was to allow ditching vBSEO during vB3-vB4 upgrade without suffering a massive link rot.
At this moment, this plugin may be used as a starting point to implement some specific link scheme, but it's hardly useful by itself unless you have that particual vBSEO version; vBSEO 3.6.0 uses different link scheme not compatible with this one.

The plugin hooks to the built-in url generation/parsing mechanism of vB4, overriding vB_Friendly_Url_* classes, unlike vBSEO which does whole-page preg replacements even in vB4. It works within the normal vB data flow, so it's small, simple, and quite fast. It's also very likely to play well along with other plugins like Cerberus.

The links generated by this plugin do not always match those of vBSEO. There are slight differences in handling non-alphanumeric characters, and probably other issues too. However, it should accept all vBSEO thread links, in the worst case (CANON_STRICT) issuing some 301 redirects.
Most of vBSEO configuration options are not supported. In particular, link structure is hard-coded. If you need something unusual, you may use this as a template, but you'll need to tweak it to get urls you want.
Blog urls are not implemented; the site I wrote this for does not use vB blogs.
Calendar urls and anything else not handled by vB_Friendly_Url is not supported.

Configuration resides on the standard Friendly Urls page.
The plugin can work in modes other than FRIENDLY_URL_REWRITE. It's not really indented to do it, it's more of a fallback option, but it's implemented. In FRIENDLY_URL_ADVANCED mode urls look like this:

vbulletin/forumdisplay.php/forum-name.html
vbulletin/forumdisplay.php/forum-name-10.html
vbulletin/showthread.php/thread-title-145.html
vbulletin/showthread.php/thread-title-145-7.html
vbulletin/member.php/admin.html

The plugin allows custom forum slugs, i.e. replacing forum-name with something else without changing the forum title. It's not pretty, but it works.

Sample .htaccess rules for FRIENDLY_URL_REWRITE:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Adjust ^members/ to match your friendlyurl_memberdir if necessary.

Tested on vB 4.0.3 PL8 and vB 4.2.0. Should work on most 4.x.x versions.
Feel free to post bug reports, suggestions etc. in this thread.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 21 Feb 2013, 16:01
sodasusu sodasusu is offline
 
Join Date: Sep 2011
i will try thx
Reply With Quote
  #3  
Old 21 Feb 2013, 16:37
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Ok so what about us who are already using the vbulletin friendly url htaccess rewrite (minus vbseo). Does it handle redirecting traffic to the proper urls as well?

Also are there any changes to be made to the htaccess to achieve the urls above?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #4  
Old 21 Feb 2013, 20:53
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Unfortunately there's something wrong with this plugin. This immediately appears when enabled. Disappears with plugin disabled. Also this only appears on forum.php

The other pages like threads, forums & member pages were rewritten though.

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4864 bytes) in /home/content/v/g/c/vgchat/html/forum/includes/init.php(336) : eval()'d code(466) : runtime-created function on line 1

Last edited by final kaoss; 21 Feb 2013 at 21:02.
Reply With Quote
  #5  
Old 21 Feb 2013, 22:11
dizzynation's Avatar
dizzynation dizzynation is offline
 
Join Date: Jun 2011
If you are going to install this, I highly recommend not doing so on a populate forum, perform it on a test site. Google is the main source for traffic for many forum owners, so please keep in mind that braking your urls will drop your SERPS like its hot.
Reply With Quote
  #6  
Old 21 Feb 2013, 22:20
final kaoss final kaoss is offline
 
Join Date: Apr 2006
All the more reason to await this guy's response.
Reply With Quote
  #7  
Old 22 Feb 2013, 09:57
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
what is the point of buying vbseo after vb4 ? !
__________________
Egypt News website, latest Egyptian news updated instantly.
Reply With Quote
  #8  
Old 22 Feb 2013, 11:34
alex.sk alex.sk is offline
 
Join Date: Feb 2013
Ok, first of all:
DO NOT CHANGE URL STRUCTURE ON A LIVE BOARD
if you care about your Google rankings.
I didn't expect any questions in this direction, so I didn't even mention it in the first post.
Use a test board. Plan your moves and have redirects ready for your old urls if you decide to move.

Ok so what about us who are already using the vbulletin friendly url htaccess rewrite (minus vbseo)
Major link rot.
Same as installing vBSEO on a live board, atop of existing vB4 urls. It's a change in url structure.

Currently the board with this plugin activated will not recognize standard vB4 urls (forums/ID-name, thread/ID-name etc) and will not redirect them to resp. forum/thread-ID.html urls. I can be done, btw, I just didn't even think of it.

Also are there any changes to be made to the htaccess to achieve the urls above?
RewriteRules from the first post are necessary for FRIENDLY_URL_REWRITE mode to work.
Same as with standard vB4 urls.

final kaoss, which vB version do you use?
That looks really bad, but the only runtime-created function in the plugin is used in array_map(..., preg_split(...)), I wonder what could go wrong there.
In any case, I guess I'll try it one something more recent than my 4.0.3 in a day or two, some maybe there will be updates from my side.

what is the point of buying vbseo after vb4 ?!
None?
For me, it's about moving from vB3+vBSEO to vB4 while keeping the links intact.
An alternative to this plugin being vB4+vBSEO, which, I totally agree, makes little sense.
Reply With Quote
  #9  
Old 22 Feb 2013, 12:59
final kaoss final kaoss is offline
 
Join Date: Apr 2006
I am using vb 420 PL2. Waiting for 421 and just skip PL3 altogether.
Reply With Quote
  #10  
Old 22 Feb 2013, 14:49
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Originally Posted by final kaoss View Post
I am using vb 420 PL2. Waiting for 421 and just skip PL3 altogether.
Is there going to be a 4.2.1?....
Reply With Quote
  #11  
Old 22 Feb 2013, 14:58
final kaoss final kaoss is offline
 
Join Date: Apr 2006
It is planned yes.
Reply With Quote
  #12  
Old 22 Feb 2013, 19:40
dizzynation's Avatar
dizzynation dizzynation is offline
 
Join Date: Jun 2011
Originally Posted by alex.sk View Post

Major link rot.
Same as installing vBSEO on a live board, atop of existing vB4 urls. It's a change in url structure.



None?
For me, it's about moving from vB3+vBSEO to vB4 while keeping the links intact.
An alternative to this plugin being vB4+vBSEO, which, I totally agree, makes little sense.

VBSEO offers more then just SE friendly URL's - it has about 85 functions that can increase your rankings, URL rewrites is just one.

I think this is a great mod idea for 3.8.7 vbseo users to vb 4.2 without vbseo - If it works, I hope it does for users. Best of luck
Reply With Quote
  #13  
Old 23 Feb 2013, 13:34
alex.sk alex.sk is offline
 
Join Date: Feb 2013
Version 0.6 uploaded. Standard vB4 style urls are now accepted, FRIENDLY_URL_BASIC mode fixed
Note you'll need two more RewriteRules for the old urls to work.

final kaoss: works well for me in vB 4.2.0.
Check what you've got on line 466 of your init_startup.

VBSEO offers more then just SE friendly URL's - it has about 85 functions that can increase your rankings, URL rewrites is just one.
Are they described or listed anywhere?
My impression from the code is that it's 50% url rewrites, 30% general housekeeping (admincp, db, caches etc), 10% for template tweaks (title, meta etc) and the remaining 10% for stuff I have no idea about.
Reply With Quote
  #14  
Old 10 Mar 2013, 04:03
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Are you talking about your plugin's init_startup or vbulletins init_statup.php file? Because afaik both of those are vanilla, aka untouched.

Last edited by final kaoss; 10 Mar 2013 at 04:33.
Reply With Quote
  #15  
Old 11 Mar 2013, 09:34
alex.sk alex.sk is offline
 
Join Date: Feb 2013
I have a strong impression part of this thread is missing.

I meant init_startup hook from datastore. I.e. the piece of eval()'d code where line 466 happens to be.
Unless you have better ideas, something like

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

right before line 336

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in includes/init.php, and then calling http://your/board/index.php?dumpinitstartup=1 should show you that code.

Because afaik both of those are vanilla, aka untouched.
That would be really strange. Line 466 in this plugin alone is nowhere near any user-defined functions.
In any case, with errors like this, I'd try to avoid any guesswork and make sure it's clear where exactly it happens.

Last edited by alex.sk; 11 Mar 2013 at 09:40.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 02:24.

Layout Options | Width: Wide Color: