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!
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
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>
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com