i also have word wrap installed but it ends like this:
Quote:
link][IMG]link[/img][/url]
|
code replacement should be correct.
can someone help me?
you see, first bracket is missing before the link]. i understand this should be [url] instead of link]
my code lines are as follows (sir yaros replacement):
PHP Code:
$Shout['s_shout'] = ereg_replace("[a-zA-Z]+://([-]*[.]?[a-zA-Z0-9_/-?&%])*", "[URL=\\0]link[/URL]", $Shout['s_shout']);
$Shout['s_shout'] = ereg_replace("(^| )(www([-]*[.]?[a-zA-Z0-9_/-?&%])*)", "\\1[URL=http://\\2]link[/URL]", $Shout['s_shout']);
inserted just before
Quote:
$Shout['time'] = buildTime($Shout['s_time']);
|
second insert done is:
Quote:
if ($Shout['s_shout'])
{
$Shout['s_shout'] = wordwrap($Shout['s_shout'], 80 , "\n" ,1);
}
|
just after:
Quote:
if ($Shout['data']['italic'])
{
$Shout['style'] .= 'font-style:'.$Shout['data']['italic'].';';
}
|
i made both inserts in the vbshout.php in 2 places. once for the grabbing of latest shouts and as well as for the displayed archive.
where's the error ?