Need some guidance
Select messages from # through # Forum FAQ
[/[Print]\]

HeadShot Extreme -> Nuke Blocks / Modules Support

#1: No icon Need some guidance Author: illerkiller PostPosted: Fri Jan 20, 2023 9:16 pm
    —
Corpse the coding King! Can you point me in the direction on how to remove the area that I surrounded in the red from my website on the BF4_multi theme?

Expand

#2: No icon Re: Need some guidance Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat Jan 21, 2023 8:00 am
    —
Note: I wanted to point out that I will say "looks something like". The reason for this is the forums here does strip some of the code out, so being exact is slim. Also, I don't know if what I used for an example is stock. I do have a tendency to modify things.

This is an easy one, I've done it many times. Go into the theme folder and open the file theme.php.
Do a search for:

(Occurs twice):

PHP:  [ Select all ]

contentboxes(); 


Now, if you want the add if you have one to show up in the location, then you only want to cancel out the second one. So what you want to do is find the one that looks like:

PHP:  [ Select all ]

if (defined('HOME_FILE')) 
    {
        if ( 
$ThemeInfo['contentboxes'] == 'yes' 
        { 
            echo
'<div class="contentboxes">'
            
contentboxes(); 
            echo
'</div>'
        }
    } 

 
and wrap a /* */ around it so it looks like this:

PHP:  [ Select all ]

/*     if (defined('HOME_FILE')) 
    {
        if ( $ThemeInfo['contentboxes'] == 'yes' ) 
        { 
            echo'<div class="contentboxes">'; 
            contentboxes(); 
            echo'</div>'; 
        }
    } */ 

 
Now, if you dont want the banner ad to be there as well, (if you have one that is), then wrap both sections in the /* and */. I should look something like this if done right:

PHP:  [ Select all ]

/*    if (!empty($banners)){
        echo '<div id="adsmain">'."
";    
            echo ads(0);    
        echo '</div>'."
";        
    }    

     if (defined('HOME_FILE')) 
    {
        if ( $ThemeInfo['contentboxes'] == 'yes' ) 
        { 
            echo'<div class="contentboxes">'; 
            contentboxes(); 
            echo'</div>'; 
        }
    } */ 

 
You can see what I did on the example here:
Please login to see this link
Get registered or Log in

which shows me canceling out the banners and the content boxes.

#3: No icon Re: Need some guidance Author: Lonestar PostPosted: Sat Jan 21, 2023 8:56 am
    —
Easier way is to go into the theme administration, edit the BF4 Multi theme.

Look for "Display the content boxes" and set this option to "no" and save.

#4: No icon Re: Need some guidance Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat Jan 21, 2023 10:14 am
    —
That too, I completely forgot about that.

#5: No icon Re: Need some guidance Author: illerkiller PostPosted: Sun Jan 22, 2023 1:25 am
    —
Got it thanks fellas.



HeadShot Extreme -> Nuke Blocks / Modules Support


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Page 1 of 1