Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   New torrent in shoutbox (http://www.bvlist.com/showthread.php?t=8913)

Chez 24th February 2013 11:47

New torrent in shoutbox
 
New torrent showing in shoutbox:
In takeupload.php
Above this :

PHP Code:

header("Location: $BASEURL/details.php?id=$id&uploaded=1"); 

Add:

PHP Code:

////////new torrent upload detail sent to shoutbox//////////

$text "[color=red][b][i]New Torrent: [url=http://lastfile.1x.biz/details.php?id=$id] ".$torrent."[/url][/i][/b][/color][b][i][/i][/b][i][/i]";
$userid "105";
$username "uploader";
$date=time();
mysql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," sqlesc($userid) . ", " sqlesc($username) . ", $date, " sqlesc($text) . ")") or sqlerr(__FILE____LINE__);

/////////////////////////////END/////////////////////////////////// 

Create a System user and fill this lines with your data:

$text = "New Torrent: http://yourdomain.com/details.php?id=$id] ".$torrent."[/b]";
$userid = "System user ID";
$username = "Here goes SYSTEM username";

MRxp 24th May 2013 16:08

i had to change the $date=() to the below and works great

$date=sqlesc(get_date_time($ti));

hatijahat 7th November 2013 10:39

just want to share.
if someone use NexusPHP.
you can try this code, with same place paste the coding above.

Code:

$text = "New Torrent Uploaded : CLICK HERE! ".$torrent."";
$userid = "putyoursystemID";
$username = "SYSTEM";
//$date=time();
$date=time()-6;
mysql_query("INSERT INTO shoutbox (id, userid, date, text) VALUES ('id'," . sqlesc($userid) . ", $date, " . sqlesc($text) . ")") or sqlerr(__FILE__, __LINE__);

just remove "username" in the mysql_query line. :ok:


All times are GMT +2. The time now is 13:10.

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