1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question about sidebar (please help!)

Discussion in 'Styling and Customization Questions' started by mrchasez, Nov 28, 2012.

  1. mrchasez

    mrchasez Active Member

    A week or two ago i needed a block in the sidebar on every forum page.
    So i added this <xen:include template="vote" /> inside of PAGE_CONTAINER under
    <!-- sidebar -->
    <aside>
    <div class="sidebar">

    So it did work, we have a "vote" module on every page which is good.
    However there is one page here:
    http://kingscrafters.com/donate

    Which needs different sidebar options there, and we need the vote module like it is on every page BUT the donate page. Which is created by Donation Manager.

    How can i remove the vote block from that page?
    I really need help here!

    Thanks
     
  2. mrchasez

    mrchasez Active Member

  3. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    The following is derived from http://xenforo.com/community/resour...l-helper-or-other-class.436/update?update=627

    Try to replace
    Code:
    <xen:include template="vote" />
    with
    Code:
    <xen:if is="!({$controllerName} == 'Your_Donate_Controller_Class' AND {$controllerAction} != 'yourDonateAction')">
    <xen:include template="vote" />
    </xen:if>
    Replace with the good class and action, and check that it works as you wish.
     
    Jake Bunce likes this.
  4. mrchasez

    mrchasez Active Member

    I would! If i knew what they were ;I
     
  5. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    Well, the Donation Manager addon is paid and I don't own a license, so I can't look for it in your place.

    Have a look in the add-on folder, search a ControllerPublic class (something by the look of "XXX_ControllerPublic_Donate" ?) and an action inside the php file (something like "actionDonate" ?). Or ask directly Robbo, the addon developper.
     
    Jake Bunce likes this.
  6. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    Oh, another method to determine controller and action: add the code in red in your template:
    Code:
    Controller : {$controllerName} <br />
    Action : {$controllerAction} <br />
    <xen:include template="vote" /> <br/>
    then load the http://kingscrafters.com/donate in your browser and write down the displayed nouns somewhere. They are the names you need in order to apply the changes in my first post.
     
    Jake Bunce likes this.
  7. EQnoble

    EQnoble Well-Known Member

    Code:
    <xen:if is="{$page.node_id} !=282">
     
        <xen:include template="vote" />
     
    </xen:if>
    I would think this would work...just replace 10 with the node id of the page that you would like it NOT to show up on. I changed it to what i think your node id is..
     
  8. mrchasez

    mrchasez Active Member

    How would you find it? Its not like user groups or users themselves.
    The address is just "http://kingscrafters.com/donate"
     
  9. EQnoble

    EQnoble Well-Known Member

    a picture is worth a thousand words here...mostly because I lack the correct verbiage

    found a link and hovered...

    exomaple.png
     
  10. mrchasez

    mrchasez Active Member

  11. EQnoble

    EQnoble Well-Known Member

    ahhh....um well if you want I can take a look on your admincp, I can probably tell you if I can do it at least...otherwise you are going to have to wait for the creator of the addon. I believe it is a paid addon and I can't use my paypal right now or I would just grab it myself.


    Either way i hope I can help or you get it fixed yourself.
     
  12. mrchasez

    mrchasez Active Member

    Could i just send you it? Would you have to install it... or..?
     
  13. EQnoble

    EQnoble Well-Known Member

    actually...try this...I have a hunch it may work
    Code:
     
    <xen:if is="{$contentTemplate} != 'merc_goal'">
         <xen:include template="vote" />
    </xen:if>
     
    
     
    Jake Bunce likes this.
  14. EQnoble

    EQnoble Well-Known Member

    if it is a paid addon no....with paid addons the only fair way to do it would be to give me access which I understand may be a problem for you but to respect the author i would say no just because if i was not an honest person I could easily get a free copy of the addon....
     
    Jake Bunce likes this.
  15. mrchasez

    mrchasez Active Member

    Oh.... i could not include some files...
     
  16. EQnoble

    EQnoble Well-Known Member

    I am confused...is that a question?



    did you try this....
     
    Jake Bunce likes this.
  17. mrchasez

    mrchasez Active Member

    IT WORKED!
    Anyway to remove it from http://kingscrafters.com/index.php?members/ page too :p


    Edit: I do have another issue though.
    The Top donors and other sidebar blocks arent showing up because
    the only sidebar block is "Share This Page"

    In the options it asks where to put the donation sidebar blocks
    [​IMG]

    But none of those are on the page (Staff online, Members or Statistics)
    So how do i get them to show up there?
     
  18. EQnoble

    EQnoble Well-Known Member



    replace this code we entered...
    HTML:
    <xen:if is="{$contentTemplate} != 'merc_goal'">
        <xen:include template="vote" />
    </xen:if>
    with this snippet
    HTML:
    <xen:if is="!in_array({$contentTemplate}, array('merc_goal', 'member_list'))">
        <xen:include template="vote" />
    </xen:if>
     
    
    ...lemme know if that works for you
     
    Jake Bunce likes this.
  19. mrchasez

    mrchasez Active Member

    I know this is pretty old but i have one last question...
    How do i stop it from displaying on the homepage?
    http://kingscrafters.com/index.php

    I found how to add other pages (like forum_list) but i can't find the "title" of the homepage,
    like what i would add to stop it from being displayed there.

    Thanks.
     

Share This Page