Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   Shoutbox torrent detail (http://www.bvlist.com/showthread.php?t=11745)

modswat 14th September 2018 14:24

Shoutbox torrent detail
 
PHP Code:

////////new torrent upload detail sent to shoutbox//////////
$text "New Torrent Uploaded [size=3][color=red]".htmlspecialchars($torrent)."[/color][/size] please thank the uploader!!";
$userid "0";
$username "shoutbot";
$date=time();
mysql_query("INSERT INTO shoutbox (userid, username, date, text) VALUES (" sqlesc($userid) . ", " sqlesc($username) . ", $date, " sqlesc($text) . ")") or sqlerr(__FILE____LINE__);

/////////////////////////////END///////////////////////////////////
mysql_query("UPDATE users SET uploaded = uploaded + 3221225472 WHERE id = "$CURUSER['id']); 



I copyed this code in takeupload.php
In my shoutboxhttp://hublist.trance-hardstyle.nl/t...t/Naamloos.png

If i upload a torrent the announce works, but the user who is posting after is announcing the torrent.
How to fix this.

Napon 14th September 2018 17:15

Did you add user call it shoutBot must be id 2 and set up in php file's id 2
So it looks like this has
userid = "2";


If you do not it will call on the id of you....
so 0 id no good too you

modswat 14th September 2018 20:27

Fixed!! Thanks!

Napon 15th September 2018 00:01

Happy to help out


All times are GMT +2. The time now is 03:00.

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