View Single Post
  #1  
Old 8th March 2011, 07:26
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Talking System Notice - Forum reply and newthread
in /ts_ajax.php
for Quik reply

line 439
PHP Code:
mysql_query ('REPLACE INTO ' TSF_PREFIX . ('' 'threadsread SET  tid=\'' $tid '\', uid=\'') . $CURUSER['id'] . '\', dateline=\'' .  TIMENOW '\''); 
remplace by
PHP Code:
mysql_query ('REPLACE INTO ' TSF_PREFIX . ('' 'threadsread SET  tid=\'' $tid '\', uid=\'') . $CURUSER['id'] . '\', dateline=\'' .  TIMENOW '\'');
        
////
         
$seolink = ('' ''.$BASEURL.'//tsf_forums/showthread.php?tid=' sqlesc ($tid) . '');
         
$shoutbOT sprintf ('' $username ' vient de poster un  message dans le forum : [url='.$seolink.']' sqlesc ($subject) .  '[/url] .');
         
$shout_sql 'INSERT INTO shoutbox (userid, date, content)  VALUES (\'999999999\', \'' TIMENOW '\', ' sqlesc ('{systemnotice}'  $shoutbOT) . ')';
         
$shout_result sql_query ($shout_sql); 
.................................................. ..........

in tsf_forums/newreply.php
for advensive reply

remplace line 215
PHP Code:
(sql_query ('UPDATE ' TSF_PREFIX . ('' 'forums SET posts =  posts + 1, lastpost = ' $dateline ', lastposter = ' $username ',  lastposteruid = ' $uid ', lastposttid = ' $tid ',  lastpostsubject = ' $subject ' WHERE fid = ' $fid)) OR sqlerr  (__FILE__213)); 
for

PHP Code:
        (sql_query ('UPDATE ' TSF_PREFIX . ('' 'forums SET  posts = posts + 1, lastpost = ' $dateline ', lastposter = ' .  $username ', lastposteruid = ' $uid ', lastposttid = ' $tid ',  lastpostsubject = ' $subject ' WHERE fid = ' $fid)) OR sqlerr  (__FILE__213));
        
////
         
$seolink = ('' ''.$BASEURL.'//tsf_forums/showthread.php?tid=' sqlesc ($tid) . '');
         
$shoutbOT sprintf ('' $username ' vient de poster un  message dans le forum : [url='.$seolink.']' sqlesc ($subject) .  '[/url] .');
         
$shout_sql 'INSERT INTO shoutbox (userid, date, content)  VALUES (\'999999999\', \'' TIMENOW '\', ' sqlesc ('{systemnotice}'  $shoutbOT) . ')';
         
$shout_result sql_query ($shout_sql); 
............................................

in tsf_forums/newthread.php
for newthread ^^

line 132

remplace
PHP Code:
 if ($useparent)
      {
        (@
sql_query ('UPDATE ' TSF_PREFIX . ('' 'forums SET lastpost  = ' $dateline ', lastposter = ' $username ', lastposteruid = ' .  $uid ', lastposttid = ' $tid ', lastpostsubject = ' $subject '  WHERE fid = ' $realforumid)) OR sqlerr (__FILE__147));
      } 
by
PHP Code:
if ($useparent)
      {
        (@
sql_query ('UPDATE ' TSF_PREFIX . ('' 'forums SET lastpost  = ' $dateline ', lastposter = ' $username ', lastposteruid = ' .  $uid ', lastposttid = ' $tid ', lastpostsubject = ' $subject '  WHERE fid = ' $realforumid)) OR sqlerr (__FILE__147));
      }
      
///
        
$seolink = ('' ''.$BASEURL.'//tsf_forums/showthread.php?tid=' sqlesc ($tid) . '');
        
$shoutbOT sprintf ('' $username ' vient de creer un  nouveau sujet sur le forum : [url='.$seolink.']' sqlesc ($subject) .  '[/url] .');
        
$shout_sql 'INSERT INTO shoutbox (userid, date, content)  VALUES (\'999999999\', \'' TIMENOW '\', ' sqlesc ('{systemnotice}'  $shoutbOT) . ')';
        
$shout_result sql_query ($shout_sql); 
in version beta this french version...
Reply With Quote
The Following 9 Users Say Thank You to lafouine022 For This Useful Post:
Botanicar (8th August 2013), DARCK (27th June 2011), eckeO5 (14th January 2012), FENIX (26th January 2013), gabkoko (8th March 2011), gogo999 (11th November 2012), Marco (10th March 2011), PAX (15th January 2012), smoky28 (19th March 2011)