View Full Version : Miscellaneous Hacks - Friendlier URLs by BOP5
BirdOPrey5
01-13-2012, 11:00 PM
Current Version: 0.9 Beta
The purpose of this mod is to make "friendly" URLs in VB4 even better.
DO NOT USE IF YOU HAVE VBSEO - It should already do this.
Demo: Test Thread on Qapla.com (http://www.qapla.com/mods/showthread.php/139-El-sofa-es-de-los-perros)
For SEO purposes it is often best that only standard English characters and numbers are in URLs.
If you have a forum where non-English languages are used and you have letters with accents or other symbols in them they would become part of the links to your threads and your site would be indexed like that. However when a user searches for something like "Jagermeister" they will usually type "Jagermeister" into the search and not the technically correct "J?germeister."
Previously in VB4 there was no way to convert ? to a automatically, or even to strip them from the URL altogether.
This mod adds those options. It has a built in translation table for the most commonly used accented characters. It also allows you to specify custom translations if there are additional letters you want to translate to their English/Latin equivalents.
It also includes a final option to simply strip (remove) any special characters it can't translate.
I am marking this Beta as I have tested it and run in on my own forum, www.qapla.com, but I have not tested it extensively.
You must have VB 4.1.10 or above for this to work, it will not work on older versions.
------------------------------------------------------
Please "Mark as Installed" if you use this. :)
Donations always appreciated. :up:
Nominate MOTM if you LOVE it! ;)
lodos0677
01-14-2012, 06:38 PM
beautiful work. congratulations..
fiatforever
01-14-2012, 07:23 PM
Looks great, thank you :)
OldSchoolDSL
01-14-2012, 08:19 PM
tagged
I wonder how this will work on nginx
SuperTaz
01-14-2012, 08:30 PM
Will this affect URL's for sites with vBSEO?
Morpheus NS
01-14-2012, 08:50 PM
Installed in test forum, it works like a charm! I was waiting for something like this since I started using vBulletin, nominated for MOTM.
Dr.osamA
01-14-2012, 10:36 PM
installed under test
thank you sir
thecore762
01-14-2012, 10:39 PM
Will this affect URL's for sites with vBSEO?
You don't want to use this if you are already using vBSEO.
BirdOPrey5
01-14-2012, 11:31 PM
Will this affect URL's for sites with vBSEO?
You don't want to use this if you are already using vBSEO.
What he said. If you are using VBSEO don't use this mod- I think VBSEO already does this for you...
I should probably add that message in the top post.
Thank you all... If we go a couple weeks without major bugs I'll take it out of Beta- just didn't have time to do extensive testing, wasn't expecting 4.1.10 to be released so soon. :D
Juggernaut
01-16-2012, 01:12 AM
Exellent product, nominated as well. :D
sadiq6210
01-16-2012, 04:44 AM
Finally
Thanks .. this is great
I was using basic links and I converted the links to advance after I installed this great mod but there is two issue:
1- When I copy and past the link in any post, I is appearing again like this
https://vborg.vbsupport.ru/attachment.php?attachmentid=135757&d=1326552849
but there is no issue when I click on the link where I got the correct link.
2- If I enter any thread from the old basic link such as:
http://www.domain.com/forum/showthread.php?t=276953
The link is automatically converting to the advance link, but like this only:
https://vborg.vbsupport.ru/attachment.php?attachmentid=135757&d=1326552849
BirdOPrey5
01-16-2012, 12:05 PM
How are you copying and pasting the link in #1- what is your copy source? The browser address bar? Can you paste a link here using the [code] bb code?
3) When you say auto convert do you mean it changes in your address bar from the old basic to the new advanced before the page even loads?
Morpheus NS
01-16-2012, 12:38 PM
Working great in live forum, I can finally sit down and relax, my links are fine without using an expensive solution like vBSEO... Is there any way to do the same thing in cms articles meta description?
sadiq6210
01-17-2012, 05:22 AM
How are you copying and pasting the link in #1- what is your copy source? The browser address bar? Can you paste a link here using the [code] bb code?
Also, when I copy the link and paste it here I face the same bug, like this:
http://www.domain.com/forum/showthread.php/223891-%D8%A7%D8%B3%D8%AA%D9%81%D8%B3%D8%A7%D8%B1-%D9%85%D8%A7%D8%AB-121
While when I copy it from the address bar it was as shown in the screen shot:
https://vborg.vbsupport.ru/external/2012/01/38.jpg
3) When you say auto convert do you mean it changes in your address bar from the old basic to the new advanced before the page even loads?
Yes, you can try to enter this link:
www.qapla.com/mods/showthread.php?t=139
You will notice that the link will change in your address bar to:
http://www.qapla.com/mods/showthread.php/139-El-sofa-es-de-los-perros
In your forum it is perfect .. but in my forum (Arabic lang.) when I enter any thread using the old basic link, then It changes to the new advance link but only like this:
http://www.domain.com/forum/showthread.php/223891-%D8%A7%D8%B3%D8%AA%D9%81%D8%B3%D8%A7%D8%B1-%D9%85%D8%A7%D8%AB-121
It should be:
https://vborg.vbsupport.ru/external/2012/01/38.jpg
BirdOPrey5
01-17-2012, 12:28 PM
Ah, In your Friendly URL settings (the built in ones) look at the Enforce Canonical URL options...
Turn it off (No) for registered users and Off for guests... The defaults are Yes and Standard.
The Rocketeer
04-25-2012, 01:24 AM
This looks to be one great ad on BOP. Congrats. Voted and Nominated :) I currently have vBSEO Installed on both of the boards I own however if I ever stop using vBSEO I would definitely use this.
1 Question though, for those who are on a shared hosting plan, does this mod increase CPU load and take up a good amount of grunt like it vBSEO?
BirdOPrey5
04-26-2012, 11:06 AM
No this is a very lightweight mod... I use it and I'm on shared hosting with no ill effects. It's really just a few lines of php code.
Nirjonadda
04-26-2012, 03:26 PM
Its not working on my site in 4.1.10
BirdOPrey5
04-26-2012, 03:37 PM
What is happening?
Can I get a link to your site?
hostcini
06-16-2012, 05:16 PM
Amazing. There is no problem with Turkish chars. It's working at windows servers too (tested).
JAFRI
07-13-2012, 03:08 PM
this work on 4.2 ???
BirdOPrey5
07-13-2012, 03:20 PM
yes
sbs68
08-20-2012, 09:03 PM
Thanks, I have installed it on 4.1.12 an worx.
GREAT for HUNGARIAN friendly URLs!
Mark_Zuckerberg
09-30-2012, 06:47 PM
Isnt this thing is by default in vb 4.2?
Mark_Zuckerberg
09-30-2012, 07:01 PM
The purpose of your mod is to re write the links in friendly url but i found a default option in vb 4.2 name friendly urls and in that if we select Advanced Friendly URLs it does the same what your mod do so i am confused should i have to install this mod on vb 4.2 or not?
BirdOPrey5
10-01-2012, 12:21 AM
The purpose of your mod is to re write the links in friendly url but i found a default option in vb 4.2 name friendly urls and in that if we select Advanced Friendly URLs it does the same what your mod do so i am confused should i have to install this mod on vb 4.2 or not?
This mod doesn't make "friendly" URLs... it makes friendly URLs better.
It removes many special characters and non-latin characters from URLs- some people believe doing this is better for SEO... I personally do not know if it is better or not but someone asked for something like this so I made it.
I have no real argument for or against using this one.
Like it says in the description it's for things like this:
Previously in VB4 there was no way to convert ? to a automatically, or even to strip them from the URL altogether.
Mark_Zuckerberg
10-01-2012, 09:24 AM
thanks for the replied got your point and un installed it also :)
BirdOPrey5
10-01-2012, 10:26 AM
thanks for the replied got your point and un installed it also :)
Thank you- Please use the "Mark as Installed" link in the top post.
https://vborg.vbsupport.ru/external/2013/09/18.jpg
Mark_Zuckerberg
10-01-2012, 02:33 PM
Thank you- Please use the "Mark as Installed" link in the top post.
https://vborg.vbsupport.ru/external/2013/09/18.jpg
:p i have already done this bro i know this and again click un installed but tagged it for future if i needed :)
pokusek
02-02-2013, 06:14 PM
Awesome mod! I just have one problem - when a sitemap for blogs is being generated, UTF-8 characters are turned into weird mess. Everything else is fine. Could you please tell me how to fix it? Thanks for your time.
Rodrigo.
02-07-2013, 12:33 PM
yes for me work in vb 4.2 pch level 3
BirdOPrey5
02-08-2013, 11:45 PM
Awesome mod! I just have one problem - when a sitemap for blogs is being generated, UTF-8 characters are turned into weird mess. Everything else is fine. Could you please tell me how to fix it? Thanks for your time.
Never heard of this issue... Are you sure if the mod is disabled the sitemap URLs are correct?
if so can you please paste in an example blog title causing the issue.
pokusek
03-03-2013, 09:16 PM
if so can you please paste in an example blog title causing the issue.
I sent a PM with more details, thanks for your time.
yeppuda
04-10-2013, 02:37 PM
vb3 please?
it is super hacks.
BirdOPrey5
04-13-2013, 05:17 PM
vb3 please?
it is super hacks.
Sorry but VB3 doesn't have "friendly URLs" so this isn't an option.
mikesafl
04-15-2013, 05:16 PM
Can i make it strip periods and add spaces? That is what im having trouble trying to do
BirdOPrey5
05-12-2013, 09:07 AM
Can i make it strip periods and add spaces? That is what im having trouble trying to do
No, not designed to strip periods or add spaces to URLs.
fai99al99
09-06-2013, 11:36 AM
very nice and helpful .. great mod
thanks
working fine 4.2.1
fai99al99
09-06-2013, 11:56 AM
can i use it to translate words ?
like : "العربية"
translate to "Arabic"
BirdOPrey5
09-06-2013, 12:11 PM
No, it won't translate words just individual characters.
fai99al99
09-06-2013, 12:23 PM
i have add this to the $bop_reps = array
$bop_reps = array('العربية'=>'arabic', 'المكتبة'=>'library');
http://www.xxxxx.com/forum/showthread.php/35618-العربية-المكتبة
http://www.xxxxx.com/forum/showthread.php/35618-library-arabic
and it did translate the words fine
is this will cause any problems ?
BirdOPrey5
09-06-2013, 02:03 PM
That is fine I misunderstood.
I thought you meant will it translate like Google Translate.
What you did is technically a replacement, not a translation, you can do replacements you just have to do each one manually.
fai99al99
09-06-2013, 03:13 PM
there's a little problem
it doesn't strip (remove) any special characters it can't translate.
in RSS
-----------------------------
no,its working fine
my mistake
Bubble #5
09-07-2013, 05:05 PM
4.2.1
Seems to work well on our forum. Great job BOP :up:
thetechgenius
09-03-2014, 09:07 PM
I'm using DBSEO by DBTECH, do I need this mod? Will it even work with DBSEO, or will it break my Forum URL's?
BirdOPrey5
09-04-2014, 04:05 PM
I'm afraid I've never tested it with DBSEO but I would strongly imagine you do not need it- I doubt it would work.
Darkman7030
01-05-2016, 02:45 PM
have a problem
http://domian.de/forum/forumdisplay.php?38Movieaspan-classshade-stylefont-size10px-titleThemenBeitrage-1111spanVSa
https://vborg.vbsupport.ru/showthread.php?t=236960
also use the think the error comes from what kan do now?
BirdOPrey5
01-06-2016, 10:04 AM
If you disable the subforum manager does the problem go away? If so I would say they are incompatible.
Darkman7030
01-10-2016, 12:02 PM
Is there no way to fix that?
BirdOPrey5
01-10-2016, 12:26 PM
Probably, but sorry, I'm not working on this mod anymore. I have set it to be re-usable code in case someone else wants to work on it, they are welcome.
Torbe
02-13-2016, 10:47 AM
Works on 4.2.3, thanks :D
Many thanks, working on 4.2.5 and PHP 7.1.3.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.