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) :


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 :


thank you and hope to get an response quickly :)
 

Russ

Pixel Exit Staff
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.
 

scorps

Registered
thanks for responding , but dear ,

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


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

scorps

Registered
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 ?
 

Russ

Pixel Exit Staff
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>
 

scorps

Registered
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 ... :(
 

Russ

Pixel Exit Staff
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.
 

scorps

Registered
i tied at first the old code of my old forum (first one) . and now i tried a new one :


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:

scorps

Registered
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 :


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

thanks
 

Russ

Pixel Exit Staff
For the bar, add this in extra.css:

Code:
#moderatorBar {
    max-width: @xb_page_width;
    margin: 0 auto;
}
 

scorps

Registered
i still have the moderation black bar out of the header ... so i really want to delete it .. so can i can assistance bro ? i tried all ..
 

scorps

Registered
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 :

 

scorps

Registered
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
 

scorps

Registered
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
 

Russ

Pixel Exit Staff
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 :).
 

scorps

Registered
i see but i must wrtie the ".topAd { height: 68px; }" after what ? where i must put this ?

link : www.virtual-gaming.fr (for now , i juste copy the adsence code , and didnt work)


Thanks dear and sorry for mutiple threads ..
 
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.