1
lachek
Let users manage their own groups
  • 2007/8/3 17:54

  • lachek

  • Just popping in

  • Posts: 7

  • Since: 2007/8/3 1


I would like the ability to let users join and leave a subset of groups on their own. Specifically, I would like to use this method for users to manage their own membership in mailing lists. I have Liaise set up such that users can fill out a form which then sends email to specific XOOPS groups, and I want members to be able to join and opt out of receiving those emails.

I will also entertain alternate solutions to my problem, if having users add/remove their own groups is too trixy.

Thanks!

2
lachek
Re: Let users manage their own groups
  • 2007/8/8 14:21

  • lachek

  • Just popping in

  • Posts: 7

  • Since: 2007/8/3 1


Um, bump?

Does anyone have any insight into this, or at least some approximation that will let me do what I need to do with some elbow grease?

Essentially, I want users to be able to join and leave some subset of XOOPS groups on their own (for example, allowing users to join and leave "Buy and Sell" but not allow join and leave "Registered Users"), rather than me having to add/remove them manually. This will allow me to set up messaging forms that emails specific groups, and have users opt in or opt out of receiving those messages.

Thanks.

3
chadm
Re: Let users manage their own groups
  • 2007/8/10 12:46

  • chadm

  • Just popping in

  • Posts: 50

  • Since: 2006/6/29


We have a similar need..

Any one have ideas or a code base someone could use?

Thanks...

4
lachek
Re: Let users manage their own groups
  • 2007/8/20 12:37

  • lachek

  • Just popping in

  • Posts: 7

  • Since: 2007/8/3 1


So, is there a way of doing this in XOOPS?

Is it too trivial a solution to mention? If so, please point in the right direction.

Is it a known limitation that is extremely hard to patch? If so, please note that.

Thanks.

5
suico
Re: Let users manage their own groups
  • 2007/8/20 13:52

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


<? //Get member handler
$member_handler =& xoops_gethandler('member');

//Add user to group
$member_handler->addUserToGroup($groupid, $uid); ?>

to list all groups so you can add them in a form :
Class: XoopsFormSelectGroup
Method: XoopsFormSelectGroup($caption, $name, $include_anon=false, $value=null, $size=1, $multiple=false)

This file is in class/xoopsform

hope this helps you to hack your script
Yogurt Social Network Service
Visit:http://www.marcellobrandao.eti.br/

6
chadm
Re: Let users manage their own groups
  • 2007/8/20 16:31

  • chadm

  • Just popping in

  • Posts: 50

  • Since: 2006/6/29


suico ...

That will greatly help what we are looking to do.

And I will most certainly check out the file you reference.

THANKS!

7
suico
Re: Let users manage their own groups
  • 2007/8/20 16:37

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


OK 'it's mypeasure to help. If you need any help on this just ask here as I'll keep a look on this thread for you.
cya
Yogurt Social Network Service
Visit:http://www.marcellobrandao.eti.br/

Login

Who's Online

279 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 279


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits