Back to vBulletin 3.5 Template Modifications

[Addon] Usergroup Based Profile Conditionals (eBux Usage)
Mod Version: 1.00, by Stangsta

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 13
Released: 02 Mar 2006 Last Update: Never Downloads: 1
Not Supported Template Edits  

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">
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)
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>
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

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>
I didn't put screenshots because I don't think they are necessary, but If you must have them, ask and ill get some up tomorrow night.



BE SURE TO CLICK INSTALL!!!!

Download

No files for download.

Similar Mods

Additional Usergroup based on profile field vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024