Ads setup in CS is a breeze...

rated by 0 users
This post has 11 Replies | 2 Followers

Not Ranked
Posts 7
Points 305
imano Posted: Thu, Aug 18 2005 11:20 AM

Hi all,

I wanted to display a vertical ad bar on the right side of the forum list, and a horisontal banner on the bottom. I tried to figure it out through the settings control panel etc, but no luck. But when I finally figured it out, it is really, really simple. Setting up an ad rotator is equally simple.

Here are the steps:

  1. Go to Themes/default/Skins and open the file Skin-Ads.ascx
  2. Find the ad placement you want to use (you know what I mean when you open the file), and put the following line inside the span tag of your choice: <asp:AdRotator id="adRotator" runat="server" AdvertisementFile="ads.xml" Target="_self" />
  3. Leave the visible as false
  4. upload an xml file named ads.xml into the same folder as the Skin-Ads.ascx file, or the folder you specify in the ad-rotator attributes. See MSDN for details on the xml format
  5. Go to your CS site and enter the settings area. Here you need to enable ads.

Done!

 

Morten

EDIT: You won't see the ads if you are logged in as admin. So to see if this works, you have to log out. Thanks for reminding me, Joswalt Smile [:)]

  • | Post Points: 65
Not Ranked
Posts 32
Points 430
Sean T. replied on Thu, Aug 18 2005 7:38 PM
Great post. Thanks for the info. Yes [Y]
  • | Post Points: 20
Top 50 Contributor
Posts 354
Points 5,600
joswalt replied on Thu, Aug 18 2005 8:01 PM

I see a GoogleAdSense in the file, but I do not see anywhere in code to where this ad will be placed. Anyone know?

I also cannot get ads to show up in the StandardTop or StandardBottom. You also said to leave the Ad spans to visible=false. Why? Nothing shows up on the site. I have enabled Ads in the System Configuration.

  • | Post Points: 5
Top 50 Contributor
Posts 354
Points 5,600
joswalt replied on Thu, Aug 18 2005 9:01 PM

I figured out my problem. I forgot that you don't see the Ads if you are logged in as Admin. Is Ad setup in the wiki? If not, someone who knows more about the ad setup should add it to the wiki.

  • | Post Points: 20
