Status
Not open for further replies.

scorps

Registered
Hello dear,

i come to you to know how i can add the adsence code and getting like this scrren (taked on pixelexit screen of Gamertime style) :
170122050438742536.png


and my second important question : How i can cut the header border ti get my background on all the page , i mean cut this parts of the header :
1485056211-capture-d-ecran-2017-01-22-a-04-35-33.png


thank you and hope to get an response quickly :)
 
For the ad we have some place holder code in the ad_header template. Open that and remove the surrounding xen:comment, then replace the link with your ad code.

Then to remove that background up top you'll want to:

Style Properties -> Header and Navigation -> Header, remove background image + repeat + position. Finally place this inside your extra.css:

Code:
.XenBase #header {
    border-bottom-width: 0px;
    box-shadow: none;
}

Additionally you may want to use our built in backstretch script for a better approach on the background so it will span 100% of the page. Take a look at: https://pixelexit.com/resources/setting-up-a-page-background.12/ for some more info.
 
thanks for responding , but dear ,

about ad code , i dont found the ad_header template .. i juste have this :
170122054331726562.png


sorry , my english is bad ... i must open on of this and add code ?
 
ok , i have this :

Code:
<xen:hook name="ad_header" />
<xen:if is="@xb_sl_header"><xen:include template="xb_social_links" /></xen:if>
<xen:comment>
<div class="topAd">
    <a href="http://pixelexit.com/"><img src="@imagePath/ad.gif" width="468" height="60"></a>
</div>
</xen:comment>
must remove all this and copy my adsence code ?
 
Yes now check my original post. Remove the surrounding xen:comment, and replace the link.

So you'll have:

Code:
<xen:hook name="ad_header" />
<xen:if is="@xb_sl_header"><xen:include template="xb_social_links" /></xen:if>
<div class="topAd">
   YOURADCODE
</div>
 
i juste did this ...
Code:
<xen:hook name="ad_header" />
<xen:if is="@xb_sl_header"><xen:include template="xb_social_links" /></xen:if>
<div class="topAd">
   <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Sous la banière -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-8780885583213404"
     data-ad-slot="4289903978"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

and got nothing , doesn't work ... :

forum : https://virtual-gaming.fr


PS : and about the background top .. i don't arrive too ... :(
 
For the background you just need to follow the directions exactly how I told you. As for the ad code I see the code but it's simply not loading, there may be a problem with the code or it could just take a bit.
 
i tied at first the old code of my old forum (first one) . and now i tried a new one :
170122123622264234.png


and doesn't work ..


EDIT : i tried your way to delete the parts of header but it deleted me at all ... all the header deleted .. and i don't want this .. i juste want to delete the right part and the left part as my screen
 
Last edited:
Well ... about background , i arrived tu cut the part but i have a probleme .. i want to get help please to reduce and cut this :
170122014023233777.png


(look at my purple arrow, if you can help me man tu delete this parts , it will arrange all for me)

thanks
 
Yes now check my original post. Remove the surrounding xen:comment, and replace the link.

So you'll have:

Code:
<xen:hook name="ad_header" />
<xen:if is="@xb_sl_header"><xen:include template="xb_social_links" /></xen:if>
<div class="topAd">
   YOURADCODE
</div>


Bro , i juste did this but it deleted me all the black header ...
and i dont want to delete it at all but only the right and left black header who come on the background but not the central black header with the logo (i dont want to remove this one)

i mean only delete this parts :

1485219756-capture-d-ecran-2017-01-24-a-02-01-51.png
 
OHHHH i juste arrive ! thanks russs .

i let the 'styles/gamertime/xenforo/sources/headerbg.png' , but i chose 'no repeate' and 'center center'

but i dont added anything on extra.css ... is it normal that it working ? .. ^^

ty and waiitng your response
 
About the adsence header , i juste added this :

Code:
<xen:hook name="ad_header" />
<xen:if is="@xb_sl_header"><xen:include template="xb_social_links" /></xen:if>
<div class="topAd">
   <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Virtual Gaming header -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-8780885583213404"
     data-ad-slot="8845585175"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

</div>

But it didnt work ... and the adsence code is 100% working cause i tested it in another place of the forum and it work ... :(
so hope to get solution
 
You may need to define a height on: .topAd.

Whatever the height of the ad:

.topAd { height: 68px; }

And please stop opening multiple threads about this issue :).
 
Status
Not open for further replies.

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back