Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Show User Group

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Show User Group

More
11 years 1 month ago #4211 by santiago34
Show User Group was created by santiago34
Hi,

I wondering if there is a way to display the "user group" in a non-editable field on their publications?

Also, I would like to display the group of the submitter on a column in list mode.

(User are classified by their email domains on a few groups)

Can you help me? Or at least give me a clue of how can I do that?

Regards,
Santiago.
The following user(s) said Thank You: adarr
More
11 years 1 month ago #4216 by tompap
Replied by tompap on topic Show User Group
There is no option for that sorry
The following user(s) said Thank You: adarr
More
11 years 1 month ago #4289 by santiago34
Replied by santiago34 on topic Show User Group
I just know sql, so I wrote this query to get the user group name.
But I need some help to put it somewhere.

$app = JFactory::getApplication();
$this->_db->setQuery("SELECT #__usergroups.title
FROM #__usergroups
INNER JOIN #__user_usergroup_map 
ON #__usergroups.id = #__user_usergroup_map.group_id
WHERE #__user_usergroup_map.user_id = $userid");
$usergroup = $this->_db->loadObject();
$this->_db->query();

There is a way to show $usergroup on a text field in the submission form?

If its id and name are 'ad_group', maybe something like

if ($field->name == "ad_group"){
//show '$usergroup' as default text
}
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.151 seconds
Powered by Kunena Forum