The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Ok. .I've made a static board.. blame me.. but I can't just made it 100% wide now (Too lazy to do so..).. so I need help.
At some pages (mostly on online.php) I get very, VERY long urls that really mess up my forum. I need to make it so thatif it's more than x characters long, it'll be cutted and added a ... on it.. so it changes this: Code:
<a href="http://domain.com/forum/longurl/verylongurl/messinglayout.htm">http://domain.com/forum/longurl/verylongurl/messinglayout.htm</a> Code:
<a href="http://domain.com/forum/longurl/verylongurl/messinglayout.htm">http://domain.com/forum/...out.htm</a> Code:
$maxchars=20;
if (strlen($thread['title']) > $maxchars) {
$thread['title'] = substr($thread['title'], 0, $maxchars - 2) . '...';
}
|
|
#2
|
||||
|
||||
|
You would need to hack the handle_bbcode_url() function to include that element onthe $text variable in there...
|
|
#3
|
|||
|
|||
|
hmm... that sounds kinda.. hard.. and I'm very new at this... I think I'll set it up only for the online.php urls... since that's the place that's messing the layout the most... thnx for the reply natch!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|