admin
07-01-2011, 11:00 AM
Info :
A simple way to add a shorten bottom for your vBulletin ( bitly (http://bit.ly/) shorten url service )
Note:
Of course, you can use this code to any custom template or page ( like Blogs, Cms, Forums and etc )
Screenshots:
http://www.vbulletin.org/forum/attachment.php?attachmentid=125229&stc=1&d=1294168217
http://www.vbulletin.org/forum/attachment.php?attachmentid=125230&stc=1&d=1294168222
http://www.vbulletin.org/forum/attachment.php?attachmentid=125235&stc=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:
<h1>
And below that, add this code:
<a href="javascript:(function(){%20window.open('http://bit.ly/?url='+encodeURIComponent(location.href));%20})();" rel="nofollow" class="pagetitleinfo textcontrol" >{vb:rawphrase vbshorten}</a>
This is just an example for threads.
and this code works with any version of vBulletin.
All the best.
Screenshots:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/07/11/25581294372814.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/07/11/70171294372820.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/07/11/55861294372825.jpg
A simple way to add a shorten bottom for your vBulletin ( bitly (http://bit.ly/) shorten url service )
Note:
Of course, you can use this code to any custom template or page ( like Blogs, Cms, Forums and etc )
Screenshots:
http://www.vbulletin.org/forum/attachment.php?attachmentid=125229&stc=1&d=1294168217
http://www.vbulletin.org/forum/attachment.php?attachmentid=125230&stc=1&d=1294168222
http://www.vbulletin.org/forum/attachment.php?attachmentid=125235&stc=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:
<h1>
And below that, add this code:
<a href="javascript:(function(){%20window.open('http://bit.ly/?url='+encodeURIComponent(location.href));%20})();" rel="nofollow" class="pagetitleinfo textcontrol" >{vb:rawphrase vbshorten}</a>
This is just an example for threads.
and this code works with any version of vBulletin.
All the best.
Screenshots:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/07/11/25581294372814.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/07/11/70171294372820.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/07/11/55861294372825.jpg