1
I use this profile hack to add "previous" and "next" buttons on top of my users profile templates to make it easier to move fom one user's profile to the next and back.
In Admin->Misc.Tools->Templates
First you must clone your original templates.
Then in UserProfile, click list and then edit profile_userinfo.html
Add these lines to the start of the template and save it.
<{if $xoops_isadmin}>
<table><tr align="center"><td>
<input type="button" value="Previous" onclick="location='<{$xoops_url}>/modules/profile/userinfo.php?uid=<{$prev_uid}>'" />
<input type="button" value="Next" onclick="location='<{$xoops_url}>/modules/profile/userinfo.php?uid=<{$next_uid}>'" />
td>tr>table>
<{/if}>
Then edit \modules\profile\userinfo.php and find the first and last lines in this code and replace with what I have here.
include_once XOOPS_ROOT_PATH . '/modules/system/constants.php';
$uid = intval($_GET['uid']);
if ($uid <= 0) {
header('location: '.XOOPS_URL);
exit();
} else {
$prev_uid=$uid-1;
$next_uid=$uid+1;
$xoopsTpl->assign('prev_uid', $prev_uid);
$xoopsTpl->assign('next_uid', $next_uid);
}
$gperm_handler = & xoops_gethandler( 'groupperm' );
Upload your new version of userinfo.php and Bob's your Uncle.