@@ 138-144 (lines=7) @@ | ||
135 | $random['definition'] = $myts -> displayTarea ( xoops_substr ( $myrow['definition'], 0, $rndlength -1 ), $myrow['html'], $myrow['smiley'], $myrow['xcodes'], 1, $myrow['breaks']); |
|
136 | } |
|
137 | ||
138 | if ( $xoopsModuleConfig['multicats'] == 1 ) { |
|
139 | $random['categoryID'] = $myrow['categoryID']; |
|
140 | ||
141 | $resultY = $xoopsDB -> query ("SELECT categoryID, name FROM ". $xoopsDB -> prefix ("lxcategories") . " WHERE categoryID = ".$myrow['categoryID']." "); |
|
142 | list ( $categoryID, $name ) = $xoopsDB -> fetchRow ( $resultY ); |
|
143 | $random['categoryname'] = $myts -> displayTarea ($name); |
|
144 | } |
|
145 | } |
|
146 | $microlinks = lx_serviceLinks ( $random ); |
|
147 | $xoopsTpl -> assign ( 'random', $random ); |
@@ 62-67 (lines=6) @@ | ||
59 | $syndication['definition'] = $myts -> displayTarea(xoops_substr ( $myrow['definition'], 0, ( $xoopsModuleConfig['rndlength'] -3 ) ) , 1, 1, 1, 1, 1); |
|
60 | // note: if the definitions are too long try : $xoopsModuleConfig['rndlength'] -20 ) and decrease font-size:x-small below ... |
|
61 | } |
|
62 | if ( $xoopsModuleConfig['multicats'] == 1 ) { |
|
63 | $syndication['catID'] = $myrow['categoryID']; |
|
64 | $resultY = $xoopsDB -> query ("SELECT categoryID, name FROM ". $xoopsDB -> prefix ("lxcategories") . " WHERE categoryID = ".$myrow['categoryID']." "); |
|
65 | list ( $categoryID, $name ) = $xoopsDB -> fetchRow ( $resultY ); |
|
66 | $syndication['categoryname'] = $myts -> displayTarea ($name); |
|
67 | } |
|
68 | } |
|
69 | $tpl -> assign ( 'syndication', $syndication ); |
|
70 | } |