Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Grab Currently Viewed Members Usergroup (member.php)
Sure Offline
Junior Member
**
Posts: 1
Joined: Jan 2013
Post: #1
Grab Currently Viewed Members Usergroup (member.php)
Hey! I was wondering how I would go about referencing the currently viewed members usergroup. I have this code on member.php. My goal is to prevent content being loaded based on the members usergroup(not you).

Code:
<if $memprofile['usergroup'] !== 7 then>
show stuff here
</if>

When I try using this, nothing happens. Am I calling the usergroup correctly? Any help would be much appreciated. ^~^

Edit: When I use this code, I believe it conflicts with on of my other plugins 'My Network' : http://i.imgur.com/3EjYiNF.png?1
Is there anything I should check for in the php file? What type of code would conflict with this?

(This post was last modified: 01-22-2013 03:22 AM by Sure.)
01-22-2013 03:16 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Grab Currently Viewed Members Usergroup (member.php)
I believe MyNetwork uses its own templating system and doesn't respect what Template Conditionals does.

My Blog
01-22-2013 09:19 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: