PayPal Donate button in header area.

Edit this template:

Admin CP -> Appearance -> Templates -> logo_block

Add this code:

Code:
			<div style="float: right;">
				YOUR CODE HERE
			</div>

like so:

Code:
<div id="logoBlock">
	<div class="pageWidth">
		<div class="pageContent">
			<div id="logo"><a href="{$logoLink}">
				<span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
				<img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
			</a></div>

			<div style="float: right;">
				YOUR CODE HERE
			</div>

			<span class="helper"></span>
		</div>
	</div>
</div>

This is the result:

Screen shot 2011-02-24 at 11.32.23 AM.webp
 
I used this button last night but took it down because it showed underneath the login button.

I only had it up for a couple of hours and some member randomly donated. I'm shocked.

I need to figure out a better place to put this button.
 
I had one in the sidebar for a short while.

Create a template called e.g. paypal_sidebar and add this code, inserting your own PayPal code where appropriate:

Code:
<div class="section">
    <div class="secondaryContent">
        <h3>Donate To Us</h3>
            <div style="text-align: center">
                Your PayPal code here
            </div>
    </div>
</div>

Then just include the template in the sidebar or forum_list template.

I also had a progress bar, but removed it from the above code because it was manual.

paypal.webp
 
I had one in the sidebar for a short while.

Create a template called e.g. paypal_sidebar and add this code, inserting your own PayPal code where appropriate:

Code:
<div class="section">
    <div class="secondaryContent">
        <h3>Donate To Us</h3>
            <div style="text-align: center">
                Your PayPal code here
            </div>
    </div>
</div>

Then just include the template in the sidebar or forum_list template.

I also had a progress bar, but removed it from the above code because it was manual.

View attachment 22690
Wow thanks Brogan! Random but you were in my dreams last night. Nothing gay now, just a random appearance. See that's what happens when you become so helpful people start dreaming about you lol.

I'll put it in after my host unblocks my ip. If I enter the wrong password 3 times in cpanel it kicks me out. smh
 
I took it a step further and placed my paypal code in a new phrase and placed it within the div style tags like so:

Code:
<div style="text-align: center">
    {xen:phrase paypal_code}
</div>
 
I'd like to add my button between the Forum Statistics and Share This Page link, but I'm not sure where to add the code. Can anyone offer the details on what template and where in the code, and what code I need to add to do this? Thanks!

donate.webp
 
I followed the directions in the link, and used the google code in the linked thread in that thread, but nothing appeared in my side bar. Here's what my code looked like after added the stuff in the green box:

Added text.webp
 
I followed the directions in the link, and used the google code in the linked thread in that thread, but nothing appeared in my side bar. Here's what my code looked like after added the stuff in the green box:

View attachment 61082

regards ~peace
 
Top Bottom