• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Adding advertisements with template edits

Any update on this?
I would like to use Ads appear posted by a fake user but if i add the Code as described i get an error while adding a new thread (Thread will not be shown - Happens just if i add a new Thread)
 
I have added the following code to "ad_above_top_breadcrumb"
Code:
<div style="text-align: center; margin-top:8px;">
<script type="text/javascript"><!--
google_ad_client = "XYZ";
/* Header Ads */
google_ad_slot = "XYZ";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

But the ad overlaps the search box
you can see this page : http://db.theroadrollers.com/

What I might be doing wrong?
 
I have added the following code to "ad_above_top_breadcrumb"
Code:
<div style="text-align: center; margin-top:8px;">
<script type="text/javascript"><!--
google_ad_client = "XYZ";
/* Header Ads */
google_ad_slot = "XYZ";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

But the ad overlaps the search box
you can see this page : http://db.theroadrollers.com/

What I might be doing wrong?
It looks fine to me on the default style, and the grey style shows no ad.
adfine.webp

Edit: Gah, Brogan was faster than me ^^
 
temp.webp
Problem appears on resizing the browser window.
In the Grey stile I didn't as it didn't workout for me in the default style.

BTW I'm using resolution 1024 X 768
 
That's simply because there isn't enough width.

Set a larger minimum width on the fluid style in Style Properties -> General -> Page Width Controller

Or use a narrower advert.
 
Or put the ad here:

LOOOOOOOOOOOOGOOOOOOOOOOOOOOO

YOUR 728 x 90 AD BANNNNNNNER

FORUMS FORUMS FORUMS FORUMS SIDEBAR
 
hello, I put in fake user, but the problem is that it puts me throughout the conversation private, how to solve this problem thank you.
 
hello, I put in fake user, but the problem is that it puts me throughout the conversation private, how to solve this problem thank you.
Unless I have misunderstood, that has nothing to do with the thread subject.

If you have a problem with your installation, start a new thread in the troubleshooting forum.
 
I used the code for the fake user, but it puts me in the pub even private conversation.
how to remove advertising in private conversation?
 
Try wrapping the code in <xen:if is="{$contentTemplate} == 'find_new_threads'">adsense_code</xen:if>
 
Anyone? My Google adsense account works fine. I tryed avery ad I have running on other sites but it will not show up on my forum? Is there some small thing I have to click on?
Looks like, I cannot display Ads on my "Whats New" Page! Did you find out, what was causing your problem?
 
What's the easiest way of adding a tower/vertical ad at the left or right hand side of every page?
 
Is anyone having an issue with this code?

Code:
<xen:if is="{$post.position} == 0 AND !{$visitor.user_id}">
    <li class="message">
 
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder"><span class="avatar  av2m"><img  src="http://a3.twimg.com/profile_images/1090883135/xf_reasonably_small.png"  width="96px" height="96px"></span></div>
 
                <h3 class="userText">
                    Google
                    <em class="userTitle" itemprop="title">Adsense</em>
                </h3>
 
                <span class="arrow"><span></span></span>
            </div>
        </div>
 
      <div class="messageInfo primaryContent">
            <div class="messageContent">
                <blockquote class="messageText ugc baseHtml">
                    GOOGLE ADSENSE CODE GOES HERE
                </blockquote>
            </div>
          </div>
      </li>
</xen:if>

While the ad shows up great, if you attempt to do an in-line edit on the first post of the thread.... when you click save the 'Save Changes'' button, the first post goes away until you refresh the page.
 
Top Bottom