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
2013-02-23 20:49:09
change this in cleanup



//=== Remove donor status if time up and set class to power user ===//

$res = SQL_Query_exec("SELECT id, modcomment FROM users WHERE donor='yes' AND donoruntil < NOW() AND donoruntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res) > 0) {

       $dt = sqlesc(get_date_time());

       $subject = sqlesc("VIP status removed by System.");

       $msg = sqlesc("Your VIP status has timed out and has been auto-removed by the System. We would like to thank you once again for supporting " . $site_config['SITENAME'] . ". If you wish to re-new your VIP, you can do so by clicking [url=".%20%24site_config%5B"] . "/donate.php]HERE[/url]. Cheers!n");

       while ($arr = mysql_fetch_assoc($res)) {

               ///--- Autosystem modcomment ---//

               $modcomment = htmlspecialchars($arr["modcomment"]);

               $modcomment = gmdate("Y-m-d H:i") . " - VIP status removed by System.n" . $modcomment;

               $modcom = sqlesc($modcomment);

               SQL_Query_exec("UPDATE users SET class = '2', donor = 'no', donoruntil = '0000-00-00 00:00:00', modcomment = $modcom WHERE id = $arr[id]");

               SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject, poster) VALUES(0, $arr[id], $dt, $msg, $subject, 0)");

       }

}




to




 //=== Remove donor status if time up and set class to power user ===//

$res = SQL_Query_exec("SELECT id, modcomment,class FROM users WHERE donor='yes' AND donoruntil < NOW() AND donoruntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res) > 0) {

       $dt = sqlesc(get_date_time());

       $subject = sqlesc("VIP status removed by System.");

       $msg = sqlesc("Your VIP status has timed out and has been auto-removed by the System. We would like to thank you once again for supporting " . $site_config['SITENAME'] . ". If you wish to re-new your VIP, you can do so by clicking [url=".%20%24site_config%5B"] . "/donate.php]HERE[/url]. Cheers!n");

       while ($arr = mysql_fetch_assoc($res)) {

               ///--- Autosystem modcomment ---//

               $modcomment = htmlspecialchars($arr["modcomment"]);

               $modcomment = gmdate("Y-m-d H:i") . " - VIP status removed by System.n" . $modcomment;

               $modcom = sqlesc($modcomment);

               if ($arr["class"]<=3)   // Change this to your vip class if well diferent...

               SQL_Query_exec("UPDATE users SET class = '2', donor = 'no', donoruntil = '0000-00-00 00:00:00', modcomment = $modcom WHERE id = $arr[id]");

               else

               SQL_Query_exec("UPDATE users SET donor = 'no', donoruntil = '0000-00-00 00:00:00', modcomment = $modcom WHERE id = $arr[id]");



               SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject, poster) VALUES(0, $arr[id], $dt, $msg, $subject, 0)");

       }

}


[/code]
Unknown User
2013-02-23 21:55:56
THANKS!
Unknown User
2013-02-24 12:59:08
Thanks yes, this was a bummer one of my mods regularly donates lol and it kept dropping her to power user again lol
Unknown User
2013-03-22 09:12:35
hello,

or change the amount 5,10,20,30

on how to file thank you
Unknown User
2013-04-01 17:53:49


//Donor count down

if ($user[donor] == 'yes' && ($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");

} //$donoruntil != '0000-00-00 00:00:00'

else {

print("<b><p>Donated Status Until Removed Via Site Owner:)");

}

} //$user[donor] == 'yes' && ($CURUSER[id] == $user[id] || $CURUSER["class"] >= 6)

//====end




this not showing and

