![]() |
Shorten Bottom [Bit.ly]
1 Attachment(s)
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: https://vborg.vbsupport.ru/attachmen...1&d=1294168217 https://vborg.vbsupport.ru/attachmen...1&d=1294168222 https://vborg.vbsupport.ru/attachmen...1&d=1294174499 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. |
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 |
Quote:
|
1 Attachment(s)
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:
|
Quote:
|
you are welcome bro
thank you for update |
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. So I use this: Code:
http://bfx.me/api.php?u Instead of this: Code:
http://bit.ly/?url Any help would be appreciated... |
This can be very useful, tagged.
|
Can this be used for o-url.com ?
|
Thanks. Installed and it works fine
|
All times are GMT. The time now is 11:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|