The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Socialgroup search link
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 [DATE]1381809344[/DATE] at [TIME]1381809344[/TIME] --------------- 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. |
#2
|
|||
|
|||
Try this:
Code:
<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 |
#3
|
|||
|
|||
Kevin, thank you. I can see why I never would have found this on my own.
Works perfectly. (flagged, starred, thanked, and liked) |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|