Quote:
Originally Posted by Barteh
Bit like this:
Code:
CoD4 CoD5 CoD7 BFBC2 etc etc
Member 1 ? ? ? ?
Member 2 ? ? ? ?
Member 3 ? ? ? ?
...
Member 40 ? ? ? ?
User input field per category (i.e. game) would be a pulldown menu or a set of radio buttons, either simply with the same colour codes or descriptive texts like this:
Are you active in this game?
Yes
Occasionally
Rarely
Don't own it
I'm not entirely sure how to properly do the conversion bit from text values to images. Maybe the last value should be simply 'no' so the options can simply be variables translating to image names (occasionally.jpg -> dark green pip for example). But at my first attempts I mostly just broke the script 
|
Alright, I got this working. Here is how to set it up.
Go to the AdminCP -> User Profile Fields -> Add New User Profile Field
Select Single-Selection Menu
Put whatever you want in most of the fields, but you'll need to use the following for Options:
Quote:
Yes
Occasionally
Rarely
Not Owned
|
You can change the Options to other words, but you will need to update the template code (listed below). Also, do not use special characters (like single or double quotes).
Next, edit the showroster_userbits template by adjusting one of the field column's. My example will be using the column8 one.
Look for:
HTML Code:
<vb:if condition="$show[field8th] AND exec_switch_bg()"><td>{vb:var userinfo.{vb:var columns[column8]}}</td></vb:if>
Replace with:
HTML Code:
<vb:if condition="$show[field8th] AND exec_switch_bg()">
<td>
<vb:if condition="$userinfo['field42'] == 'Yes'"><img class="avatar" src="images/misc/active1.png" alt="Yes" /></vb:if>
<vb:if condition="$userinfo['field42'] == 'Occasionally'"><img class="avatar" src="images/misc/active2.png" alt="Occasionally" /></vb:if>
<vb:if condition="$userinfo['field42'] == 'Rarely'"><img class="avatar" src="images/misc/active3.png" alt="Rarely" /></vb:if>
<vb:if condition="$userinfo['field42'] == 'Not Owned'"><img class="avatar" src="images/misc/active4.png" alt="Not Owned" /></vb:if>
</td>
</vb:if>
Obviously, you can change the active#.png files with any any image files you want to use.
Good luck!