jooDatabase Forum
Welcome Guest   [Register]  [Login]
 Subject :Re:Error.. 2010-11-29 11:34:56 
gracias

Guest

hi ja!

 

!Very Thxs for your anwser!! It's works!

IP Logged
 Subject :Re:Re:Error.. 2010-07-30 01:28:15 
iftee

Guest


this needs to be done in /httpdocs/components/com_joodb/helpers/joodb.php




[iftee 2010-07-30 01:25:37]:

Error message is saying "The value of $start is greater than the length of $textlength". Add an "if" statement to bypass the function if $start is greater than the length of $textlength. +Put this code just before the mentioned line:

 

if (strlen($text) <= $maxlen) $maxlen = strlen($text);

 

and this should work. It will look probably like this:

 

function wrapText($text,$maxlen=120) {
if (strlen($text)>$maxlen) {
$text = strip_tags($text);
if (strlen($text) <= $maxlen) $maxlen = strlen($text);
$len = strpos($text," ",$maxlen);
if ($len) $text = substr($text,0,$len).' &hellip;';
}
return $text;
}

 

Cheers

 


IP Logged
 Subject :Re:Error.. 2010-07-30 01:25:37 
iftee

Guest

Error message is saying "The value of $start is greater than the length of $textlength". Add an "if" statement to bypass the function if $start is greater than the length of $textlength. +Put this code just before the mentioned line:

 

if (strlen($text) <= $maxlen) $maxlen = strlen($text);

 

and this should work. It will look probably like this:

 

function wrapText($text,$maxlen=120) {
if (strlen($text)>$maxlen) {
$text = strip_tags($text);
if (strlen($text) <= $maxlen) $maxlen = strlen($text);
$len = strpos($text," ",$maxlen);
if ($len) $text = substr($text,0,$len).' &hellip;';
}
return $text;
}

 

Cheers

 

IP Logged
 Subject :Error.. 2010-03-18 23:56:46 
mbedard

Guest

I received this error

 

Warning: strpos() [function.strpos]: Offset not contained in string in /components/com_joodb/helpers/joodb.php on line 124

Whats wrong??

IP Logged
Page # 


Powered by ccBoard