if ($user["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes")) { not in the in account-details you must have a dif from us as i get alot of error puing it where it should not
Unknown User
2013-04-01 18:18:52
i dont know your TT version you are prob using like 2.01 or something.. good luck.. like it says in the  section heading... TT v2.08 only[size=12px] - Completed Modifications for v2.08[/size]
Unknown User
2013-05-12 14:56:14
can I have some help here pls..... this code works perfect up tp the donate amount, but if say it was set to a 100, and that is met, it simply displays the msg "Monthly goal Met !" but I want it to just carry on e.g. 105%, 140% of monthly etc etc ?????

erm... no-one able to help????


<?php
begin_block(T_("DONATE"));
$totalneeded = "200"; //=== set this to your monthly wanted amount
$totalneeded3 ="$".sprintf("%01.2f", $totalneeded);
$month1 = sqlesc(gmdate("m"));
$year1 = sqlesc(gmdate("Y"));
$total_funds1 = SQL_Query_exec("SELECT sum(cash) as total_funds FROM `funds` WHERE month=$month1 && year = $year1");
$arr_funds = mysql_fetch_array($total_funds1);
$funds_so_far = $arr_funds["total_funds"];
$funds_difference = $totalneeded - $funds_so_far;
$Progress_so_far = $funds_so_far / $totalneeded * 100;

$Percent = $Progress_so_far;
$Percent = floor(($Percent) * 100 + .5) * .01;

if($Progress_so_far >= $totalneeded)
$Progress_so_far = "100";
$Progress_so_far2 = $Progress_so_far;
if ($funds_so_far <= 300){
$pic = "images/donate/loadbarred.gif";
$Progress_so_far2 = 20;
}
elseif ($funds_so_far <= 500)
$pic = "images/donate/loadbaryellow.gif";
else $pic = "images/donate/loadbargreen.gif";
if($totalneeded >= $funds_so_far) {
$monthly_goal = "" .round($Progress_so_far)."%";
$monthly_goal22 = " of monthly goal.";
}
else
$monthly_goal = "Monthly goal met! ]";


print("<center><table cellpadding=3 class=main border=0>".
"<td class=row3 align=center><p align=center>"."<table width=175 height=17 border=2><td width=$Progress_so_far2% height=15 background=$pic align=center valign=middle>".
"$monthly_goal</td><td style='padding: 0px; background-image:
url(images/donate/loadbarbg.gif); background-repeat: repeat-x'>".
"$monthly_goal22</td></tr></table> ".
"<a href="donate.php"><img src="images/donate/donate.gif"></a>");

print("</td></tr></table></center>");
end_block();
?>


Unknown User
2013-05-26 14:05:08
Doesn't anyone know how to do the above ??
Unknown User
2013-06-03 20:57:37
Thanks for another awesome mod guys! No trouble with this one.... yet ... Could be that I slept some haha! ...

I'm actually changing up the code some to make it more 'user friendly' as far as variables and stuff go. I'll post my version when I'm done with it and include the language mods with comments around them for your choosing! The least I could do to give back a little.

I did have one question though: What exactly does 'Free Download' mean. I noticed the variable is the same one used for the VIP so I assume it just means no wait times? The fact it is nowhere in paypal.php makes me assume the same too.

Thanks again!
Unknown User
2013-08-24 00:14:30
Salut

Tester ce code mais ca n'a pas marcher comme je l'esperais, la bar de progression ne marche pas et les donnees ne sont pas enregistrer quanf une personne faire un don.
Unknown User
2014-07-16 20:28:28
hmm... I ma having this issue, people donate but it gives them like 2x as long as they should get. So I have to go into phpmyadmin and set their donate untill date manually. Dunno if anyone else is having this issue.... any ideas how to fix???
Unknown User
2014-07-16 21:27:49
not sure, sounds like your paypal.php is crediting wrong or something.

I had to add all kind of checks to deal with stuff like charge backs.. And No i cant give those out lol its was highly customized to my site.
Unknown User
2014-07-21 19:58:01
Thanks[url="http://torrenttrader.org/user/33545-arcticwolf/"] ArcticWolf[/url] been looking for something like this and the install was a breeze  :)  for those wondering about paypal ban and or limited issues, first do not put torrent or your real site name its a tell tell of what the site is which with there rules they will ban, or limit your account simply use abbreviations of your site.

Example: Humming Bird Torrents = HBT ... So HBT should be your paypal account unless you take it through a business account like myself.

2.) do not have it forward back to your site let the user choose to go back, so no back to site url to add.

With this said you should be alright. some themes do not come with a login page so if someone would like to pm me a link to how to add just a login page would be nice.

Thanks.

Update i just found a small bug maybe a easy fix here is the code after input on the site.

//Layout
stdhead(sprintf(T_("USER_DETAILS_FOR"), $user["username"]));

begin_frame(sprintf(T_("USER_DETAILS_FOR"), $user["username"]));

if ($user["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes") || ($CURUSER["id"] == $user["id"])) {
    ?>
//Donor count down
    if ($user[donor] == 'yes' && ($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");
    } //$donoruntil != '0000-00-00 00:00:00'
    else {
    print("<b><p>Donated Status Until Removed Via Site Owner:)");
   }
   }

//$user[donor] == 'yes' && ($CURUSER[id] == $user[id] || $CURUSER["class"] >= 6)
   //====end
   
    <table align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
    <tr>
        <td width="50%"><b><?php echo T_("PROFILE"); ?></b></td>
        <td width="50%"><b><?php echo T_("ADDITIONAL_INFO"); ?></b></td>
    </tr>

    <tr valign="top">
        <td align="left">
        <?php echo T_("USERNAME"); ?>: <?php echo htmlspecialchars($user["username"])?><br />
        <?php echo T_("USERCLASS"); ?>: <?php echo get_user_class_name($user["class"])?><br />
        <?php echo T_("TITLE"); ?>: <i><?php echo format_comment($user["title"])?></i><br />
        <?php echo T_("JOINED"); ?>: <?php echo htmlspecialchars(utc_to_tz($user["added"]))?><br />
        <?php echo T_("LAST_VISIT"); ?>: <?php echo htmlspecialchars(utc_to_tz($user["last_access"]))?><br />
        <?php echo T_("LAST_SEEN"); ?>: <?php echo htmlspecialchars($user["page"]);?><br />
        </td>
and here is pic of user details looking at a members page maybe missing something here.



I did notice the

?>
under below code

if ($user["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes") || ($CURUSER["id"] == $user["id"])) {
    ?>
So if anyone has a fix please pm me thanks.

NEVER MIND ALL FIXED AFTER LOOKING AT THE CODE CAREFULLY IT ACTUALLY GOES IN FRONT OF THE ?> THANKS A BUNCH  :)

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7053"]account-details.php[/url]
account-details.php
Download
Unknown User
2014-07-22 01:48:59
ya has to go in front of the ?>

Heck even having the word torrent in your site name can lead to issues even if nothing to do with an torrent site...

And another tip if want paypal donations make sure xxx torrents not viable to general users.. Having xxx of any sort it an ban able offense with paypal.

My site you cant see much of anything except my logo and disclaimer at the bottom unless an member.   Helps keep spys are bay.

These sites where whole site is visible while an guest is just asking for issues.

My site has keep paypal for so long cause of these tips and the fact the address people donate to goes to an real person and not an business name..  If an name looks fake aka not an persons name then sets off all kinds of flags with paypal.
Unknown User
2014-10-04 14:56:24
So true ArcticWolf
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