Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Basic Donation Addon
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2012-07-14 14:33:53
rofl not addon issue.. looks like your account got blocked and/or is wrong info. contact paypal.........................................................................
Unknown User
2012-07-14 17:54:09
"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..

Your account is limited, i know this because they did it to a while ago.
Unknown User
2012-07-27 19:01:10
It's ok but I have a mp error and not auto credit the user :

Not Auto Credited Donation Recd

Pending Echeck

From: XXXXX Userid:21

Amount : XX.00 receiver

Payment Type: instant Payment Status: Completed
Unknown User
2012-07-27 19:17:13
Quote:
// block pending echecks. paypal posts payments again when echecks clear, blocks double credits.

It even says this in the file.
2012-08-11 20:18:59
"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!!!!!!!!!!!!!!!





I see nothing in this line?





//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


2012-08-11 20:30:43
Oops! 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
2012-08-11 20:35:01
Update donate.php add langues

French:

// Mode Don

$LANG["THANKS_YOU_DONATE"] = "Merci de visiter la page des dons ";

$LANG["SUPPORT_DON"] = "Si vous aimez notre tracker s'il vous plaît nous soutenir pour le garder en vie!";

$LANG["DONATE"] = "Donner";

$LANG["AND_RECEIVE"] = "Et vous recevrez";

$LANG["WEEKS"] = "Semaines";

$LANG["WEEKS_FREE_DL"] = "Semaine de téléchargement gratuit";

$LANG["GB_CREDITS_UP"] = "GB en crédits upload";

$LANG["INVITES_SITE"] = "Invitations sur le site";

$LANG["STATUS"] = "Statue";

$LANG["PM_ADMIN_DON"] = "Si vous ne recevez rien après un don, envoyer un MP ";

$LANG["HERE"] = "ICI";

$LANG["CONFIRMED_ACCOUNT"] = "pour confirmation et mettre à niveau votre compte";

$LANG["-IMPORTANT-"] = "- IMPORTANT -";

English:

// Mode Don

$LANG["THANKS_YOU_DONATE"] = "Thank You for visiting Donations page";

$LANG["SUPPORT_DON"] = "If you like our tracker please support us to keep it alive";

$LANG["DONATE"] = "Donate";

$LANG["AND_RECEIVE"] = "And you will receive";

$LANG["WEEKS"] = "Weeks";

$LANG["WEEKS_FREE_DL"] = "Weeks Free Download";

$LANG["GB_CREDITS_UP"] = "GB Upload Credits";

$LANG["INVITES_SITE"] = "Invites on our site";

$LANG["STATUS"] = "Status";

$LANG["Up_MP_ADMIN_DON"] = "If you don't receive anything after a donation send a PM ";

$LANG["HERE"] = "HERE";

$LANG["CONFIRMED_ACCOUNT"] = "for confirmation and upgrade your account";

$LANG["-IMPORTANT-"] = "- IMPORTANT -";

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5941"]donate.php[/url]
donate.php
Download

Unknown User
2012-08-11 20:41:37
"tiloup, post: 84701":
Oops! 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
dont really need that tech, the months counter thing only shows the current month

and other change



//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))



and well if you changed your classes ofcourse you would have to change 6 to what ever class you want viewing it.. stock classes its 1 below the top class
2012-08-12 05:43:11
upadate... lol

Search in account-details.php

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();



?>



Open Langues...

Anglish

$LANG["VIP_DONATION"] = "VIP Donation Fix";

French

$LANG["VIP_DONATION"] = "Fix de don pour VIP";

@+ :)
Unknown User
2012-08-12 08:35:05
"mostvotedplaya, post: 84065":
If you want to be more accurate maybe use



$secs = date('t') * 86400;

That should return the number of days in the correct month.





thanks for that  :)



i use or (edit_users)





i think it better that way.



if ($CURUSER["control_panel"] == "yes") {






Instead of







if ($CURUSER["class"] == "7") {

2012-08-12 13:59:39
THANKS YOU ARCTICWOLF :D
Unknown User
2012-08-16 12:10:26
"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.



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;

2nd:

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

THANKS ! :)
Unknown User
2012-10-10 14:14:41
Hi buddy , i have a question ?  This mod it is automated ?? put automaticly member in class VIP , and was vip time is ended  , i have to put manualy or the script make it auto change class ?
Unknown User
2012-10-10 23:22:06
1 the posts on page 2 has an cleanup code to auto demote once vip time has ended.
Unknown User
2012-10-11 15:09:11
thanks

[url="https://www.torrenttrader.org/user/33545-arcticwolf/"]ArcticWolf[/url]  a gonne a try this :)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728