ghanja.be
NederlandsEnglish
Contact Us

Ghanja
Welkom, Gast
Alstublieft Inloggen of Registreren.    Wachtwoord verloren?
Re:Edit from front end (1 bezoeker) (1) Gast
Ga naar onderkant Reageer Favoriet: 0
TOPIC: Re:Edit from front end
#190
bmeeker (Gebruiker)
Fresh Boarder
Berichten: 1
graphgraph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Edit from front end 11 maanden geleden Karma: 0  
I actually looked at this program to be able to list and edit profiles from the front end. I see after you submit a new user, that there is a link to edit thier full profile.

I would like to be able to list, select and edit an existing registered user as an admin logged into the front end.
How do I get the list and be able to select for editing?

I have found a way to show the list of registered users, but need to know how to program it to get the edit profile window: (http://cwloads.com/component/comprofiler/userdetails.html?uid=81) to pop up when I select the existing user from the dropdown list:

<?php

$db =& JFactory::getDBO();
$db->setQuery('SELECT username FROM #__users WHERE gid = 18';
$userlist = $db->loadAssocList();

$optns = array();
foreach ($userlist as $u) {
$optns actually looked at this program to be able to list and edit profiles from the front end. I see after you submit a new user, that there is a link to edit thier full profile.

I would like to be able to list, select and edit an existing registered user as an admin logged into the front end.
How do I get the list and be able to select for editing?

I have found a way to show the list of registered users, but need to know how to program it to get the edit profile window: (http://cwloads.com/component/comprofiler/userdetails.html?uid=81) to pop up when I select the existing user from the dropdown list:

<?php

$db =& JFactory::getDBO();
$db->setQuery('SELECT username FROM #__users WHERE gid = 18';
$userlist = $db->loadAssocList();

$optns = array();
foreach ($userlist as $u) {
$optns[] = JHTML::_('select.option', $u['username']);
}
?>


and to show the list:


<?php
echo JHTML::_('select.genericlist', $optns, 'contact', 'class="cf_inputbox" size="1" title=""';
?>
 
  De Administrator heeft publieke schrijf toegang geblokkeerd.
#191
Webmaster (Admin)
Administrator
Berichten: 194
graph
Gebruiker offline Klik hier om het gebruikersprofiel van deze gebruiker te zien
Re:Edit from front end 11 maanden geleden Karma: 1  
Well i think you are posting in the wrong topic. Are you talking about Add user frontend?

Anyway you should link to: index.php?option=com_comprofiler&task=userDetails&uid=ID
There you can edit the user. Where ID is the id of the user.
 
  De Administrator heeft publieke schrijf toegang geblokkeerd.
Ga naar bovenkant Reageer
Powered by FireBoardbezorg de laatste berichten direct op de desktop
Ghanja Alternatief - Community voor een open wereld!
   
Copyright © 2005 - 2012 Ghanja.be - Sitemap