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
donate_block.php
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2023-02-26 18:45:27
Hello and thank you botanicar I will do the tests tomorrow and come back to tell you what 😄
2023-02-27 17:58:25
Hello and I have just done the test and the member remains on the class vip once the time elapsed it does not automatically reset to the class member and I just saw that once the time elapsed the counter does not reset to 0 in the table donoruntil on the database I attach the 2 screenshots








there is a 1 hour difference between the time of the count of the site and in donoruntil of the database and the count works on the site but not in donoruntil on the database we would say that the function donoruntil in the database does not update automatically and once the count of the counter of the site arrives to 0,.. the count does not move on donoruntil and does not go to zero so the member remains in vip and is not demoted to the member class



Last edited by niki on 2023-02-27 18:32:59
2023-02-28 19:13:22
@niki
Have you formulated it in cleanup.php. perhaps!?


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2023-02-28 20:11:07
hello et  yes i did it but it doesn't work i'll look at it later when i have some day off and again thanks for your help  😉
2023-03-13 12:06:13
Thank you, when you enter the donation and the id of the donor everything is updated correctly including the guest, the go in upload, the seed bonus and the member goes to vip member but once the time expired it remains in the member class I attach the cleanup file

cleanup.php
Download
admin-modtasks.php
Download
account-details.php
Download
Last edited by niki on 2023-03-13 12:06:41
2023-03-13 14:22:24
Why is this bumping posts? Do you still need help?
2023-03-21 02:03:08
Please rearrange and formulate the topic in a separate topic
If it works fine
I really need this topic
2023-03-21 12:56:00
@leech24
can you be a little clearer mate, which part of this topic you need fully functional.
As you have noticed there are 2 or 3 different parts to it so tell me
- automatic donation (cannot help)
- manual donation (can help with)


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2023-04-05 16:59:58
Good evening I tried to put the piece of code below to see the progress of donations with a colored bar in the block donate_block.php but its bug so do you have an idea to make it work


code to add with the colored bar below

<div style="background-color:#CA0707 ;height:15px;width:<?php echo $target ?>%">
  <div style="background-color:#0BE82D;height:15px;width:<?php echo $Progress_so_far?>%"></div>




code donate_block.php

<?php
begin_block(T_("DONATE"));
$totalneeded = "100"; //=== 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 = mysqli_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 = " d'objectif mensuel.]";
}
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=220 hight=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.jpg\"></a>");

print("</td></tr></table></center>");
end_block();
?>
2023-05-01 23:09:52
Good morning

I wanted to put the super mode and I had to add these missing tables

ALTER TABLE users ADD COLUMN donor enum('yes','no') NOT NULL DEFAULT 'no',
ADD COLUMN total_donated int(10) UNSIGNED NOT NULL DEFAULT 0,
ADD COLUMN donoruntil datetime NOT NULL DEFAULT '0000-00-00 00:00:00';


I haven't finished but it seems to work
 question:: Does one of you have the management compilation in panel?

Thanks you! 👍
2023-06-01 07:52:51
Hello Can you tell me how to reset the donation bar?
2023-06-01 08:28:20
Hi @spiritblue
if you ask me about it I can answer to you like that:

1. Is it donor: NO
2. Donation lenght: 0
3. Donation amount: 0
4. Submit
Wait 1-2 secounds and taht's it



Regards mate




www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2023-06-01 14:55:23
Do you have success with donations? Is paypal risky?
2023-06-01 19:42:11
#1 thank you Botanicar !
from #2 I HAVE no module on my panel and yes I have donors and I have reached my goal of the month, but I wanted to start it again for another month
Last edited by spiritblue on 2023-06-01 19:42:46
2023-06-01 19:50:00
Hello friend STorrents2020

I had it deactivated my paypal and after more than 3 years I took them back and yes it works well to this day, but I prefer more interac, a direct payment from your bank account using the payment system to a friend with secret question that I created in my bank account

Exemple Interac:

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