Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Apr 2015, 01:42
Vaskania's Avatar
Vaskania Vaskania is offline
 
Join Date: Aug 2014
*Solved* VB5.1.6 Help with truncated url code

Trying to edit function handle_bbcode_url (includes/class_bbcode.php) to allow for longer urls. I thought it would be easier to just allow longer ones than to try to remove the code altogether, but I seem to be at a stand still.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In theory, I should be able to change 55 to a higher number to allow for longer urls before truncation kicks in, but it's not working out that way. I could ramp it up to 5500 and it doesn't change anything. I've even tried raising 36 to a higher number- still nothing.

Has this method changed with VB5? Should I be looking elsewhere?

Last edited by Vaskania; 16 Apr 2015 at 19:57.
Reply With Quote
  #2  
Old 05 Apr 2015, 01:52
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Are you making sure to clear the cache (admincp > maintenance and also your browser) after you make the change?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 05 Apr 2015, 02:06
Vaskania's Avatar
Vaskania Vaskania is offline
 
Join Date: Aug 2014
Crap.. no. LOL

CTRL F5 a few times didn't change, but I didn't think to clear the cache in maintenance.

I'll try changing it again and clear everything and see.
__________________
Hivewire3D.com
Running vBulletin 5.1.6
Reply With Quote
  #4  
Old 06 Apr 2015, 19:11
Vaskania's Avatar
Vaskania Vaskania is offline
 
Join Date: Aug 2014
No change. I set it to 1000 just to test. Cleared the maintenance cache as well as my browsers. Links are still being truncated.
__________________
Hivewire3D.com
Running vBulletin 5.1.6
Reply With Quote
  #5  
Old 06 Apr 2015, 22:03
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Have you tried just commenting out the line ($text=xxxx)? That should let you know whether you are even editing the correct code or not. Also, you are just talking about URLs in the [ URL ] tags, not the ones make with the Link button, right?

Also, handle_bbcode_url is also in the file /core/vb/library/bbcode.php Have you tried changing it there? It also happens to be in /includes/vb5/template/bbcode.php I honestly couldn't tell you which is the correct file without trying them out myself.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #6  
Old 16 Apr 2015, 19:20
Vaskania's Avatar
Vaskania Vaskania is offline
 
Join Date: Aug 2014
The ones affected seem to be ones that are just pasted right into the body of the post and auto-parsed into links. That's how most of our users insert links. I'll have to play around a bit with manually adding the [ url ][ /url ] tags and see if those are truncated as well.

Thanks for pointing me in the right direction. Had no idea there were multiple files.

For now I've installed this mod: http://www.vbulletin.org/forum/showthread.php?t=288954 which works so far, but the truncated links screw it up if you edit a post (links are truncated in the edit box, which destroy the title rewrite).

/edit
Solved. Did a search files/sub-folders via Notepad++ and got all 3 files at once and edited all 3. One of them did the trick. lol
__________________
Hivewire3D.com
Running vBulletin 5.1.6

Last edited by Vaskania; 16 Apr 2015 at 20:06.
Reply With Quote
  #7  
Old 16 Apr 2015, 22:27
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
I'm glad you got it working for you. And thanks for posting what you did.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 14:17.

Layout Options | Width: Wide Color: