Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Smarty tag for discussion button? (2.1b)

ZhaanZhaan Professional fool ✭✭

Hi again, Vanilla sweethearts. ^_^

I've successfully replaced the sidebar in my upcoming 2.1b theme, but I'm still missing one component for my custom menu, namely the 'new discussion' button. Everything else is in place. So I'm wondering, is there some kind of Smarty tag I add to my default.master.tpl that would sort this?

Cheers.

Best Answers

  • TamaTama United Kingdom ✭✭✭
    Answer ✓

    Taken from Smarty Debug

    NewDiscussionModule => NewDiscussionModule Object (11)
    ->DefaultButton = false
    ->CssClass = "Button Action Big Primary"
    ->QueryString = ""
    ->Buttons = Array (0)
    ->AssetName = ""
    ->Data = Array (0)
    ->Visible = true
    ->EventArguments = Array (0)
    ->Returns = Array (0)
    ->HandlerType = "NORMAL"
    ->FireAs = null

    I presume you would use {module name="NewDiscussionModule"}

    There was an error rendering this rich post.

  • peregrineperegrine MVP
    Answer ✓

    add {debug} in your default.master.tpl

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • peregrineperegrine MVP
    edited July 2013 Answer ✓

    I also do this when not debugging - so i don't have to remember.

    {*debug*)

    and leave it permanently in the theme

    and then just remove the * - which means comment in smartyese

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Answers

  • TamaTama United Kingdom ✭✭✭
    Answer ✓

    Taken from Smarty Debug

    NewDiscussionModule => NewDiscussionModule Object (11)
    ->DefaultButton = false
    ->CssClass = "Button Action Big Primary"
    ->QueryString = ""
    ->Buttons = Array (0)
    ->AssetName = ""
    ->Data = Array (0)
    ->Visible = true
    ->EventArguments = Array (0)
    ->Returns = Array (0)
    ->HandlerType = "NORMAL"
    ->FireAs = null

    I presume you would use {module name="NewDiscussionModule"}

    There was an error rendering this rich post.

  • ZhaanZhaan Professional fool ✭✭

    Yep, that did the trick! Thanks a lot.

  • hgtonighthgtonight ∞ · New Moderator

    @Tama, mind posting how to view SMARTY debug info? I think this would be helpful for the wiki: http://vanillawiki.homebrewforums.net/index.php/Using_Smarty_with_Vanilla

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • peregrineperegrine MVP
    Answer ✓

    add {debug} in your default.master.tpl

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • peregrineperegrine MVP
    edited July 2013 Answer ✓

    I also do this when not debugging - so i don't have to remember.

    {*debug*)

    and leave it permanently in the theme

    and then just remove the * - which means comment in smartyese

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.