PDA

View Full Version : wordwrapping


Rumata
06-20-2002, 03:47 PM
I've got a problem with wrapping words in posts.
e.g. the string:
http://www3.hotlog.ru/cgi-bin/hotlog/site_stat/?id=41151&b_day=1&b_month=1&b_year=2001&e_day=18&e_month=6&e_year=2002&var=SCREEN&max_items=50
is not wrapped, though I've put wordwrap = 50 in admin cp =(

Well after seeing such a problem I opened functions.php and found function dowordwrap. But this didn't help me, as I can't underatand this regular expression =)

Please, someone who knows regular expressions help me!

PS the function:
function dowordwrap($text) {
global $wordwrap;

if ($wordwrap!=0 and $text!="") {
return preg_replace("/([^\n\r ?&./<>\"\-]{".$wordwrap."})/i"," \1\n",$text);
}

}

Rumata
06-20-2002, 03:53 PM
You can see wordwrapping is not working here either =)

Admin
06-20-2002, 04:04 PM
Rumata, please go to this (http://www.vbulletin.com/members/vbulletin.org.php) page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.