The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[Addon] Usergroup Based Profile Conditionals (eBux Usage) Details »» | |||||||||||||||||||||||||||
[Addon] Usergroup Based Profile Conditionals (eBux Usage)
Developer Last Online: Feb 2017
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 - https://vborg.vbsupport.ru/showthread.php?t=109094 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!!!! Show Your Support
|
Comments |
#2
|
||||
|
||||
I have a feeling that this is almost what I have been looking for. Great work! Thanks.
|
#3
|
||||
|
||||
You rock!! I know what I am doing this weekend.
|
#4
|
|||
|
|||
how do i create a test style? thanks.
|
#5
|
||||
|
||||
Quote:
Quote:
Alteratively, you can make a child style which will mimic one of your other styles that you choose. Theres a link in the dropdown, "Add child style". |
#6
|
|||
|
|||
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.
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
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 |
#9
|
|||
|
|||
Could this be used in conjunction with this hack: https://vborg.vbsupport.ru/showthrea...=91407&page=5?
I'd like to be able to offer the postbit switching hack only to specific usergroups.... |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|