Forum Moderators: coopster
Any ideas? Thanks!
global $current_user, $user_ID, $hidepost_content_text,$user_level, $m_id, $hidepost_role_text;
$m_id++;
preg_match_all('#\[hidepost(.*?)\](.*?)\[/hidepost\]#sie', $content, $matches);//Find the hidepost tag
$level_tag = $matches[1][$m_id];
$max_level = 0;
if ($level_tag[0] == '=') {
$max_level = $level_tag[1]; //Get the level require
//Get the level require
}
$pattern = '/\[hidepost=([^\]]+)\]/i';
if(preg_match($pattern, $string, $match)) {
echo '<pre>'; print_r($match); echo '<pre>';
} else {
echo 'No match!';
}