7
Hi John,
Quote:
John_N wrote:
Can you give me list of the bugs that you have found here please, I have fixed the submit problem but I am interested in the others that you may have also found.
The one I remember (i.e. without the forums being up at present) was to display HTML code. Without this 'hack', it wouldn't do it.
Line 59 of /modules/wflinks/include/linkloadinfo.php is
$link['description'] = $wfmyts -> displayTarea( $link_arr['description'], 0, 1, 1, 1, 1 );
and the hack to get HTML code to display was .......
$link['description'] = $wfmyts -> displayTarea( $link_arr['description'], 1, 1, 1, 1, 1 );
but a much cleaner way of modifying the code, would be to add this section of code, as done in /modules/wflinks/viewcat.php, lines 128 to 135
$sql = "SELECT description, nohtml, nosmiley, noxcodes, noimages, nobreak, imgurl FROM " . $xoopsDB -> prefix( WFLINKS_CAT ) . " WHERE cid =" . $cid;
$head_arr = $xoopsDB -> fetchArray( $xoopsDB -> query( $sql ) );
$html = ( $head_arr['nohtml'] ) ? 0 : 1;
$smiley = ( $head_arr['nosmiley'] ) ? 0 : 1;
$xcodes = ( $head_arr['noxcodes'] ) ? 0 : 1;
$images = ( $head_arr['noimages'] ) ? 0 : 1;
$breaks = ( $head_arr['nobreak'] ) ? 1 : 0;
$description = $wfmyts -> displayTarea( $head_arr['description'], $html, $smiley, $xcodes, $images, $breaks );
HTH
Peter