The Arcive of vBulletin Modifications Site. |
|
Shorten Bottom [Bit.ly] Details »»
|
|||||||||||||||||||||||||||||||
Info :
A simple way to add a shorten bottom for your vBulletin ( bitly shorten url service ) Note: Of course, you can use this code to any custom template or page ( like Blogs, Cms, Forums and etc ) Screenshots: Installation: 1- Go to : Admincp>Phrase Manager>Add New Phrase: Product = vBulletin Phrase Type = GLOBAL Varname: vbshorten Text: Shorten Save. 2- In the SHOWTHREAD template, Find: Code:
<h1> Code:
<a href="javascript:(function(){%20window.open('http://bit.ly/?url='+encodeURIComponent(location.href));%20})();" rel="nofollow" class="pagetitleinfo textcontrol" >{vb:rawphrase vbshorten}</a>
and this code works with any version of vBulletin. All the best. Screenshots
Supporters / CoAuthors Show Your Support
|
|||||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
wouldn't you want to place this outside the header tags?
maybe after the </h1> tag I wouldn't want a bit.ly link in all my h1 tags nice idea |
|
#3
|
||||
|
||||
|
Use this code for any place that you want, that was just an example for threads.
|
|
#4
|
||||
|
||||
|
Excellent = 5 stars
installed Note: I think the reference to missing when adding a new phrase you should choose Phrase Type = GLOBAL Product = vBulletin I chose to add the code to another place after you make changes to code Become so as it is in the attached photo my code is: PHP Code:
find PHP Code:
|
|
#5
|
||||
|
||||
|
Thanks Dr.osamA, first post updated.
|
|
#6
|
||||
|
||||
|
you are welcome bro
thank you for update |
|
#7
|
||||
|
||||
|
This is an awesome mod thank you for your contribution. I have my own url shortener and i would like to use it instead of bit.ly. The shortener is http://www.bfx.me
I tried substituting the URL of bit.ly with bfx.me - it comes up but the url does not automatically go into the field provided. Can anyone help me to get this to work? Edit: Well i got it to work a little bit. I found this on the http://bfx.me site: Code:
Shortening a URL with the bfx.me API is very simple, all you need to do is send a get request to the API passing through the URL you wish to shorten. To shorten http://www.neowin.net/news/windows-7-piracy-check-update-goes-live request: http://bfx.me/api.php?u=http://www.neowin.net/news/windows-7-piracy-check-update-goes-live The API will return the shortened URL http://bfx.me/jZ2qi To retrieve the original URL from the API, all you need to do is send a get request to the API passing through the shortened URL (or the last 5 characters). To expand http://bfx.me/jZ2qi request: http://bfx.me/api.php?r=http://bfx.me/jZ2qi or http://bfx.me/api.php?r=jZ2qi The API will return the original URL http://www.neowin.net/news/windows-7-piracy-check-update-goes-live So I use this: Code:
http://bfx.me/api.php?u Instead of this: Code:
http://bit.ly/?url Any help would be appreciated... |
|
#8
|
||||
|
||||
|
This can be very useful, tagged.
|
|
#9
|
||||
|
||||
|
Can this be used for o-url.com ?
|
|
#10
|
|||
|
|||
|
Thanks. Installed and it works fine
|
![]() |
|
|