MyBB Community Forums

Full Version: Hide part of the posts from GUESTS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I try to write my own Custom MyCode according to this rule:
http://community.mybb.com/thread-12008.html

I would like to add my own MyCode:
\[member\](.*?)\[/member\]

And the code is:
<?php
if($mybb->user['usergroup'] != 1)
{
  echo "Sorry Please follow read here to <a href=http://www.google.com>register</a>";
}
else
{
 echo $1
}
?>

But I find out that PHP wont work.

Do I have to write a plugin or something?
(2011-08-07, 07:43 PM)Malcolm. Wrote: [ -> ]http://community.mybb.com/thread-100794.html

This is close
But no exactly what I want
I want to hide a specific part of a post
not the last part of a post
I guess I need to read the source code
which process [b][size] etc