really not much has anything to do with it, its mostly just backend queries and other stuff. for example a donation template would look somthing like
PHP Code:
<form action="donate.php?$session[sessionurl]do=DoDonateMoney" method='post'>
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tr>
<td class='tcat' align='center' colspan='6' width='1%'><a style="float:right" href="#top" onclick="return toggle_collapse('donate_money')"><img id="collapseimg_donate_money" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>Donate Money!</td></tr>
<tbody id="collapseobj_donate_money" style="{$vbcollapse['collapseobj_donate_money']}">
<tr>
<td class='thead' align='center' width='50%'><b>Amount</b></td>
<td class='thead' align='center' width='50%'><b>To [Enter Username]</b></td>
</tr>
<tr>
<td class='alt1' align='center' width='50%'><input type='text' class='bginput' name='amount'></td>
<td class='alt1' align='center' width='50%'><input type='text' class='bginput' name='to' value='{$to}'></td>
</tr>
<tr>
<td class='tfoot' colspan='2' align='center'><input type='submit' value='Donate Money!' class='bginput'></td>
</tr>
</table>
</form>
and then the backend php file would look somthing like this
PHP Code:
<?php
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'donate');
//call the template
$actiontemplates = array('Donate' => array('itemshop_donate_money', ), );
// main DONATE
if ($_GET['do'] == "Donate") {
$navbits = array("itemshop.php?$session[sessionurl]&do=" . $Action => "Donate");
$navbits[""] = "Send Money To Members";
$to = $_GET['to'];
eval('$template .= "' . fetch_template('itemshop_donate_money') . '";');
}
// DONATE function [Money]
if ($_GET['do'] == "DoDonateMoney") {
$navbits = array("itemshop.php?$session[sessionurl]&do=" . $Action => "Donate");
$navbits[""] = "Sending Money";
$amount = $_POST['amount'];
$amount = str_replace(",", "", $amount);
$doname = $_POST['to'];
$doname = addslashes(htmlspecialchars_uni($doname));
if (!$user = $db->query_first("select * from " . TABLE_PREFIX . "user where username='{$doname}'")) {
// user dosent exist
eval(standard_error(fetch_error('error_shop_sendmtonoexist')));
}
if ($user_shop['userid'] == $vbulletin->userinfo['userid']) {
//user is self
eval(standard_error(fetch_error('error_shop_sendmtonoself')));
}
if ($amount < 0 || $amount == 0) {
//cant send 0
eval(standard_error(fetch_error('error_shop_sendmsomthing')));
}
if ($vbulletin->userinfo[$vbulletin->options['itemshop_pointfield']] - $amount < 0) {
//you dont have enough
eval(standard_error(fetch_error('error_shop_donthave')));
}
//take money
$db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['itemshop_pointfield']}={$vbulletin->options['itemshop_pointfield']}+'{$amount}' where userid='{$user_shop['userid']}'");
//give money
$db->query("update " . TABLE_PREFIX . "user set {$vbulletin->options['itemshop_pointfield']}={$vbulletin->options['itemshop_pointfield']}-'{$amount}' where userid='{$vbulletin->userinfo['userid']}'");
$vbulletin->url = "donate.php?$session[sessionurl]do=Donate" . $vbulletin->session->vars['sessionurl'] ."";
//donated successfully!
eval(print_standard_redirect('shop_r_donatesuccess', true, true));
}
?>
if you even have the slightest knowledge of php i think you can figure it out from there. If you need help there are some great resources in the modifaction tutorials forum!