PDA

View Full Version : Google adverts not showing on my theme?


Bluefin221
10-19-2014, 12:28 PM
Really looking for some help with this, my theme is heavily customised however I cannot get the google adverts to show up, I checked against the default theme and all that was missing was the following.

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}

I have added it and still the adverts don't show, they do not show on the footer or indeed the navbar page which shows directly under the navbar part of the site.

I have included my navbar code to see if someone else can see where I am going wrong.

<style>
.navtabs li a.navtab {
display: block;
float: left;
color: white;
text-decoration: none;
font-size: 130%;
font-style: normal;
font-weight: bold;
font-family: arial, helvetica, sans-serif;
padding: 0px 13px 0px 13px;

text-transform: uppercase;
}

.navtabs li#vsapaypal_donlink a {
color: black;

}

.un-article {
border: 1px solid #dadada;
border-bottom: 5px solid #dadada;
margin: 0px auto 10px auto;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}

.un-article .titre {
padding: 5px !important;
position: relative;
}

.un-article .infos {

background: url('/forums/images/styles/TimeTraveler/style/infos_bg.png') repeat-x;
font-size: 12px;
font-family: arial;
font-style: normal;
font-weight: normal;
font-variant: normal;
color: white;
padding: 0px;
height: 17px;
padding-bottom: 10px;
padding-left: 10px;}

.un-article .article {
padding-left:10px;
padding-right:10px;
overflow: hidden;
}

.un-article-seul {
margin: 0 auto;
}

#content h6 {
background-image: url("/forums/images/styles/TimeTraveler/style/barlogo.png"), url("/forums/images/styles/TimeTraveler/style/bg_h2.jpg");
background-position: right top, right top;
background-repeat: no-repeat, repeat;
height: 27px;
color: white;
text-decoration: none;
text-transform:uppercase;
font-size: 110%;
font-style: normal;
font-weight: bold;
font-family: arial, helvetica, sans-serif;
padding: 8px 0px 0px 8px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}

#content h6 span {
color: #fff;
position:relative;
top:5px;
}


</style>
<div id="navbar" class="navbar">
<div class="navLeft"><div class="navRight">

<ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
<li style="float:left;width:46px;"><a href="http://www.completegaming.net/" title="Homepage"><img src="/forums/images/styles/TimeTraveler/style/header-menu-home.png" style="position:relative; top:3px; left:2px;" alt="Home"></a></li>
{vb:raw template_hook.navtab_start}
{vb:raw navigation}
{vb:raw template_hook.navtab_end}
</ul>

</div></div>
</div>
</div>


</tr>
</tbody></table> </div>


<!-- closing div for above_body -->

{vb:raw show.dbtech_twitch_featured}
{vb:raw show.vbshout_instance1}



<!-- Custom Content Wrap -->
<div id="contentMain">
<div id="contentBox">
<div class="contentBoxLeft"><div class="contentBoxRight">
<!-- Custom Content Wrap End -->

<div class="body_wrapper">



<div id="breadcrumb" class="breadcrumb">
<div class="bcLeft"><div class="bcRight">
<ul class="floatcontainer">

<li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>

{vb:raw navbits.breadcrumb}
{vb:raw navbits.lastelement}
</ul>
<hr />
</div></div>
</div>

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}


<vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
<form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
<input type="hidden" name="do" value="dismissnotice" />
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<input type="hidden" name="url" value="{vb:raw return_link}" />
<ol>
{vb:raw notices}
</ol>
</form>
</vb:if>

I'd really appreciate some help with this if anyone could help at all.

ForceHSS
10-19-2014, 02:17 PM
Have you got any adblocker on your browser. If we can get a link to your site

Seven Skins
10-19-2014, 03:24 PM
I can see ads on this (http://www.completegaming.net/)site ... if that is the site in question.

ForceHSS
10-19-2014, 03:45 PM
See them as well on that site looks like he has some kind of adblocker on his browser

Bluefin221
10-19-2014, 04:16 PM
No, the ads show as I have called them in an iframe, but I want them through the actual site as intended by vBulletin itself, because since I switched theme and added through iframe my revenue has more than halved.

ozzy47
10-19-2014, 04:31 PM
If they show in a default style, and not the custom one, you need to contact the style dveloper and have them fix the problems with the coding of the style. :)

ForceHSS
10-19-2014, 05:44 PM
They seem to be in the default location on your custom style for me if the link in post 3 is your site

ozzy47
10-19-2014, 05:46 PM
They seem to be in the default location on your custom style for me if the link in post 3 is your site

Yeah as he stated:

No, the ads show as I have called them in an iframe, but I want them through the actual site as intended by vBulletin itself, because since I switched theme and added through iframe my revenue has more than halved.

But he wants them out of the iframe.

ForceHSS
10-19-2014, 05:48 PM
I see Ozzy I thought he wanted them in the default location

ozzy47
10-19-2014, 05:52 PM
Also if this is google ads, he will get banned from them.

AdSense code may not be altered, nor may the standard behavior, targeting or delivery of ads be manipulated in any way that is not explicitly permitted by Google. This includes but is not limited to the following: clicking Google ads may not result in a new browser window being launched, nor may Google ads be placed in an IFRAME.

Bluefin221
10-19-2014, 05:58 PM
Also if this is google ads, he will get banned from them.

[I]

Hence why I want to change. I want to get rid of the iframe, the theme developer cannot help as that is me, I customised this theme beyond recognition. But for the life of me I cannot get the ads to show by default the way vBulletin intends.

ozzy47
10-19-2014, 06:20 PM
I would start by installing the theme you modified as it came from the developer, and see if the ads show in the style the way the original developer coded the style. If the do, then you know it is a issue with your changes, if they don't show, then it is a issue with the original style.

Bluefin221
10-24-2014, 07:07 PM
Cam someone tell me what is the proper code to actually get these showing on the navbar to make sure I'm doing it correctly and not imagining things, tried to fix this a few times but its not happening for me.