PDA

View Full Version : Socialgroup search link


smirkley
10-15-2013, 02:31 AM
I am trying to construct a url to add to my template that produces a socialgroup list of only the groups that the logged in member owns.

Exactly the same as if you use the advanced search of vb, check social groups, and enter the username.

The results are listed once clicked.

I cant figure out how to add the contentype to the search string in the url, for the logged in user.

Any idea's?

--------------- Added 1381809344 at 1381809344 ---------------

edit to add: to simplify my need....

I want a link that says "My Groups", and when clicked lists my owned groups, when logged in.

kh99
10-15-2013, 10:12 AM
Try this:
<a href="search.php?do=process&type[]=7&searchuser={vb:raw bbuserinfo.username}&exactname=1">My Groups</a>


I think technically the '7' depends on what contenttype id 'groups' has in your database, but by default it's probably the same for everyone.

smirkley
10-15-2013, 01:37 PM
Kevin, thank you. I can see why I never would have found this on my own.

Works perfectly. (flagged, starred, thanked, and liked)