PHP Code:
function myplugin_main(&$page)
{
global $mybb;
switch($mybb->settings['fbslider_type'])
{
case 1 :
$script2 = '
HTML/JS CODE ';
$code2 = 'MY HTML CODE';
$page = str_replace("<body>", $script2."<body>".$code2, $page);
break;
default :
$script1 = ' HTML/JS code';
$code1 = 'CODE HTML';
$page = str_replace("<body>", $script1."<body>".$code1, $page);
}
}
I have a question, and so my point is that I have the plugin option in which the page is to display the item.
Now I want to add a new feature that would stretched out on which side (of the previous settings) is the element and the codes of the previous settings.
So, add a new option with this code:
PHP Code:
function myplugin_heh(&$page)
{
global $mybb;
switch($mybb->settings['myplugin_site'])
{
case 1 :
$scriptnew = '
CODE FROM PREVIOUS SETTINGS WITH A PARTY. ';
break;
default :
$scriptnew2 = 'NEW CODE';
}
}