[Addon] Usergroup Based Profile Conditionals (eBux Usage)
This modification is in the archives.
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. Now, this is where the fun begins. Installation: First start by looking at your already modified MEMBERINFO template. Haven't modified it yet? Go here - Myspace Profile Re-Write PRO! 1.0.0 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"> Code:
<else /></if> Code:
<if condition="$bbuserinfo[usergroupid] == XX"> <br />$FNB_HTML<br /><else /></if> 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> 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 Here's 1 more example for the video portion: Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"> <tr class="alt2"> <td align="left" valign="top"> <div align="center"><EMBED SRC="$userinfo[field10]"></div></td> </tr> <else /></if> BE SURE TO CLICK INSTALL!!!! Download No files for download. |
Similar Mods
Additional Usergroup based on profile field | vBulletin 3.0 Full Releases |