Join the Facebook Fan Page.
Started by nneonneo, December 26, 2006, 06:58:11 PM
Quote from: nneonneo on March 05, 2007, 09:36:22 PM@Johnny:1) Disabling BBC: there are two spots in yshout/yshout.php where the code "[list]" (*with quotes*) is found. Add "[img" (no closing bracket) and whatever other tags you want to disable to *each* instance of the replacing code.It should look a bit like thisstr_replace(array("[list]",[*other replaces*],"[right]","[img")"",$newText));It will disable images, but please do note that some raw BBC will show through (unless you do some more advanced PHP stuff, like adding preg_replace).2) readChat is in yshout/yshout.php.3) Type /help impersonate to get help on that command. [/list][/list]
$fakeuser=array('id'=>$userid,'name'=>$name,'is_admin'=>($userlevel==2)?1:0,'is_mod'=>($userlevel==1)?1:0); // fake SMF $user array
$fakeuser=array('id'=>$userid,'name'=>$name,'is_admin'=>($userlevel==2)?1:0,'is_mod'=>($userlevel==1)?1:0,'is_logged'=>($userlevel==-1)?0:1); // fake SMF $user array
Quote from: JohnnyMcKinney on March 16, 2007, 10:29:07 PMAlso if I make it so no one can use the IMG tag does it come with an error message like "Sorry you are not permitted to use this code" or is it possible to make one?I am also confused by your answer?I don't think the BBC parser is able to distinguish different access levels, though if users have taken to abusing the image tag, you can add it to the BBC exclusion list (search for in yshout/yshout.php)Is that a yes? Cause it sounds different from the first answer or is that the same answer?
// YSHOUT HEREglobal $boardurl;
echo '<div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';