Question about sidebar (please help!)

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
 
The following is derived from http://xenforo.com/community/resour...l-helper-or-other-class.436/update?update=627

Try to replace
Rich (BB code):
<xen:include template="vote" />
with
Rich (BB 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.
 
The following is derived from http://xenforo.com/community/resour...l-helper-or-other-class.436/update?update=627

Try to replace
Rich (BB code):
<xen:include template="vote" />
with
Rich (BB 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.

I would! If i knew what they were ;I
 
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.
 
Oh, another method to determine controller and action: add the code in red in your template:
Rich (BB 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.
 
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..
 
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.
 
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.

Could i just send you it? Would you have to install it... or..?
 
Could i just send you it? Would you have to install it... or..?
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....
 
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....

Oh.... i could not include some files...
 
I am confused...is that a question?



did you try this....
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
Untitled-1.png


But none of those are on the page (Staff online, Members or Statistics)
So how do i get them to show up there?
 
IT WORKED!
Anyway to remove it from http://kingscrafters.com/index.php?members/ page too :p



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
 
Back
Top Bottom