Answer the question
In order to leave comments, you need to log in
After adding a user, CUser::GetList doesn't load it?
There is some page, on top I display a list of users that I have registered, after (below) the new user registration form itself.
in the user field UF_MANYREG the list of id of users which I registered is stored.
Top part
<?
$ThisUser = CUser::GetByID($USER->GetID());
$serMANYREG = $ThisUser->Fetch()["UF_MANYREG"];
$arrMANYREG = unserialize($serMANYREG);
if($arrMANYREG) {
foreach ($arrMANYREG as $artostr)
$strMANYREG .= $artostr . "||";
$rsUser = CUser::GetList(($by = "id"), ($order = "desc"), array("ID" => $strMANYREG), array());
while ($arUser = $rsUser->Fetch())
echo "<div>" . $arUser["LAST_NAME"] . " " . $arUser["NAME"] . " " . $arUser["SECOND_NAME"] . (($arUser["PERSONAL_CITY"]) ? ", <span>" . GetCountryByID($arUser["PERSONAL_COUNTRY"]).", ".$arUser["PERSONAL_CITY"] . "</span>" : "") . '<a href="/personal/collectivereg/edituser/?user=' . $arUser["ID"] . '" style="float: right;font-size: 12px;color: gainsboro;">Редактировать</a>' . "</div>";
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question