View Single Post
  #86  
Old 4th April 2008, 07:11
trurl3 trurl3 is offline
Senior Member
 
Join Date: Mar 2008
Posts: 28
Default Re: Yuna Scatari v2.0 PRE7 RC0
Quote:
Originally Posted by KRoCk85
do you know how to make it so new torrents dont keep getting posted in the shoutbox,? thanks
In 'takeupload.php', on the very end of file, find code:
Code:
$text = "New Torrent: $BASEURL/details.php?id=$id";
$date=time();
mysql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," . sqlesc('0') . ", " . sqlesc('System') . ", $date, " . sqlesc($text) . ")");
and remove or better comment out this three lines. That's it. Some days ago I have done it in reverse - in YSE RC6 there is not showing new torrents in shoutbox :) Now I have it.

Edit: One more thing - originally info about new torrents in shoutbox is a little ....annoying with only torrent ID as information. On my site info shows name of the uploaded torrent, but to show name cost me live link to torrent. It is only text, not link. But for me it is ok.

Quote:
Originally Posted by KRoCk85
also kind of a big problem lol ... when users are registering ( this is with fresh code / sql )

Warning: Cannot modify header information - headers already sent by (output started at /home/thecrusa/public_html/themes/ANDiTKO/stdhead.php:4) in /home/thecrusa/public_html/include/functions.php on line 577
and it repeats 4 more times. try regging for yourself at thecrusade.us let me know how i can fix this please :)
I registered without any problems. DId not see this warning. But i was accused of attack :). Anyway regfistration was successful.