MyBB Community Forums

Full Version: Google Adsense ad space how to add
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
İndex Templates Find 


{$header}

replace with 


{$header}
<table class="tborder" cellspacing="{$theme[borderwidth]}" cellpadding="{$theme[tablespace]}" border="0">
    <thead>
        <tr>
            <td class="thead">
                <strong><i class="fas fa-heart"></i> Advertisement</strong>
            </td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="trow1" align="center">
                *Google Adsense Code*
            </td>
        </tr>
    </tbody>
</table><br />


showthread Templates Find 

{$quickreply}

replace with 

{$quickreply}
<br />
<table class="tborder" cellspacing="{$theme[borderwidth]}" cellpadding="{$theme[tablespace]}" border="0">
    <thead>
        <tr>
            <td class="thead">
                <strong> <i class="fas fa-heart"></i> Advertisement</strong>
            </td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="trow1" align="center">
                *Google Adsense Code*
            </td>
        </tr>
    </tbody>
</table><br />
Is there a way I can add something like an Ad Blocker?
(2019-02-06, 05:12 PM)DevLife Wrote: [ -> ]Is there a way I can add something like an Ad Blocker?

Like a pop up that tells you to turn off Ad Blocker? There's plenty of scripts for such things. Google it, it doesn't have to be MyBB specific. Any Ad Block detection script will work, just add it into your template code.
(2019-02-08, 12:31 AM)Sharree Wrote: [ -> ]
(2019-02-06, 05:12 PM)DevLife Wrote: [ -> ]Is there a way I can add something like an Ad Blocker?

Like a pop up that tells you to turn off Ad Blocker? There's plenty of scripts for such things. Google it, it doesn't have to be MyBB specific. Any Ad Block detection script will work, just add it into your template code.

Yea but where do I find the script and put the code?
(2019-02-17, 04:30 PM)DevLife Wrote: [ -> ]Yea but where do I find the script and put the code?

https://www.detectadblock.com
https://blockadblock.com

Place it in templates > Your theme > ungrouped templates > headerinclude
Thank You Smile
Will this code use up all the space in the top(like this https://ibb.co/9tDScwJ)? What ad types its preferable to add in here?
(2019-02-20, 12:29 PM)vk_knight Wrote: [ -> ]Will this code use up all the space in the top(like this https://ibb.co/9tDScwJ)?  What ad types its preferable to add in here?

Those are newsbars announcements  https://community.mybb.com/mods.php?acti...w&pid=1109  
You can add Job Applications subscription announcements no ads on the newsbar.
 


This codes are to setup ads I don't think it takes up much space.
I meant in that space where the newsbars are right now.
(2019-02-21, 12:09 PM)vk_knight Wrote: [ -> ]I meant in that space where the newsbars are right now.

If you want an Ad where MyBB has announcement bars open Templates > Your theme > Header Templates > Header.

Place this below <navigation> (Any horizontal ad will work)

<br />
<table class="tborder" cellspacing="{$theme[borderwidth]}" cellpadding="{$theme[tablespace]}" border="0">
    <thead>
        <tr>
            <td class="thead">
                <strong>Advertisement</strong>
            </td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="trow1" align="center">
                *Google Adsense Code*
            </td>
        </tr>
    </tbody>
</table><br />
Pages: 1 2