Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 24th May 2013, 08:52
MRxp MRxp is offline
Member
 
Join Date: Aug 2008
Posts: 3
Default Insert torrent upload into shout issue?
Im just having a play cos im bored lol

Im using tbdev08, trying to add torrent upload inserted into shout, i have done this BUT it inserts it at bottom of shout when text enters at top of shout

PHP Code:
////////new torrent upload detail sent to shoutbox//////////

$text "[color=red][b][i]New Torrent: [url=http://localhost/details.php?id=$id] ".$torrent."[/url][/i][/b][/color]";
$userid "7";
$username "Shoutbot";
$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/////////////////////////////////// 
I noticed that the code for entering text in shout is

PHP Code:
mysql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," sqlesc($userid) . ", " sqlesc($username) . ", $date, " sqlesc($text) . ")") or sqlerr(__FILE____LINE__);
print 
"<script type=\"text/javascript\">parent.document.forms[0].shbox_text.value='';</script>";
}

$res mysql_query("SELECT * FROM shoutbox ORDER BY date DESC LIMIT 200") or sqlerr(__FILE____LINE__);
if (
mysql_num_rows($res) == 0)
print(
"\n");
else
{
print(
"<table border=0 cellspacing=0 cellpadding=2 width='100%' align='left' class='small'>\n"); 
My question is how to make upload text insert at top same as chat ? any help is really appreciated.

Many thanks


update --- all fixed a simple $date=sqlesc(get_date_time($ti)); change & bob's your uncle

Last edited by MRxp; 24th May 2013 at 16:01. Reason: problemm solved
Reply With Quote
Reply

Tags
insert , issue , shout , torrent , upload

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 00:23. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.