How to disable URL shortening on links or change it?

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Ideas Centre
Post Reply
WWu777
Registered User
Posts: 802
Joined: Tue Aug 14, 2007 12:40 pm
Contact:

How to disable URL shortening on links or change it?

Post by WWu777 »

Dear support,
I saw on other older threads that to disable URL shortening or increase the URL length before they are shortened, you edit this file: "includes/function_content.php".

viewtopic.php?p=8114415#p8114415

Code: Select all

$short_url = (strlen($url) > 300) ? substr($url, 0, 39) . ' ... ' . substr($url, -10) : $url;
However, I tried that and changed the 300 value but nothing happened.

Does this still apply to phpbb 3.2? If not, what's the code to change to apply it to phpbb 3.2? I don't want to disable URL shortening. I just want to increase the length of URL's before they are shortened. Thanks.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: How to disable URL shortening on links or change it?

Post by kasimi »

WWu777
Registered User
Posts: 802
Joined: Tue Aug 14, 2007 12:40 pm
Contact:

Re: How to disable URL shortening on links or change it?

Post by WWu777 »

Thanks. But I just want to increase the default length at which the link will be shortened. Not show the whole link. The default is 55 characters right? How do I increase it? I tried to change the 55 number on that code to something higher but it didn't seem to work.
Post Reply

Return to “Extension Requests”