PDA

View Full Version : Links


fahl
07-20-2009, 12:42 PM
How can i stop links like this

http://ishare.com/files/257785894/SRnet.lmanderR191.part01.rar

becoming shown like this

http://ishare.com/files/25778589...191.part01.rar

so they can be cut pasted.

Thanx

Lynne
07-20-2009, 03:27 PM
It is hardcoded into the vb code to do that. There is not option/setting to just toggle to turn that off. You would have to find the actual function and modify it.

fahl
07-20-2009, 04:44 PM
can anyone please point me in right direction please

Lynne
07-20-2009, 06:27 PM
I don't have access to my files at the moment to find where to edit them. You may be able to do a global search in your files to find "..." and you'll find the file to edit.

fahl
07-22-2009, 08:04 AM
Thanx Lynne,Tried that & found a few instances but bit over my head tbh.
Can anyone please help me with this.
Thanx

Marco van Herwaarden
07-22-2009, 10:00 AM
You can copy&paste such a link. The link is not changed, only the visible text.

fahl
07-22-2009, 12:57 PM
Thanx,I realise that but you surely cant directly copy and paste as you are copying the text not the link.

Lynne
07-22-2009, 02:30 PM
Thanx Lynne,Tried that & found a few instances but bit over my head tbh.
Can anyone please help me with this.
Thanx
If you decide to tackle the problem, the function is handle_bbcode_url in the file includes/class_bbcode.php You can either modify the function (I'm not sure where else it may be, so this isn't what I would do) or find where the function is called when posts are made and just not call it (comment it out - this is what I would do).

Marco van Herwaarden
07-22-2009, 02:52 PM
Actually even copy&paste of an entire piece of text, with a shortened link inside the text can be done, providing the target of the paste can handle rich text.

Ie. Pasting into the WYSIWYG editor of vBulletin will work, pasting into the basic editor will fail.