Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Choosing the default style from a dropdown list

edited July 2005 in Vanilla 1.0 Help
I was thinking it may be easier to set the default style from a dropdown list based off of all the styles available in the style folder. Less chance for user error, and easier than inputting the folder manually. <edit> btw, I am referring to the sitewide default style, which is set by the admin on the application settings panel.


  • Options
    i'm gonna bump this cause its already getting low down the list and it seems like a good idea even though i'm not entirely sure what he means. It's been a long day
  • Options
    I would assume that there is a table that holds all the styles and the information for them. If that's the case you could just hit the style table to populate a list of available styles and their ID.
  • Options
    I think its all out-the-folder type stuff. Might be wrong, i've lost familiarity with the database structure since i finished the phpBB thing.
  • Options
    I just took a look at my DB and there is a table called LUM_Style, and each style in it has a StyleID (starting with 1 as the first entry). The LUM_User table has a StyleID column that is set to 1 as the default. There is also a column for CustomStyle, which is a varchar field, to store the url to a custom style. I have the custom style extension enabled.
  • Options
    edited July 2005
    Since the LUM_Style table's StyleID column starts with 1, you could use 0 as a mapping to the default style. Put some logic in that says if the user's StyleID is 0, use the default StyleID which would be set by the dropdown. That would also allow the admin to change the default style for any user who is set to use the default.
  • Options
    oh. i get it now. yeah the dropdown would be good. Perhaps with a textbox alternative
This discussion has been closed.