Skip to content
WJunction - Webmaster Forum

Make download links clickable (Hotfile/FileServe) in vBulletin

Status
Not open for further replies.
Hello,
I would like to make the links Clickable (Vbulletin). Hotfile or Fileserve Only

link removed

for example:
Code:
[url]http://www.mylink.com/files/myfile1.rar[/url]
[url]http://www.mylink.com/files/myfile2.rar[/url]
[url]http://www.mylink.com/files/myfile3.rar[/url]
I think this is very useful for webmasters. We can earn from Hotfile, fileserve...

Please help me.

Thank you.:)
 

40 comments

This is a VBseo function. To disable:
Go to admincp > Vbseo Control Panel> Seo Functions > "Add Titles to External Links" >
"Add Page Titles to External Links Anchor Text?" > Set it off
:)
 
Final step: Remove "..." from long urls
1. Open file class_bbcode.php (root your forums / includes )
2. Find this line:
PHP:
if (!trim($link) OR $text == $rightlink)
        {
            $tmp = unhtmlspecialchars($text);
            if (vbstrlen($tmp) > 55 AND $this->is_wysiwyg() == false)
            {
                $text = htmlspecialchars_uni(vbchop($tmp, 36) . '...' . substr($tmp, -14));
            }
        }

Change "vbstrlen($tmp) > 55" to "vbstrlen($tmp) > 500"

3. Save & Update your Post cache.

Now, all links are clickable links and use full urls.

Thanks Innox for testing with VB4 <3 (http://www.innoxeon.com)
 
Final step: Remove "..." from long urls
1. Open file class_bbcode.php (root your forums / includes )
2. Find this line:
PHP:
if (!trim($link) OR $text == $rightlink)
        {
            $tmp = unhtmlspecialchars($text);
            if (vbstrlen($tmp) > 55 AND $this->is_wysiwyg() == false)
            {
                $text = htmlspecialchars_uni(vbchop($tmp, 36) . '...' . substr($tmp, -14));
            }
        }

Change "vbstrlen($tmp) > 55" to "vbstrlen($tmp) > 500"

3. Save & Update your Post cache.

Now, all links are clickable links and use full urls.

Thanks Innox for testing with VB4 <3 (http://www.innoxeon.com)

This is not working for me.
Example thread:
http://nitrowarez.com/apps/239620-golden-software-grapher-8-2-460-a.html
 
Thanks a lot! But the fileserve code is wrong :)

Actual:

PHP:
$text=preg_replace("#((http://)?(www.)?fileserve.com/[^ \n\r]+)#is",'[url]$1[/url]'',$text);
The good one:

PHP:
$text=preg_replace("#((http://)?(www.)?fileserve.com/[^ \n\r]+)#is",'[url]$1[/url]',$text);
Without a ' between [/url] and ,$text
 
Status
Not open for further replies.

About the author

Rapid4All
Banned · Joined
614
Messages
2
Reactions
18
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom