Version: 1.00, by Stangsta
Developer Last Online: Feb 2017
Version: 3.5.4
Rating:
Released: 03-01-2006
Last Update: Never
Installs: 13
Template Edits
No support by the author.
Usergroup(s) Based Profile Conditionals (eBux Usage)
What it does: Simply put, this is an addon for the Myspace Profile Re-Write PRO! 1.0.0 template Mod. This will allow you to have a conditional or per usergroup(s) to "turn on and off" hacks in the profile. The Primary use for this hack, is to be able for users to purchase a "secondary usergroup" in eBux to gain access to various parts of the profile.
I STRONGLY RECCOMEND that you make ALL modifications to a "test style" first. If you do not have one, create one. This way, when you mess up, your users will not be affected.
Once you have made all the modifications and are happy with your profile, decide what "features" you want to turn on and off. Then create a usergroup for one or more of those features. Some examples are: "Can display media(video)", "Can display friends and/or buddies", "can use comments", etc. You can also use this for ANY profile field. It's up to YOUR needs and imagination.
Now, use this code to wrap around the feature you want to associate with a usergroup. Be sure to change the "XX" to the usergroup number you wish to give access to.
This goes on the top of the "block" of code you are working with
Code:
<if condition="$bbuserinfo[usergroupid] == XX">
This goes on the bottom of the code
Code:
<else /></if>
So, what it should look like (this is to turn the buddylist on/off in the profile)
Now, lets say you would rather do this for multiple usergroups Use this instead
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)">
<br />$FNB_HTML<br /><else /></if>
Just change the x,y,z to whatever usergroup numbers you wish.
This is the building blocks. Its a fairly simple hack, just a little time consuming (maybe 10-30 minutes to install tops) I will do my best to support this thread
Technically, can I use this code without the entire MySpace Re-Write Pro mod? I'm planning on installing that, but using this in the meantime would be great.
Technically, can I use this code without the entire MySpace Re-Write Pro mod? I'm planning on installing that, but using this in the meantime would be great.
Not to hijack this thread but...
Rather than hard code which usergroup can use this, how would I
set conditionals for if they have a certain usergroup permission.
I had a coder add 4 custom usergroup options, lets say for instance the first one is called: can_user_enlarge_thumbs
The admincp|usergroups|usergroup manager seems to update the correct entries in the databse, but now how can I limit only people with the usergroup setting: can_user_enlarge_thumbs set to YES?
Thanks in advance. I can't seem to find any examples but I know that's what usergroup codings must do