MyBB Community Forums

Full Version: Move Paypal Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have implemented a new paypal button in my forum (www.1operators.com) but I can't get it aligned properly to the top left of the page.

Now it shows up in the bottom of the page and when my sidebar widget is activated it shows up to the top right  Huh

You can log in with : Test, pass: test123

This is the code I'm using at the moment.

Thanks Smile

<div class="page" id="page">
<a name="top" id="top"></a>
<div id="header">
<span class="logo"><a href="{$mybb->settings['bburl']}/portal.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></span>
<div id="panel" class="menu"><ul>{$naoardonate_donatelink}
<li><a href="{$mybb->settings['bburl']}/portal.php">Home</a></li>
<li><a href="{$mybb->settings['bburl']}/index.php">Forum</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
<ul>{$naoardonate_donatelink}
</ul></li>{$welcomeblock}
</ul>
</div>

<span class="tools">
<a href="#" id="separator" style="width: auto; height:auto;">
<img src="{$theme['imgdir']}/tools_sidebar.png" alt="sidebar" title="collapse / expand sidebar"/>
</a>
<a href="#" id="toggler">
</a>
<a class="changewidth original" href="#" title="switch to fixed page width">page</a>
<a class="changewidth wide" href="#" title="switch to full page width">page_wide</a>
<a href="#" title="toggle text and links color" id="textchange"><img src="{$theme['imgdir']}/tools_textcolor.png" alt="text color" /></a>
</span>


</div>

<div id="container" class="forum_sidebar sidebar_right">



<br class="clear" />
<div id="content">
{$pm_notice}{$naoardonate_notice}{$naoardonate_bar}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
<navigation>
<br />
<script async="async" src="https://www.paypalobjects.com/js/external/paypal-button.min.js?merchant=9UG4XEUKH88DG" 
    data-button="donate" 
    data-name="Donation" 
    data-currency="EUR" 
    data-callback="http://www.1operators.com/index.php"
></script>
change that PayPal code like this and check ..
<div class="op_paypal">
<script async="async" src="https://www.paypalobjects.com/js/external/paypal-button.min.js?merchant=9UG4XEUKH88DG"
   data-button="donate"
   data-name="Donation"
   data-currency="EUR"
   data-callback="http://www.1operators.com/index.php">
</script>
</div>
.M. You're an lifesaver as usual, many thanks!

+1