Sidebar questions

mrchasez

Active member
On my current theme, i have a custom sidebar "box".

Inside of a template called vote i have this
"<div class="section">
<div class="secondaryContent">
<h3>Online / Vote</h3>
HTML CODE HERE
</div>"

I have a new style, i add "vote" as a template but the block don't show up.
Which makes me think i have to add a line of code in another template, i just don't know which one.
 
If not a template edit or XenPorta block then it could be from this addon:

http://xenforo.com/community/resources/bd-widget-framework.297/

Or it could be a listener for a template hook.

When i set PhantomCraft as the style the page ends up looking like this

KingsCraftPremiumgameplayCrackedServer.png
 
Oh. It's probably an unclosed tag then, like the one I pointed out before:

http://xenforo.com/community/threads/sidebar-questions.40031/#post-437653

Here is inside page_container:
HTML:
<!-- sidebar -->
                <aside>
                        <xen:hook name="page_container_sidebar">
                            <xen:include template="ad_sidebar_top" />
                        <xen:include template="sidebar_visitor_panel" />
                        <xen:include template="vote" />
                        {xen:raw $sidebar}
                        <xen:include template="ad_sidebar_bottom" />
                        </xen:hook>
                    </div>

Here is vote:

HTML:
<div class="section">
    <div class="secondaryContent">
<h3>Online / Vote</h3>
<iframe height="390" src="http://linkycraft.get-sourced.net/TheKingsPVP/module.php" width="100%" frameborder="0" scrolling="no"></iframe>
========<b>KingsCraft</b>========<BR>
<a href="http://minecraftservers.net/server/7358/vote/"><img src="http://minecraftservers.net/status/server_7358.png" /></a>
========<b>KingsPvP</b>========<BR>
<a href="http://minecraftservers.net/server/38454/vote/"><img src="http://minecraftservers.net/status/server_38454.png" /></a>
    </div>
</div>
 
Rich (BB code):
<!-- sidebar -->
                <aside>
                        <xen:hook name="page_container_sidebar">
                            <xen:include template="ad_sidebar_top" />
                        <xen:include template="sidebar_visitor_panel" />
                        <xen:include template="vote" />
                        {xen:raw $sidebar}
                        <xen:include template="ad_sidebar_bottom" />
                        </xen:hook>
                    </div>

?
 
Rich (BB code):
<!-- sidebar -->
                <aside>
                        <xen:hook name="page_container_sidebar">
                            <xen:include template="ad_sidebar_top" />
                        <xen:include template="sidebar_visitor_panel" />
                        <xen:include template="vote" />
                        {xen:raw $sidebar}
                        <xen:include template="ad_sidebar_bottom" />
                        </xen:hook>
                    </div>

?

I only added this line:
<xen:include template="vote" />

Which works perfectly on my minecraft style.
Ill paste more of the code here:

HTML:
                <!-- sidebar -->
                <aside>
                        <xen:hook name="page_container_sidebar">
                            <xen:include template="ad_sidebar_top" />
                        <xen:include template="sidebar_visitor_panel" />
                        <xen:include template="vote" />
                        {xen:raw $sidebar}
                        <xen:include template="ad_sidebar_bottom" />
                        </xen:hook>
                    </div>
                </aside>
            </xen:if>
           
            <xen:hook name="page_container_breadcrumb_bottom">           
            <div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
            </xen:hook>
                       
            <xen:include template="ad_below_bottom_breadcrumb" />
                       
        </div>
    </div>
</div>
 
I addeed "<xen:include template="vote" />" to page_container so the vote box is on the sidebar of every page like i wanted it, however!
Is there anyway i can exclude a page or two from having it ;/

In the container scope (ie PAGE_CONTAINER template) you can use this:

Code:
<xen:if is="!in_array({$contentTemplate}, array('template1', 'template2', 'template3'))">

</xen:if>

You just need the template name:

http://xenforo.com/community/threads/1-0-0-b1-how-to-identify-the-root-template-of-a-page.5591/
 
Top Bottom