1
xsell
Exclude group from Command Post
  • 2009/9/5 5:59

  • xsell

  • Quite a regular

  • Posts: 245

  • Since: 2008/9/2 1


Hello

I use Shoutbox Module seems dead from Pretty longtime , anyway , in the Module u can limit the time between Messages , user must wait a specific time before post again .. I need to edit the code below to Exclude a Group of users from this limitation by the Group ID ..

// Check if time limit
     
$date time()-10;  // limited to 10s
   
$sql "SELECT name FROM ".$xoopsDB->prefix("post")." WHERE ip = '".$_SERVER['REMOTE_ADDR']."' AND date > ".$date;
   
$result $xoopsDB->query($sql);
   list(
$sval) = $xoopsDB->fetchRow($result);
   if ( 
$sval!="" ) {
   
redirect_header($Page "/index.php" 3,_MD_POST_LIMIT_TIME);
   }
       
$name $myts->makeTboxData4Save($_POST["name"]);
     
$comment $myts->makeTboxData4Save($_POST["comment"]);
    
$ip $_SERVER['REMOTE_ADDR'];

2
tank1955
Re: Exclude group from Command Post
  • 2009/9/8 0:16

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


I picked up Shoutbox development awhile back and we are now at v4.05. I don't recognize the section of code you pasted. It would help me if I knew which file this code appears in and what version of the module you are using.

Login

Who's Online

406 user(s) are online (293 user(s) are browsing Support Forums)


Members: 0


Guests: 406


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits