The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Shoutbox Linebreak (<br>) removal?
It would be very handy if the shoutbox doesn't support or automatically removes linebreaks, just to prevent the shout get's enormous 'heights' on the forum home page.
Is this possible to do that with javascript or through PHP? I have already set a maximum number of characters in the shoutbox. But that doesn't prevent people from doing something like this: Hey this shoutbox is very cool thanks for that! This type of shout really messes up my forumhome page... Someone knows how to do that? Thanks! Aaron |
#2
|
||||
|
||||
i did some investigation myself, and I think I found the right script for this, but i don't know how to combine it with the Shoutbox.php...
http://groups.google.com/groups?hl=n...com%26rnum%3D1 This is the script that should work: PHP Code:
PHP Code:
If someone is experienced with php, please give me a hand... |
#3
|
|||
|
|||
try sticking this before that code
$shout_text = preg_replace ("/(\r?\n)/", "", $shout_text); |
#4
|
||||
|
||||
Cool!
That works thanks alot! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|