Ads in Gallery Pages

rated by 0 users
Answered (Verified) This post has 1 verified answer | 3 Replies | 1 Follower

Not Ranked
4 Posts
Points 50
coleda posted on Wed, Aug 1 2007 6:47 PM

Does anyone know how I can add ads to display throughout my gallery pages?  They are on the main page but I would like to see them on the image pages too.  Any help would be great.  Thanks!

Answered (Verified) Verified Answer

Top 10 Contributor
3,399 Posts
Points 65,060
CS Developers
Answered (Verified) Ben Tiedt replied on Fri, Jan 18 2008 7:41 AM

gmemik:
For 2.1 version please?

In CS2.1, you can add

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

and

<CS:AdPart runat = "Server" contentname="StandardBottom" ID="Adpart2">
     <CS:Ads Zone="StandardBottom" runat="server" id="Ads3" />
 </CS:AdPart>

to the photo gallery themes where you want the top and bottom ads to be displayed

Ben Tiedt's Blog

  • | Post Points: 5

All Replies

Top 10 Contributor
3,399 Posts
Points 65,060
CS Developers

You can add ads to the other gallery pages by editing the ASPX pages in web/themes/[theme name]/galleries. 

To add the standard ads to the page, you can register the Ad user controls by placing the following at the top of each page:

<%@ Register TagPrefix="CSUserControl" TagName="AdTop" Src="../Common/Ad-Top.ascx" %>
<%@ Register TagPrefix="CSUserControl" TagName="AdBottom" Src="../Common/Ad-Bottom.ascx" %>

and then placing the following where you want the "top" ad:

<CSControl:AdPart runat = "Server" contentname="StandardTop" ContentCssClass="CommonContentPartBorderOff" ContentHoverCssClass="CommonContentPartBorderOn">
 <DefaultContentTemplate>
  <CSUserControl:AdTop runat="server" />
 </DefaultContentTemplate>
</CSControl:AdPart>

and the following where you want the "bottom" ad:

<CSControl:AdPart runat="Server" ContentName="StandardBottom" ContentCssClass="CommonContentPartBorderOff" ContentHoverCssClass="CommonContentPartBorderOn">
 <DefaultContentTemplate>
  <CSUserControl:AdBottom runat="server" />
 </DefaultContentTemplate>
</CSControl:AdPart>

 

 

Ben Tiedt's Blog

  • | Post Points: 20
Not Ranked
2 Posts
Points 25
gmemik replied on Fri, Jan 18 2008 4:54 AM
For 2.1 version please?
  • | Post Points: 20
Top 10 Contributor
3,399 Posts
Points 65,060
CS Developers
Answered (Verified) Ben Tiedt replied on Fri, Jan 18 2008 7:41 AM

gmemik:
For 2.1 version please?

In CS2.1, you can add

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

and

<CS:AdPart runat = "Server" contentname="StandardBottom" ID="Adpart2">
     <CS:Ads Zone="StandardBottom" runat="server" id="Ads3" />
 </CS:AdPart>

to the photo gallery themes where you want the top and bottom ads to be displayed

Ben Tiedt's Blog

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

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