Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

new function

Ads
legends Offline referral

Posts: 7
Joined: Jan 2014
Reputation: 0

#1
Junior Member
PHP Code:
function myplugin_main(&$page)
{
    global 
$mybb;
    
    switch(
$mybb->settings['fbslider_type'])  
         {  
            
            case 
:
               
$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);
    }

Hi there.

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 
:
               
$scriptnew '    
CODE FROM PREVIOUS SETTINGS WITH A PARTY. '
;         
                  
                break;
            default :
    
$scriptnew2 'NEW CODE';         
    }

You may need to add a condition that will express which is the site? How to do it?
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
I am sorry but what this plugin is suppose to do, from your posts I can't really understand what are you trying to do. Please explain in more details what page are you talking about?
legends Offline referral

Posts: 7
Joined: Jan 2014
Reputation: 0

#3
Junior Member
So this:

I have the function of displaying the code on the left or right side of the page.

Well, now I want to do next Capability, which would include in a previous function (was reading it which side) + my new code.
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#4
Support Team
Hi listen this looks like mybb advanced sidebox mod you are talking about, if so try asking this same question on mybb, because to answer this question requires a knowledge of mybb forum script.
legends Offline referral

Posts: 7
Joined: Jan 2014
Reputation: 0

#5
Junior Member
Ok, I get it. Thank you.





User(s) browsing this thread: 1 Guest(s)