Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2007, 05:39 AM
Fenriz Fenriz is offline
 
Join Date: Aug 2002
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 10-07-2007, 05:38 PM
Karmian Karmian is offline
 
Join Date: Oct 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 10-07-2007, 05:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-07-2007, 05:55 PM
Karmian Karmian is offline
 
Join Date: Oct 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 10-07-2007, 07:48 PM
Fenriz Fenriz is offline
 
Join Date: Aug 2002
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Karmian, I have exactly the same problem. Thank you for make this thread up
Reply With Quote
  #6  
Old 10-08-2007, 02:35 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-08-2007, 04:42 AM
Karmian Karmian is offline
 
Join Date: Oct 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 09-24-2008, 01:27 PM
titntin titntin is offline
 
Join Date: Sep 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #9  
Old 09-24-2008, 03:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by titntin View Post
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
Reply With Quote
  #10  
Old 10-09-2008, 02:19 PM
titntin titntin is offline
 
Join Date: Sep 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:14 AM.


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.04370 seconds
  • Memory Usage 2,249KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete