Paypal Donation Button Paypal Donation Button
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Paypal Donation Button

Started by The Grand Pooh-Bah, May 27, 2006, 09:11:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

The Grand Pooh-Bah

Is there a plugin where users can make a donation via paypal to help pay for all the bandwidth they are enjoying?
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

If you don't want your users to pay for getting a particular photo printed, but just display a paypal icon on each and every page that the user can click on to just donate some money, then incorporate the paypal image and the surrounding link into your custom theme. No plugin needed, just a plain theme customization. As it is suppossed to show up on all coppermine pages, you can simply put it into themes/yourtheme/template.html
Moving from plugins sub-board to themes sub-board.

The Grand Pooh-Bah

You make it sound simple.  But I'm not quite sure where or how to add the button.  I'm using theme Terra
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

Wherever you want it to appear. Just plain HTML needed. If you don't tell me where you want it to appear, I can hardly recommend anything. Post a screenshot with the section highlighted where you want to paypal button to appear. Attach it to your posting using "additional options" when composing your message.

The Grand Pooh-Bah

Do you want the code for the button?
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

No, just insert it as suggested. Modify your custom theme as suggested below:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/terra/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
</head>
<body>
{CUSTOM_HEADER}
<table width="100%" border="0" cellpadding="20" cellspacing="0" class="mainbkg">
  <tr>

    <td align="center" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="90" align="center" class="maintitle">
             <table border="0" width="100%" cellspacing="0" cellpadding="0">
               <tr>
                 <td align="center">
                   <div class="gal_name">{GAL_NAME}</div>
                   <div class="gal_description">{GAL_DESCRIPTION}</div>
                 </td>
                 <td align="right">
                   <!-- Your Custom Code (e.g. paypal button) here-->
                 </td>
               </tr>
             </table>
          </td>
        </tr>

      </table>

      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td align="right" valign="top">{SYS_MENU}</td>
        </tr>
        <tr>
          <td align="right" valign="top">{SUB_MENU}{ADMIN_MENU}</td>

        </tr>
      </table>

      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainblock">
        <tr>
          <td align="center" valign="top"><br />{GALLERY}</td>
        </tr>
      </table>

      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="bottom">
        {LANGUAGE_SELECT_FLAGS} <br />
            {LANGUAGE_SELECT_LIST}{THEME_SELECT_LIST} <br/>
        {CUSTOM_FOOTER}
        {VANITY}
          </td>
        </tr>

  </table>

    </td>
  </tr>
</table>
</body>
</html>

The Grand Pooh-Bah

That didn't work to well.  I got the button but the rest of the page changed.
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

Works exactly as advertized: I used the FTP account you sent me to change the theme as suggested, making the word "donate" show up on your page. Use a regular FTP app and a plain text editor, not some crap like MS Frontpage or similar.

The Grand Pooh-Bah

"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Tranz

Go into DW settings and tell it not to modify code automatically.

The Grand Pooh-Bah

Thanks....Now I need to get my Forum Name moved to the Center or Right of the image and the same size as in the lower section of included image.  Can you help with that?

Thanks

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/terra/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
</head>
<body>
{CUSTOM_HEADER}
<table width="100%" border="0" cellpadding="20" cellspacing="0" class="mainbkg">
  <tr>

    <td align="center" valign="top">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="90" align="center" class="maintitle">
             <table border="0" width="100%" cellspacing="0" cellpadding="0">
               <tr>
                 <td align="center">
                   <div class="gal_name">{GAL_NAME}</div>
                   <div class="gal_description">{GAL_DESCRIPTION}</div>
                 </td>
                 <td align="right">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHVwYJKoZIhvcNAQcEoIIHSDCCB0QCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCiW258PWrC48VhQkD0XLRxu/VDKLdjyIVGg/fueH8Sq+5UvLszclT0pUR9gH1j3CaUJyO/bW14Li7ljGYzv2g3nCEEe479aqvguj7QZro4cFhs2nh2vmX93vTs3JgR+vJY9WNJJ78pTz7mikQlPwMuBn1CV/KWsAy4YP2dgJLgLzELMAkGBSsOAwIaBQAwgdQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIRVlykughPSWAgbDyBMbBIruznc22ijpmDre6IQfhctze/G3mvjA+a12xtf2Z3Jx/9BM28Mz0KrBlwJEjSo/U7lU6Fm0ZlZwqnhresMSTJ591LeJOSQ3BMOdEgqoNYnBdrFanZsYi/FYvBTKrMwCbxlQzSDsO6I+E20eIhiAKwl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AwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA2MDUyNzA4NDkwNVowIwYJKoZIhvcNAQkEMRYEFDuaioTlxox04W27bMAR/1u934u+MA0GCSqGSIb3DQEBAQUABIGATRnNZvZwOXKQ6h1YJC7MSTBNAl5da5qe42kFn7eTFOx5RgbB0kbOeBfeTClGUtgg0Us52gfc5PT7Xxe5BLGMeOie/maMZn06J7UKjWjJ+sZtQy4eosYm3lOQfNYW0MfpdlNA0cmBMtxqaW456jc7daPSri5B/H1n2pi6bI3UZT4=-----END PKCS7-----
">
</form>
                 
                 </td>
               </tr>
             </table>
          </td>
        </tr>

      </table>

      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td align="right" valign="top">{SYS_MENU}</td>
        </tr>
        <tr>
          <td align="right" valign="top">{SUB_MENU}{ADMIN_MENU}</td>

        </tr>
      </table>

      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainblock">
        <tr>
          <td align="center" valign="top"><br />{GALLERY}</td>
        </tr>
      </table>

      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="bottom">
        {LANGUAGE_SELECT_FLAGS} <br />
            {LANGUAGE_SELECT_LIST}{THEME_SELECT_LIST} <br/>
        {CUSTOM_FOOTER}
        {VANITY}
          </td>
        </tr>

  </table>

    </td>
  </tr>
</table>
</body>
</html>

"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

Buy a book that deals with basic HTML, or google for a good tutorial. This is plain HTML stuff, no particular Coppermine magic involved. Respect the "one issue per thread" policy in the future, you agreed to respect it when signing up.
Saying "thanks" wouldn't have hurt ::).
Marking thread as solved & locking.