Announcement

Collapse
No announcement yet.

Creating New Stylevar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Matthew Gordon
    replied
    Well, how/where are you adding it to config.php? It's certainly the right code to enable debug mode, and enabling debug mode does expose the master style.

    Leave a comment:


  • G.I.JOE*MFA*
    replied
    after I edit the config.php

    I do not see an additional style 'MASTER STYLE'

    I do not have two buttons to add and delete stylevars

    Leave a comment:


  • Matthew Gordon
    replied
    What exactly isn't working?

    Leave a comment:


  • G.I.JOE*MFA*
    replied
    not working with vB 4.2.0 PL 2

    I'm trying to add a new stylevar

    Leave a comment:


  • Trevor Hannant
    replied
    Users will see some information at the foot of each page - you should only enable this for the time that you NEED to use it.

    Leave a comment:


  • valerios
    replied
    Does the debug mode visible to the users/visitors or it vill affect only the adminCP?
    Last edited by valerios; Fri 29th Apr '11, 8:13pm.

    Leave a comment:


  • StudioCodes
    replied
    Quote from Carnage's post on vb.org

    These are the steps to create a new custom stylevar:

    Step 1.
    Put your board into debug mode by adding this

    PHP Code:
    $config['Misc']['debug'] = true
    to config.php

    Step 2.
    Goto the style manager, you will now see an additional style 'MASTER STYLE'

    Step 3.
    Enter the stylevar editor for MASTER STYLE

    Step 4.
    In addition to the regular stylevar editor, you will have two buttons to add and delete stylevars. Click add stylevar

    Step 5.
    Fill in the form to add the style var. If you select a product you are working from from the dropdown, it'll be included in the product xml file when you export. Its always a good idea to prefix your variables so they don't conflict with other peoples. The product id makes a good prefix.

    Step 6.
    Setting the value for it in the master style, sets its default value.

    Step 7.
    You can use this stylevar in your templates with the following code:

    Code:
    {vb:stylevar <stylevar name>}
    You can also customise it as normal in any of your custom styles.

    Step 8.
    Remove or comment out the line you added in step 1 to take your board out of debug mode.

    Leave a comment:


  • Satviewers
    started a topic [Forum] Creating New Stylevar

    Creating New Stylevar

    Hi,

    Is there a guide to creating a new Stylevar.

Related Topics

Collapse

Working...
X