rofl not addon issue.. looks like your account got blocked and/or is wrong info. contact paypal.........................................................................
"Ravi.K, post: 84178":hey mate everything is okay and when i click on the donate button i'm getting a error in the paypal site as.
please help me guys..
Quote:// block pending echecks. paypal posts payments again when echecks clear, blocks double credits.
"ArcticWolf, post: 82900":Its not hard
in account-details
find
if ($user["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes")) {
after add
//Donor count down
if ($user[donor] && $CURUSER[id] == $user[id] || $CURUSER["class"] >= 6)
{
$donoruntil = $user['donoruntil'];
if ($donoruntil != '0000-00-00 00:00:00')
{
print("<b><p>Donated Status Until - $donoruntil");
if ($CURUSER["class"] < 6)
print(" [ " . mkprettytime(strtotime($donoruntil) - gmtime()) . " ] to go...</b><font size="-2"> to re-new donation click <a class=altlink href=donate.php>here</a>.</font></p>n");
else
print(" [ " . mkprettytime(strtotime($donoruntil) - gmtime()) . " ] to go...</b></p>n");
}
}
//====end
then in account
find
<b><?php echo T_("PASSKEY"); ?>:</b> <?php echo $CURUSER["passkey"]; ?><br />
after add
<b>Last <?php echo T_("DONATED"); ?>:</b> <?php echo $site_config['currency_symbol']; ?><?php echo number_format($CURUSER["donated"], 2); ?><br>
<b>Total <?php echo T_("DONATED"); ?>:</b> <?php echo $site_config['currency_symbol']; ?><?php echo number_format($CURUSER["total_donated"], 2); ?><br>
<?php if ($CURUSER['donoruntil']<>"0000-00-00 00:00:00 && ".htmlspecialchars($CURUSER['donor'])." == 'yes'")
echo "<b>Donor Until: </b> ".$CURUSER['donoruntil']." [ ".mkprettytime(strtotime($CURUSER['donoruntil']) - gmtime()); ?> ] to go...<br>
I of the other addons about donor stuff here has the cleanup to reset to power user once it expires.. use the search thats whats it here for!!!!!!!!!!!!!!!
//Donor count down
if ($user[donor] && $CURUSER[id] == $user[id] || $CURUSER["class"] >= 6)
{
$donoruntil = $user['donoruntil'];
if ($donoruntil != '0000-00-00 00:00:00')
{
print("<b><p>Donated Status Until - $donoruntil");
if ($CURUSER["class"] < 6)
print(" [ " . mkprettytime(strtotime($donoruntil) - gmtime()) . " ] to go...</b><font size="-2"> to re-new donation click <a class=altlink href=donate.php>here</a>.</font></p>n");
else
print(" [ " . mkprettytime(strtotime($donoruntil) - gmtime()) . " ] to go...</b></p>n");
}
}
//====end
"tiloup, post: 84701":dont really need that tech, the months counter thing only shows the current monthOops! or put this line please!? :blink:
//===clear funds after one month
$secs = date('t') * 86400;
$dt = sqlesc(get_date_time(gmtime() - $secs));
SQL_Query_exec("DELETE FROM funds WHERE added < $dt");
//===end
//Donor count down
if ($user[donor] && $CURUSER[id] == $user[id] || $CURUSER["class"] >= 6)
to
//Donor count down
if (($user[donor] == 'yes') && ($CURUSER[id] == $user[id] || $CURUSER["class"] >= 6))
if ($CURUSER["class"] == "7") {
begin_frame("VIP Donation Fix");
print("<form method=post action=admin-modtasks.php>n");
print("<input type=hidden name='action' value='donater_fix'>n");
print("<input type=hidden name='userid' value='$id'>n");
echo "<br /><br /><center><table border=0>";
echo "<tr><td align=right class=table_col1><b>" . T_("REASON") . ":</b> </td><td align=left class=table_col1><textarea cols=40 rows=5 name=reason></textarea></td></tr>";
echo "<tr><td align=right class=table_col1><b>Transaction ID (req):</b> </td><td align=left class=table_col1><input type=text size=30 name=txn_id></td></tr>";
echo "<tr><td align=right class=table_col1><b>Money (req):</b> </td><td align=left class=table_col1><input type=text size=10 name=money></td></tr>";
echo "<tr><td colspan=2 align=center class=table_col1><input type=submit class=btn_big value='Add Donation'></td></tr></table></center></form>";
end_frame();
} //$CURUSER["class"] == "7"
}
end_frame();
}
stdfoot();
?>
Change to }
end_frame();
if ($CURUSER["class"] == "7") {
begin_frame(T_("VIP_DONATION"));
print("<form method='post' action='admin-modtasks.php'>n");
print("<input type='hidden' name='action' value='donater_fix'>n");
print("<input type='hidden' name='userid' value='$id'>n");
echo "<br /><br /><center><table border='0'>";
echo "<tr><td align='right'><b>" .T_("REASON"). ":</b> </td><td align='left'><textarea cols='40' rows='5' name='reason'></textarea></td></tr>";
echo "<tr><td align='right'><b>Transaction ID (req):</b> </td><td align='left'><input type=text size=30 name=txn_id></td></tr>";
echo "<tr><td align='right'><b>Money (req):</b> </td><td align='left'><input type='text' size='10' name='money'></td></tr>";
echo "<tr><td colspan='2' align='center'><input type='submit' class='table_col2' value='Add Donation'></td></tr></table></form>";
end_frame();
} //$CURUSER["class"] == "7"
}
end_frame();
stdfoot();
?>"mostvotedplaya, post: 84065":If you want to be more accurate maybe use
That should return the number of days in the correct month.
$secs = date('t') * 86400;
if ($CURUSER["control_panel"] == "yes") {
Instead of
if ($CURUSER["class"] == "7") {
"ArcticWolf, post: 82207":Here is an basic donation addon that should work fine in 2.08
Original credit for donate,php and paypal.php goes to BigMax1.
I just modified it to be correct for just about any site and fixed some formatting.
1st: sql: add the following sql into your db with what ever you use to edit the db.
2nd:
DROP TABLE IF EXISTS `funds`;
CREATE TABLE IF NOT EXISTS `funds` (
`id` int(10) unsigned NOT NULL auto_increment,
`cash` decimal(8,2) NOT NULL default '0.00',
`user` int(10) unsigned NOT NULL default '0',
`added` datetime NOT NULL default '0000-00-00 00:00:00',
`month` varchar(10) default NULL,
`year` varchar(10) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
extract the enclosed zip file into the root of your site with folders and all.
New Update
http://devscorner.xyz/uploads/post-33545-0-28392100-1333921513.pnghttp://devscorner.xyz/uploads/post-33545-0-05794400-1333921524.png
3rd: edit backend/funds_config.php
$DONATEMAIL = 'change_this_email@change.this'; //Your Paypal email address here.
Edit: I fixed some issues if people try and donate if not logged in, in that case the person would have to pm someone to get the status set right.
List Of Most Reg Currencys
// List Of Most Reg Currencys
// Euro € EUR
// British Pound £ GBP
// Canadian Dollar $ CAD
// Polish Zloty $ PLN
// U.S. Dollar $ USD
Seems bigmax1 original post for entries that dont exist..
anyway:
in what ever you use to edit the db
ALTER TABLE `users` ADD `donoruntil` datetime NOT NULL default '0000-00-00 00:00:00';
ALTER TABLE `users` ADD `donor` enum('yes','no') NOT NULL default 'no';
ALTER TABLE `users` ADD `total_donated` int(10) unsigned NOT NULL default '0';
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5729"]tt_donation.rar[/url] New Update 05/05/2012
No users online
Torrents
Members
Online