• 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!)

mrchasez

Active member
#1
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
 

mrchasez

Active member
#4

ManOnDaMoon

Well-known member
#5
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.
 

ManOnDaMoon

Well-known member
#6
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.
 

EQnoble

Well-known member
#7
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..
 

EQnoble

Well-known member
#11
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.
 

mrchasez

Active member
#12
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..?
 

EQnoble

Well-known member
#14
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....
 

mrchasez

Active member
#15
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...
 

mrchasez

Active member
#17
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


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

EQnoble

Well-known member
#18


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