View Single Post
Old 2009-03-11, 13:09   Link #2
felix
sleepyhead
*Author
 
 
Join Date: Dec 2005
Location: event horizon
Brought up in Animesuki Banner Contest - 2008 - General Discussion Thread.

Custom Banner Rotation

(presuming you are already in admincp)
  1. User Profile Fields >> Add New User Profile Field
  2. As Profile Field Type select Single-Selection Menu
  3. Title: "1st Banner"
  4. Description: "Select your 1st <a href="http://forums.animesuki.com/showthread.php?t=78175">favorite banner</a>."
  5. Options:
    Spoiler for example:
  6. Set Default: "Yes, but No First Blank Option"
  7. Display Order should be left as is since it auto increments.
  8. (complete the last options as you wish)
  9. Which page displays this option?: "Options: Other"
  10. Repeat 1 to 9 another two times so as to create a "2nd" and "3rd".

    Result: Member Options


  11. Style & Templates >> Style Manager
  12. On the Animesuki Default style select Add Child Style, you may call it what you wish.
  13. On this new style select Common Templates. Now your attention around the <!--logo--> comment; the code for the rotation system should be there.

[How to] Insert Profile Field Value

The following is a primitive code demo based on default skin to show necessary code:
Code:
<!-- logo -->
<a name="top">
1st banner: 
<if condition="$bbuserinfo['userid'] == 0">contest choice 1st</if><if condition="$bbuserinfo['userid'] != 0">$bbuserinfo[field7]</if> <br />
2nd banner: 
<if condition="$bbuserinfo['userid'] == 0">contest choice 2nd</if><if condition="$bbuserinfo['userid'] != 0">$bbuserinfo[field8]</if> <br />
3rd banner: 
<if condition="$bbuserinfo['userid'] == 0">contest choice 3rd</if><if condition="$bbuserinfo['userid'] != 0">$bbuserinfo[field9]</if>
</a>
<!-- /logo -->
I have field7, field8, field9 but you will have higher numbers most likely. See: User Profile Fields, for actual IDs of the fields.
(and, I do know there is a <else /> option for the <if>)
__________________
felix is offline   Reply With Quote