The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vB's automatic link trimming - how to modify?
Hello,
Here's what Iam trying to do: My bb is located at pagodentreff.de/diskussionsforum/ and the url is pretty long. The urls gets trimmed but that doesn't look that nice as you can see here: http://www.pagodentreff.de/diskussio...66&postcount=3 I want to have it so that the links look like: www.pagodentreff.de/.../t311-rueckleuchten-sl-230.html instead of http://www.pagodentreff.de/diskussi...ten-sl-230.html How can I affect the function so that I can do a str_replace? What function is responsible for that trimming? Thanks for any reply |
#2
|
|||
|
|||
Let me bump that thread
|
#3
|
|||
|
|||
Open includes/functions_bbcodeparse.php
Find: PHP Code:
PHP Code:
|
#4
|
|||
|
|||
Could be improved (filename longer then 50 positions for example or always show domain and filename and trim what is in between).
|
#5
|
|||
|
|||
Thanks for your answer
Here's what your code now produces: http://www. pagodentreff.de/diskussionsforum/t939-nip.../t939-nippel-day--2005--.html |
#6
|
|||
|
|||
Complete with the space after www. ??
It is now how you want or not? Like i said it is just a start. |
#7
|
|||
|
|||
No, not with the space. I had to add it because vB likes trimming the links so much so my link would have got messed up
The problem is: this little function adds the last section of the url twice as you can see on the example. Anyway, thanks for your help. It does look better now but I will take a deeper look at it |
#8
|
|||
|
|||
Then you must have changed something more, because this one is working fine on my testboard:
Code:
http://www.pagodentref.../t939-nippel-day--2005--.html |
#9
|
||||
|
||||
Hi, it's possible to change the link from the post's title or the category to get something like:
www.mystite.com/VB_hacks and not: www.mysite.com/showthread.php?... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|