Back to vBulletin 4.x Template Modifications

Display full URL instead of …
Mod Version: 1.00, by ppatil007

vB Version: 4.0.3 Rating: (1 vote - 4.00 average) Installs: 8
Released: 24 Oct 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations  

What this does:
All this simple change in php file does is displays the complete url throughout your forum instead of truncated url with … which is very useful for people who use downloader software to download files so they just can copy directly from the forum instead of clicking on files individually as hyperlinks and then copy . Refer screenshots below its self explanatory



Instructions :
• Find the php file under includes “class_bbcode.php”
• Search for function handle_bbcode_url
• Look for
Code:
if (vbstrlen($tmp) > 55 AND $this->is_wysiwyg() == false)
			{
				$text = htmlspecialchars_uni(vbchop($tmp, 36) . '...' . substr($tmp, -14));
			}
• Replace 55 with 70 ; 36 with 50 & 14 with 20 and save
• Log in ADMINCP --> Maintenance --> Update Counter

Explanation :

X; 55 = number of characters before it's stripped
Y; 36 = number of characters before the (...)
Z; 14 = number of characters after the (...)

Logic has to be always X = Y + Z to work
I used 70 = 50 + 20 you can use any combination for bigger urls ( 90 = 60 + 30 ) etc



Note :
I am not a coder and this is my first attempt ; I needed this and found out how it works after lot of trial and error process I could not find any thread which had detailed explanation for people like me so created this one ; hope it helps

vB Version: Should work for all versions

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024