https://xoops.org/modules/repository/singlefile.php?cid=101&lid=1776
in /modules/xoopsmembers/index.php
Replace the line 29
$op = "form";
With:
$op = "submit";
$op = "form";
$op = "submit";
$profile_handler =& xoops_getmodulehandler('profile','profile');
$profile = $profile_handler->get($xoopsUser->getVar('uid'));
$date_birthday = date('d/m/Y', $profile->getVar('date_birthday'));
$xoopsTpl->assign('date_birthday',$date_birthday);
$profile_handler =& xoops_getmodulehandler('profile','profile');
$uidyogurt = intval($_GET['uid']); //get uid from url
if ($uidyogurt <= 0) { //if no valid uid passed to url
if (is_object($xoopsUser)) {//if member
$profile = $profile_handler->get($xoopsUser->getVar('uid'));} //get uid for the connected member
else {
header('location: ' . XOOPS_URL); //back to homepage - redirect wherever you want
exit();}
}
else {//if a correct uid passed to url - eg. : index.php?uid=12
$profile = $profile_handler->get($uidyogurt);}//get uid passed to url to take right data from profile
$date_birthday = date('d/m/Y', $profile->getVar('date_birthday'));
$xoopsTpl->assign('date_birthday',$date_birthday);
include("../../footer.php");
$profile_handler =& xoops_getmodulehandler('profile','profile');
$profile = $profile_handler->get($xoopsUser->getVar('uid'));
$date_birthday = date('d/m/Y', $profile->getVar('date_birthday'));
$xoopsTpl->assign('date_birthday',$date_birthday);
<{$date_birthday}>
<p class="odd"><img src="images/username.gif" /><span class="yogurt-profileinfo-label"><{$lang_uname}>:</span><span class="yogurt-profileinfo-value"><{$user_uname}></span></p>
<p class="odd"><img src="images/username.gif" /><span class="yogurt-profileinfo-label"><{$lang_uname}>:</span><span class="yogurt-profileinfo-value"><{$user_uname}> - <{$date_birthday}></span></p>
$my_variable = $profile->getVar('my_text_variable');
$xoopsTpl->assign('my_text_variable',$my_variable);
$date_birthday = date('d/m/Y', $profile->getVar('date_birthday'));
$xoopsTpl->assign('date_birthday',$date_birthday);
<{$my_text_variable}>
ziwman wrote:
ps : excuse my bad english, i come from French XOOPS Community ... frxoops.org becomes really so bad and commercial ..
<?php
include './mainfile.php';
include XOOPS_ROOT_PATH.'/header.php';
include XOOPS_ROOT_PATH."/include/cp_functions.php";
global $xoopsDB, $xoopsConfig;
if (is_object($xoopsUser)){
$groupsok = $xoopsUser->getGroups();
}
else {$groupsok=99; }
if (!in_array("4", $groupsok)) //if not in dealer group
{
redirect_header("./index.php",2, "Sorry, you're not authorized.....");
exit();
}
?>