MyBB Community Forums

Full Version: PayPal Donate Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Where will I need to install the script so that the button shows on every page of my forum that my members go?
Who says you need a script? You can just edit the header template and add a donation button. Depends on where you want it and how you expect it to look.


No plugin necessary for a PP donation button or link.
(2012-03-05, 06:49 PM)labrocca Wrote: [ -> ]. . . Depends on where you want it and how you expect it to look.

I suppose I'd want it at the top of each page where I put the mock one top right corner. Here is the top of my index page, and when a member clicks a forum, subforum, and thread I would want it there also.

[attachment=25666]


To achieve that, would I just have to insert the PP code into this main header section . . .

[attachment=25667]


If that *is* where it goes, where would I put the script in order to have it show where I want in the top right . . .

[attachment=25668]

header template consists of logo code similar to below
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

use paypal button code like below after above code
<div id="myppbtn">code of your paypal button</div>

if any adjustments are required then they can be done by using css (style)

just now moving to sleep ...
i done just that on my site and it shows just under my logo
on all pages even the reply page e.t.c

just add the paypal code to the very end of the header template and it will show just like it does on my site.

you can see what it looks like here.
www.davesdrivers.com/forum

if you feel thats too high for you then add it header, welcomeback guest block code.
add it to the end so you know where it is if you have to edit the code.
make sure you get the code direct from paypal so it points direct to the account you want to use.
(2012-03-05, 10:25 PM)davey6 Wrote: [ -> ]i done just that on my site and it shows just under my logo
on all pages even the reply page e.t.c

just add the paypal code to the very end of the header template and it will show just like it does on my site.

you can see what it looks like here.
www.davesdrivers.com/forum

if you feel thats too high for you then add it header, welcomeback guest block code.
add it to the end so you know where it is if you have to edit the code.
make sure you get the code direct from paypal so it points direct to the account you want to use.

Dave yes that's exactly what I am looking for. But I do want it on the right side of the page. Did you do this yourself?
yes i did that image myself and pointed the paypal code to it.

not sure how you would shove it over to the right on the forum php code maybe one of the mods here might be able to give you a little code to do that before you add the paypal code.

paypal are pretty good they have pre logo's you can use and they will give you a code so if someone clicks the image it goes straight to your account.
i just found their pre set images too big for what i wanted.

if you want to use my dontion image then please feel free to do so just right click on it and select save image as.


the paypal code can also be used in HTML pages as well as php so if you really want to you can add it to your home page or anywhere else you like.

before i forget and go hit my bed for a few hours the paypal Create Button or images page can be found here.
they also tell you how to point the image to your account and give you the code needed.
the HTML code they give you works on the forum template without a problem as thats what i used.
https://www.paypal.com/uk/cgi-bin/webscr...ew_outside

Dave, thanks a lot for you info and offer to use your image. I have the PP code stuff down pat I just can't quite figure out the coding for the mybb end of it.

Thanks again for your help.
(2012-03-05, 08:28 PM)ranjani Wrote: [ -> ]header template consists of logo code similar to below
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>

use paypal button code like below after above code
<div id="myppbtn">code of your paypal button</div>

if any adjustments are required then they can be done by using css (style)

just now moving to sleep ...

Ran, you have me 90% there I think but where you say "similar to below" leaves me thinking I should not use that code but tailor it to my site, and I am not sure how to do it. I know you will do it for me if I give you the PP code but I want to learn to do it also.

What part of the header template code above do I need to change?
^ oh! it is the exact code for the logo you have on header template , just above <div class="menu"> .. just add the suggested code after logo code ..

Ohhhh great then! Makes it easy even for me (cross my fingers).

I will ask you to help me create a "Thank You For Your Support" page so I can direct them there after they donate. Will you do it for me? I don't know if you have time today but whenever you have done it I will give you the PP code after you give me the url for the TY page.

Thanks Ranjani. Honestly I'd be stumping my toe on this site all the time without your unselfish help. Heart Smile
Pages: 1 2