vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I show full links insted of short? (https://vborg.vbsupport.ru/showthread.php?t=149837)

Fenriz 06-16-2007 05:39 AM

How can I show full links insted of short?
 
Hi! Vbulletin automaticaly make all the links as short.
For example,
PHP Code:

http://rapidshare.com/files/36897753/Tyr_-_Ragnarok_-_2006_-__ulver.com_.part1.rar 

became shown as
PHP Code:

http://rapidshare.com/files/36897753...com_.part1.rar 

How can I make it full-shown or get smaller characters in url? Where can I regulate it?

Karmian 10-07-2007 05:38 PM

I've been searching the interweb for almost 2 days now and have not been able to find anything related to this issue.

Could anyone be so kind and tell me this too, as im also looking for a solution.

Best regards,
Karmian

Lynne 10-07-2007 05:52 PM

Are you talking about how it shows up in a post? It is only shortening what you see, it isn't actually shorting the link when you click it.

Karmian 10-07-2007 05:55 PM

Yes, i want the complete URL to show up inside the post, not shortened, since people with download managers should be able to copy / paste the links instead of having to "right click" -> "copy shortcut" for every single link if there's 20 of them ;)

Fenriz 10-07-2007 07:48 PM

Karmian, I have exactly the same problem. Thank you for make this thread up :)

Xplorer4x4 10-08-2007 02:35 AM

Well I havent figured it out but I can tell you this much, it has something to do with lines 1770-1811 in includes/class_bbcode.php

Karmian 10-08-2007 04:42 AM

Thanks alot Xplorer4x4, i have increased the links to allow up to 400 chars in this "patch" before getting wrapped.
Its actually just a number changed from 55 to 400 instead.

Since im far from being a coder, i tried to use common sense, and it says:

Code:

// under the 55 chars length, don't wordwrap this
So i thought, why not search for the variable "55" and replace it with something else :) and IT WORKS..

Find

Code:

$tmp = unhtmlspecialchars($rightlink);
if (vbstrlen($tmp) > 55 AND $this->is_wysiwyg() == false)

And replace with

Code:

$tmp = unhtmlspecialchars($rightlink);
if (vbstrlen($tmp) > 400 AND $this->is_wysiwyg() == false)

This "patch" or example allows you to parse links, show it fully on the board while being under 400 chars it wont get shortened.

I hope this thread is somewhat usefull for some.
At least it fixed the issue for me.

Thanks again :up: your the best!

titntin 09-24-2008 01:27 PM

I know this is old now - but does anyone know of a way to do this?

I don't appear to find any template with the above code in it (though I'm noob and I guess I might be looking wrong.

I'm assuming this advice was for an earlier version, and I'll need to look elsewhere to make the adjustment for v3.72

Any comments pointers or help you can give would be very gratefuly recieved!

Lynne 09-24-2008 03:39 PM

Quote:

Originally Posted by titntin (Post 1629244)
I know this is old now - but does anyone know of a way to do this?

I don't appear to find any template with the above code in it (though I'm noob and I guess I might be looking wrong.

I'm assuming this advice was for an earlier version, and I'll need to look elsewhere to make the adjustment for v3.72

Any comments pointers or help you can give would be very gratefuly recieved!

It's not in a template. I believe the person a couple of posts above yours says it's in includes/class_bbcode.php

titntin 10-09-2008 02:19 PM

Thank you Lynne for pointing it out! I didn't have access to the server at the time, but now I have I've found and editted the file and can confirm this works 100% fine.

Thank you all!


All times are GMT. The time now is 05:11 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
  • Page Generation 0.01243 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete