Página 1 de 1

ADD-ON - Paypal

PostagemEnviado: 16 Maio 2008, 14:07
por Master Portugas
ADD-ON - Paypal


By nickvergessen:
It's mine, but it's not a MOD.
It's jsut a php and a style file.

Create the paypal.php
Código: Seleccionar todos
<?php

/**
*
* @package - download counter
* @version $Id$
* @copyright (c) nickvergessen ( http://mods.flying-bits.org/ )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();

page_header('Paypal');

$template->set_filenames(array(
   'body' => 'paypal_body.html')
);

page_footer();
?>


Create the paypal_body.html
Código: Seleccionar todos
<!-- INCLUDE overall_header.html -->
   <div id="page-body">
      <div class="forabg">

         <div class="inner"><span class="corners-top"><span></span></span>
         <ul class="topiclist">
            <li class="header">
               <dl class="icon">
                  <dt><span style="color: rgb(0, 0, 0); font-weight: bold;">Paypal</span></dt>
               </dl>
            </li>
         </ul>

         <ul class="topiclist forums">

      <li class="row">
         <dl class="icon">
            <dt>
               <a href="https://www.paypal.com" class="forumtitle">Make a Paypal-Donation</a><br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
   <input name="cmd" value="_xclick" type="hidden">
   <input name="business" value="nickvergessen@gmx.de" type="hidden">

   <input name="item_name" value="paypal donation for nickvergessen" type="hidden">
   <input name="no_note" value="1" type="hidden">
   <input name="currency_code" value="EUR" type="hidden">
   <input name="no_shipping" value="2" type="hidden">
   <input name="bn" value="PP-DonationsBF" type="hidden">
   <input name="tax" value="0" type="hidden">
   EUR
<!--
ISO 8859-1 character set overview
http://www.htmlhelp.com/reference/charset/
//-->
   <select name="amount">

      <option value="1.00">1.00</option>
      <option value="2.00">2.00</option>
      <option value="3.00">3.00</option>
      <option value="4.00">4.00</option>
      <option value="5.00">5.00</option>
      <option value="10.00">10.00</option>

      <option value="20.00">20.00</option>
      <option value="25.00">25.00</option>
      <option value="50.00">50.00</option>
      <option value="100.00">100.00</option>
   </select>
   <input src="http://mods.flying-bits.org/images/paypal.gif" style="border: 0px none ; background-color: transparent; padding-top: 6px;" type="image">
</form>

            </dt>
         </dl>
      </li>

         </ul>

         <span class="corners-bottom"><span></span></span></div>
      </div>
   made by <a href="http://www.flying-bits.org" title="nickvergessen">nickvergessen</a>
<!-- INCLUDE overall_footer.html -->


Alterar no teu caso esta parte / you may change these values in the style file
Código: Seleccionar todos
   <input name="business" value="nickvergessen@gmx.de" type="hidden">
   <input name="item_name" value="paypal donation for nickvergessen" type="hidden">

O ficheiro paypal.php coloca-se na raiz do fórum e o paypal_body.html na raiz do style/template(s)
The file paypal.php in the root and the paypal_body.html in your style/template(s)

Refresh your Styles, clear your cache.
Save all files. End of ADD-ON.