Top 200 Contributor
Posts 123
Points 1,605
dimitrisv Crying [:'(] replied on Fri, Aug 19 2005 2:54 PM

In our case  google adsense ruins the page on internet explorer while it performs ok on opera

http://forum.olympiacos.org/forums

Now i will try to mess with div etc so that it may display properly...

 

 

It is a good divine that follows his own instructions; I can easier teach twenty what were good to be done than to be one of the twenty to follow mine own teaching. William Shakespeare
  • | Post Points: 5
Not Ranked
Posts 3
Points 45
tripnotic replied on Tue, Aug 23 2005 7:09 PM
imano wrote:

Hi all,

I wanted to display a vertical ad bar on the right side of the forum list, and a horisontal banner on the bottom. I tried to figure it out through the settings control panel etc, but no luck. But when I finally figured it out, it is really, really simple. Setting up an ad rotator is equally simple.

Here are the steps:

  1. Go to Themes/default/Skins and open the file Skin-Ads.ascx
  2. Find the ad placement you want to use (you know what I mean when you open the file), and put the following line inside the span tag of your choice: <asp:AdRotator id="adRotator" runat="server" AdvertisementFile="ads.xml" Target="_self" />
  3. Leave the visible as false
  4. upload an xml file named ads.xml into the same folder as the Skin-Ads.ascx file, or the folder you specify in the ad-rotator attributes. See MSDN for details on the xml format
  5. Go to your CS site and enter the settings area. Here you need to enable ads.

Done!

 

Morten

EDIT: You won't see the ads if you are logged in as admin. So to see if this works, you have to log out. Thanks for reminding me, Joswalt Smile [:)]

 I was looking for the Skin-Ads.ascx in the skins folder but I couldn't find it. But my folder has a file name called Skin-Banner.ascx. I put in the AdRotator controls. Also, added a folder of all of the ads and an xml file. I went to the configuration of the forum to look for ads setting to turn it on as you say but there is none. Later, I found out I didn't need to turn any setting on and the ads was working while logging in as an ADMIN. What forum version are you using? Mines is: version 2004.7.1707.

  • | Post Points: 5
Not Ranked
Posts 23
Points 325
Brad-G replied on Sat, Nov 12 2005 5:27 PM

Hello,

I have my website hosted through GoDaddy.com.  I just installed the community server feature through GoDaddy.  However, I am having trouble posting ads on pages other than the first page that appears on the Community Server.  I would like to be able to display ads on the side of my forums and blogs, but I cannot figure out how to do so. 

I found one post on here that says that I should go to Themes/default/Skins and open the file Skin-Ads.ascx.  My problem is that I cannot find this page.  I have tried adding it on to the url, but to no avail.  I have also tried signing onto my website through FTP so that I could see all of the files that are uploaded to my site, but it appears that no folder for community server has even been created!  Any ideas on how to proceed? 

Thanks!

  • | Post Points: 20
Not Ranked
Posts 7
Points 305
imano replied on Sun, Nov 13 2005 8:06 AM

Hi,

I also have my site at GoDaddy. But I had to do my own install of the communityserver, since the install they do for you is a shared one. You don't get access to the individual files.

But no worries, the installation of CS is a breeze. Just follow the easy documentation here and you're up and running in no time.

 

Morten

 

  • | Post Points: 20
Not Ranked
Posts 23
Points 325
Brad-G replied on Sun, Nov 13 2005 1:47 PM

Thanks for the reply, Morten.  I have been trying for the last several hours to get this up and running, but to no avail.  I first uploaded the "Web" folder as specified in the web-based installation instructions.  However, when I then try to browse to the specified installer file (default.aspx) by putting it into the URL, I get a "Runtime Error" message.  I cannot browse to any of the files that I just uploaded.  Any ideas of what might be the problem?  I am fairly new to CS, and so this is pretty frustrating.

Thanks!

  • | Post Points: 5
Not Ranked
Posts 2
Points 25

Hi,

I'm not wanting to use commercial ad banners to genrate revenue. I made my own banners at 486x60 pixels in jpeg format to promote specific pages on our website and for humor.

I finally got access to the lousy GoDaddy installed version of CS by using Wexlite. I made some emoticons and am successfully using those.

I want to rotate the banners I created, but I have tried and tried, and searched and searched, but can't get it to work right. Here's what I did with what Godaddy says is CS 2.1.

Turned on ads at the control panel

Made it that Administrators are not excluded from seeing ads (I log out to verify anyway)

Edited the Skin-Ads.ascx to the following -

NOTE: It doesn't work with the ads.xml in the same directory as the Skin_Ads.ascx and removing the URL from AdvertisementFile either.

<%@ Control Language="C#" %>
<span id="StandardTop" runat="server" visible="false">
<asp:AdRotator id="adRotator" runat="server" AdvertisementFile="http://www.mysite.com/ads.xml" Target="_self" />
</span>

<span id="Square" runat="server" visible="false">
</span>

<span id="Skyscraper" runat="server" visible="false">
</span>

<span id="StandardBottom" runat="server" visible="false">
</span>

<span id="GoogleAdsense" runat="server" visible="false">
</span>

<span id="Inline" runat="server" visible="false">
</span>

Put the ads.xml at the root of my site. Ads XML looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
    <Ad>
        <ImageUrl>http://www.mysite.com/correctdirectory/correcad.jpg</ImageUrl>
        <NavigateUrl>http://www.mysite.com/</NavigateUrl>
        <AlternateText>Ad Placed Here</AlternateText>
        <Impressions>50</Impressions>
        <Keyword>Alderson</Keyword>
    </Ad>
    <Ad>
        <ImageUrl>http://www.mysite.com/correctdirectory/correctad.jpg</ImageUrl>
        <NavigateUrl>http://www.mysite.com/another_page.htm</NavigateUrl>
        <AlternateText>Another Ad</AlternateText>
        <Impressions>50</Impressions>
        <Keyword>Mutt</Keyword>
    </Ad>
</Advertisements>

For the actual site and ads and folders I edited those for this post, but am sure of how I formatted them in the real files.

All I get on the CS site is ad placeholders that I can see as an administrator, but no ads no matter if logged in as admin, regular user, or not logged in. When I double click on the placeholder I can get a static banner by using HTML to do whatever I please, but even putting in the rotator stuff from the Microsoft MSDN site I still get nothing. I'm not sure what I need to do for the the code and its placement to call the ads.

Does anyone have the time to give me a little hand holding through this proces. I am reading and learning but not informed enough yet. I have just a little experience so far with CS, no coding experience, beginner HTML using FrontPage for our website.

Thank you

  • | Post Points: 5
Not Ranked
Posts 2
Points 25
It's been awhile and I haven't heard anything from anyone. Also, I need to know for the rotating ad thingy to work do I need to check the box for Inline Ad Control?
  • | Post Points: 20
Not Ranked
Posts 1
Points 5

For the most part I believe that you are pretty much on the verge of implementing rotating banners. I think you need to either remove the CS:AdPart wrapper around the Ads controls or just add in a new CS:Ads control. I am just starting to familiarize myself with the CS 2.1platform... But I am guessing that the CS:AdPart is used as some sort of wrapper around the inline editing capabilities.

 
 <CS:Ads ID="Ads2" Zone="StandardTop" runat="server" />

  <CS:AdPart runat = "Server" contentname="StandardTop" >  
    <CS:Ads Zone="StandardTop" runat="server" id="Ads1" />
  </CS:AdPart>
            

 

  • Filed under:
  • | Post Points: 5
Page 1 of 1 (12 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com