XenPorta Block In Forum Sidebar

Zovator

Member
I've got this template:
Code:
<xen:edithint template="sidebar.css" />
 
<!-- block: sidebar_donations -->
<xen:if hascontent="true">
    <div class="section Donations">
        <div class="secondaryContent">
            <h3>Donate</h3>
 
            <ul>
                <xen:contentcheck>
                <xen:foreach loop="$option.drives" value="$drive">
                <li>
                    <form action="{$option.payPalUrl}" method="post" class="upgradeForm">
                        <input type="hidden" name="business" value="{$drive.email}" />
                        <input type="hidden" name="currency_code" value="{$option.currency}" />
                        <input type="hidden" name="item_name" value="{$drive.title}" />
                        <input type="hidden" name="quantity" value="1" />
                        <input type="hidden" name="no_note" value="1" />
                        <input type="hidden" name="no_shipping" value="1" />
                        <input type="hidden" name="custom" value="{$visitor.user_id},{$drive.drive_id},token,{$visitor.csrf_token_page}" />
 
                        <input type="hidden" name="charset" value="utf-8" />
                        <input type="hidden" name="email" value="{$visitor.email}" />
 
                        <input type="hidden" name="cmd" value="_donations" />   
                        <input type="hidden" name="return" value="{$requestPaths.fullBasePath}{xen:link donations/thanks}" />   
                        <input type="hidden" name="cancel_return" value="{$requestPaths.fullBasePath}" />
                        <input type="hidden" name="notify_url" value="{$xenOptions.boardUrl}/donation_callback.php" />
 
                        <xen:if is="{$drive.goal}">
                            <img class="pieChart" src="http://chart.apis.google.com/chart?chf=bg,s,00000000&chs=150x150&chco={$option.color}&chp={$option.rotation}&cht=p&chd=t:{$drive.data1},{$drive.data2}" />
 
                            <b>{$drive.title}</b><br />
                            <select name="amount" class="textCtrl autoSize amount">
                                <xen:foreach loop="$option.amounts" value="$amount">
                                    <option value="{$amount.value}">{$amount.text}</option>
                                </xen:foreach>
                            </select><br />
                            <input type="submit" value="{xen:phrase EWRblock_Donations_donate}!" class="button donate" /><br />
                            {xen:phrase EWRblock_Donations_received_x_of_y, 'sum=<a href="{xen:link 'donations', $drive}" class="OverlayTrigger">${$drive.sum}</a>', 'goal=${$drive.goal}'}
                        <xen:else />
                            <b>{$drive.title}</b><br />
                            <select name="amount" class="textCtrl autoSize amount">
                                <xen:foreach loop="$option.amounts" value="$amount">
                                    <option value="{$amount.value}">{$amount.text}</option>
                                </xen:foreach>
                            </select> &nbsp;
                            <input type="submit" value="{xen:phrase EWRblock_Donations_donate}!" class="button donate" /><br />
                            {xen:phrase EWRblock_Donations_received_x, 'sum=<a href="{xen:link 'donations', $drive}" class="OverlayTrigger">${$drive.sum}</a>'}
                        </xen:if>
                    </form>
                </li>
                </xen:foreach>
                </xen:contentcheck>
            </ul>
            <div class="loggedIn">
                {xen:phrase EWRblock_Donations_credit, 'user={xen:if '{$visitor.user_id}', '{xen:helper username, $visitor}', '{xen:phrase guest}'}'}
        </div>
    </div>
</xen:if>
<!-- end block: sidebar_donations -->
And put it in my sidebar like I usually do, I've done this before, and usually the blocks show up in the forum sidebar. But for some reason this one isn't showing up, could somebody look over this and help me get this in?
 
Back
Top Bottom