Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 24th February 2013, 11:47
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default 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";
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
The Following User Says Thank You to Chez For This Useful Post:
Marco (17th December 2014)
  #2  
Old 24th May 2013, 16:08
MRxp MRxp is offline
Member
 
Join Date: Aug 2008
Posts: 3
Default
i had to change the $date=() to the below and works great

$date=sqlesc(get_date_time($ti));
Reply With Quote
  #3  
Old 7th November 2013, 10:39
hatijahat hatijahat is offline
Senior Member
 
Join Date: Dec 2012
Malaysia
Posts: 43
Default
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.
Reply With Quote
Reply

Tags
shoutbox , torrent

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 22:49. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.