If you're using XOOPS 2.5.8 or 2.5.9 you should be able to go to:
http://<yoursite.com>/modules/system/admin.php?fct=blocksadmin&op=add
http://<yoursite.com>/modules/system/admin.php?fct=blocksadmin&op=add
$this->XoopsFormSelect($caption, $name, $value);
parent::__construct($caption, $name, $value);
if ($com_mode == 'flat') {
$comments = $comment_handler->getByItemId($xoopsModule->getVar('mid'), $com_itemid, $com_dborder);
include_once $GLOBALS['xoops']->path('class/commentrenderer.php');
$renderer =& XoopsCommentRenderer::instance($xoopsTpl);
$renderer->setComments($comments);
$renderer->renderFlatView($admin_view);
} elseif ($com_mode == 'thread') {
if ($com_mode == 'flat') {
$module_handler = xoops_getHandler('module');
$sys_module = $module_handler->getByDirname('system');
$config_handler = xoops_getHandler('config');
$sys_config = $config_handler->getConfigsByCat(0, $sys_module->getVar('mid'));
$comments = $comment_handler->getByItemId($xoopsModule->getVar('mid'), $com_itemid, $com_dborder, null, (int)$sys_config['comments_pager']);
include_once $GLOBALS['xoops']->path('class/commentrenderer.php');
$renderer =& XoopsCommentRenderer::instance($xoopsTpl);
$renderer->setComments($comments);
$renderer->renderFlatView($admin_view);
} elseif ($com_mode == 'thread') {
blackrx wrote:
yes its working
thank you zyspec
will be great if the search box can search name instead of username
i'm using XOOPS in an Intranet environment in my small office
it is a closed site with manual registration and all user are registered using their staff ID...
hopefully XOOPS can implement change username to real name in setting so we dont have to changes files manually...
$user_uname = (!isset($_REQUEST['user_uname'])) ? '' : $_REQUEST['user_uname'];
//Form tris
$form = '<form action="admin.php?fct=users" method="post">
' . _AM_SYSTEM_USERS_SEARCH_USER . '<input type="text" name="user_uname" value="' . myts->htmlSpecialChars($user_uname) . '" size="15">
<select name="selgroups">
<option value="" selected>' . _AM_SYSTEM_USERS_ALLGROUP . '</option>';
$user_name = (!isset($_REQUEST['user_name'])) ? '' : $_REQUEST['user_name'];
//Form tris
$form = '<form action="admin.php?fct=users" method="post">
' . _AM_SYSTEM_USERS_SEARCH_USER . '<input type="text" name="user_name" value="' . $myts->htmlSpecialChars($user_name) . '" size="15">
<select name="selgroups">
<option value="" selected>' . _AM_SYSTEM_USERS_ALLGROUP . '</option>';
<td class="txtcenter"><a title="<{$users.uname}>" href="<{$xoops_url}>/userinfo.php?uid=<{$users.uid}>"><{$users.uname}></a></td>
<td class="txtcenter"><a title="<{$users.name}>" href="<{$xoops_url}>/userinfo.php?uid=<{$users.uid}>"><{$users.name}></a></td>