Images in profiles on conditional statements
This modification is in the archives.
This is compatable with 3.6, but depending on how modified your templates are...you may need to revert.
Hey, I normally don't release my own tweaks, cause they're usually not useful to anyone but me ![]() ![]() First you need a profile field...this modification works best (and makes the most sense) if you have multiple options to select, so go with the check boxes or the list. REMEMBER the number of the field you make, you'll need it later. Few notes about the list, when your uploading your images, i've only gotten them to work as numbers....if you can do better ![]() If you have 1. Flowers 2. Gum 3. Candy and you want to display candy in your profile, the image for candy should be 3.gif (or whatever extension your using). Next comes the profile edit: FIND: Code:
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td> </if> </tr> $membergroupbits </table> </div> </div> </div> </td> </tr> Code:
<if condition="$userinfo[fieldxx] != ''"> <tr> <td class="tcat" width="50%">Title of your field goes here (phrase it if you want to)</td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div align="$stylevar[center]"> <if condition="$post['fieldxx'] & 1"><img src="./images/1.gif"></if> <if condition="$post['fieldxx'] & 2"><img src="./images/2.gif"></if> <if condition="$post['fieldxx'] & 4"><img src="./images/3.gif"></if> <if condition="$post['fieldxx'] & 8"><img src="./images/4.gif"></if> <if condition="$post['fieldxx'] & 16"><img src="./images/5.gif"></if> </div> </div> </td> </tr></if> ![]() ![]() A myth to debunk: 1. This will not allow your users to upload multiple images for their profiles (cool idea....far beyond my skill level ![]() I'll support this as needed....its pretty straight forward really, any questions feel free to post or PM...this will likely be a final release unless someone comes up with something brilliant to add to it....in which case your free to do, just credit my work as needed. Download This modification is archived and cannot be downloaded. Screenshots
|