(2010-01-17, 11:39 PM)Nickman Wrote: (2010-01-17, 11:29 PM)faviouz Wrote: Now that I think of it, this will be very useful for remotely hosted forums. They can't upload files, so this really is nice.
Would be dangerous to allow them to use PHP though.
Nickman is right. It would be dangerous to allow PHP on a sharing MyBB installation.
If you really want to do this I suggest disable of PHP usage.
Open
pagemanager.php and find:
eval('?>'.$pages['template'].'<?');
Replace it with:
/*eval('?>'.$pages['template'].'<?');*/
echo $pages['template'];
Maybe it's a good idea to alter the language string
pagemanager_edit_form_framework_description and remove the following (because it's pointless then):
<strong>This will disable the possibility to use PHP in page content!</strong>
(2010-01-18, 03:07 AM)untitle Wrote: another question please
how to make use of MyCode and Smilies in page content?
This is not possible. Use HTML instead.
<img src="http://community.mybboard.net/images/smilies/smile.gif" alt="Smile" />
Maybe I can include an option to enable MyBB message parser in a next release. I will think about it...