Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Thanks before you can download (http://www.bvlist.com/showthread.php?t=12162)

elvira 26th September 2019 23:45

Thanks before you can download
 
Does someone have a code for Thanks before user can download, I found this one but not work here is code use in details.php


this is for comments



Quote:
");

$em = mysql_query("SELECT user FROM comments WHERE user = ".sqlesc($CURUSER['id'])." AND torrent = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
if ($CURUSER["id"] == $row["owner"]) $CURUSER["downloadpos"] = "yes";
if ($CURUSER["downloadpos"] != "no")
{
print("
Download");
if ($owned || ($em==1))
print("" . htmlspecialchars($row["filename"]) . "");
else
print("Sorry m8, First say thanks for all the work the uploaders did. CLICK HERE To sign your Thanks!!");

print("

papad 27th September 2019 18:30

Nothing that's so ever to do with your question above, however, i am sure Elena as well as a few more people would like to find out, like you said in your last topic https://www.bvlist.com/showthread.php?p=54130#post54130

Quote:

so must tested if is work or no
Did Elena edits work for you? just curious :drink:

Elena 27th September 2019 20:26

Quote:

Originally Posted by papad (Post 54132)
Nothing that's so ever to do with your question above, however, i am sure Elena as well as a few more people would like to find out, like you said in your last topic https://www.bvlist.com/showthread.php?p=54130#post54130

Did Elena edits work for you? just curious :drink:

No, I’m not editing, because I think it’s wrong to force people to say “Thank you!”
However, the code there is not complicated to close the "Download" button, but this is an additional request to the page, and it is so necessary to hammer the page with an extra request, and obviously not by one user, there will be several of them! :wallbash:

I am more interested in the previous topic, where I gave the code and asked what the last request means? There was no answer, very sorry.

elvira 27th September 2019 22:01

sorry Elena but I doesnt see your question and code you add still testing

Elena 28th September 2019 08:01

Quote:

Originally Posted by elvira (Post 54134)
sorry Elena but I doesnt see your question and code you add still testing

Your topic: https://www.bvlist.com/showthread.php?p=54130

What userfree in the request is responsible for:
Code:

$rz = mysql_query("SELECT id, uploaded, downloaded, class, userfree, parked FROM users WHERE passkey=".sqlesc($passkey)." AND enabled = 'yes' ORDER BY last_access DESC LIMIT 1") or err("Tracker error 2");
And the code that I gave works 100%. I offered you the best result with a minimum of costs and queries to the database. :coffee:

elvira 28th September 2019 12:19

Quote:

Originally Posted by Elena (Post 54135)
Your topic: https://www.bvlist.com/showthread.php?p=54130

What userfree in the request is responsible for:
Code:

$rz = mysql_query("SELECT id, uploaded, downloaded, class, userfree, parked FROM users WHERE passkey=".sqlesc($passkey)." AND enabled = 'yes' ORDER BY last_access DESC LIMIT 1") or err("Tracker error 2");
And the code that I gave works 100%. I offered you the best result with a minimum of costs and queries to the database. :coffee:


You can add a free download per user if you want can post my code here

Elena 28th September 2019 13:17

3 Attachment(s)
Quote:

Originally Posted by elvira (Post 54136)
You can add a free download per user if you want can post my code here

What? What is your code? I in that topic gave you a personal code that I have never even laid out on any of the forums.
And your code, to put it mildly, is too lethal for the database, because it kills it with numerous queries.

I understand that you have the line indicated by me there - a universal discount on all releases, for all users. But this is done in a completely different way, and not like yours.

elvira 28th September 2019 13:31

can you post and translate, thanks

Elena 2nd October 2019 20:05

Freelich, discounts on releases, double upload: https://home-hd.top/forum/viewtopic.php?f=53&t=90

I don’t want to translate, read on that forum.


All times are GMT +2. The time now is 12:28.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.