The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi folks
No doubt this has been asked and answered but I probably am not uing the correct search terms How do I best prevent users from entering long string of characters like this? ************************************************** *************** Or at least limit the length they can enter? Or force a line break when the forum posts are displayed? Problem I am having is with threads that have long lines of characters, displaying too wide on my mobile version of my site. See images below, first one is displaying OK, second one is not due to long line of ******* forcing some of the text off the viewport on mobile devices, and also shifting the nav buttons and other screen elements to the right Cheers Rich PS getting image attachments to dynamically resize to mobile screenwidth was a bit of a b^tch but I sorted that one ![]() |
#2
|
||||
|
||||
![]()
Try using this in the css.
PHP Code:
|
#3
|
||||
|
||||
![]()
Thanks
I tried that, I set the css property in 'body' and according to firebug my <td> is inheriting the property....... (see attached) But it did not work, did I do something wrong? I'm only a self-taught (usually the hard way!) amateur Rich |
#4
|
||||
|
||||
![]()
I also found this property in the ACP (which was already set to 50) and set it to 36... but it did not help either
Number of Characters Before Wrapping Text If you want posts to automatically insert spaces into long words to make them wrap after a certain number of characters, set the number of characters in the box above. What's wrong??????????? |
#5
|
||||
|
||||
![]()
You can try these:
word-break: break-all !important; word-wrap: break-word !important; Also set this to a lower number like 24 ... "Number of Characters Before Wrapping Text" . |
#6
|
||||
|
||||
![]()
Maybe using something like preg_match_all("/(.)\1{2,}/",$p,$x) in a plugin using the hook newpost_process, that will prevent a character from being entered consecutively 3 times.
|
#7
|
|||
|
|||
![]() Quote:
|
#8
|
||||
|
||||
![]()
The code cage??? What's that?
What error asre you seeing? my sites running ok just checked, 43 currently online, 67 registered today (no doubt get more this evening) and 502 visited today...... just a typical day on swapscene really ![]() |
#9
|
||||
|
||||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|