Removal of AddThis Service button from the layout master

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/2/2008 9:30:21 PM
Gravatar
Total Posts 6

Removal of AddThis Service button from the layout master

How do I remove the addthisbutton from the layout master page so that it doesn't show up?

 

Thanks,

Ben.

8/3/2008 4:16:08 AM
Gravatar
Total Posts 18439

Re: Removal of AddThis Service button from the layout master

Just open the layout.master file with a text editor and remove it.

Hope it helps,

Joe

8/3/2008 10:31:48 PM
Gravatar
Total Posts 6

Re: Removal of AddThis Service button from the layout master

I cannot find it.  If you don't mind pointing me in the right direction, here is my layout.master file:

 

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="~/App_MasterPages/layout.Master.cs" Inherits="mojoPortal.Web.layout" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server"><title></title>
<link href="../App_DesignTimeStyle/style.css" type='text/css' rel='stylesheet' />
<link href="../App_DesignTimeStyle/blogmodule.css" type='text/css' rel='stylesheet' />
<link href="../App_DesignTimeStyle/aspcalendar.css" type='text/css' rel='stylesheet' />
<link href="../App_DesignTimeStyle/stylemenu.css" type='text/css' rel='stylesheet' />
<link href="../App_DesignTimeStyle/styletreeview.css" type='text/css' rel='stylesheet' />
<portal:StyleSheet id="StyleSheet" runat="server" />
<portal:IEStyleIncludes id="IEStyleIncludes1" runat="server" />
<portal:MetaContent id="MetaContent" runat="server" />
<portal:Favicon id="Favicon1" runat="server" />
</head>
<body class="pagebody">
<form id="frmMain" runat="server">
<asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" />
<asp:SiteMapDataSource ID="PageMapDataSource" runat="server" ShowStartingNode="false" />
<asp:SiteMapDataSource ID="ChildPageSiteMapData" runat="server" ShowStartingNode="false" />
<asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server" />
<div id="wrapwebsite">
<div id="wrapheader">
<portal:SiteTitle id="SiteTitle" runat="server"></portal:SiteTitle>
<portal:SkipLink id="SkipLink1" runat="server" />
<portal:SiteMenu id="SiteMenu1" runat="server"
UseTreeView="false" UseSpanInLinks="true" HideMenuOnSiteMap="false"
Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>
<div class="topnav">
<ul>
<portal:WelcomeMessage id="WelcomeMessage" runat="server" RenderAsListItem="true" ListItemCSS="firstnav" />
<portal:HomeLink id="HomeLink" runat="server" RenderAsListItem="true" />
<portal:SiteMapLink visible="false" id="SiteMapLink2" runat="server" CssClass="sitelink" RenderAsListItem="true" />
<portal:MyPageLink id="MyPageLink1" runat="server" RenderAsListItem="true" />
<portal:UserProfileLink id="UserProfileLink" runat="server" RenderAsListItem="true" />
<portal:MailboxLink id="MailboxLink1" runat="server" RenderAsListItem="true" />
<portal:MemberListLink id="MemberListLink" runat="server" RenderAsListItem="true" />
<portal:RegisterLink id="RegisterLink" runat="server" RenderAsListItem="true" />
<portal:LoginLink id="LoginLink" runat="server" RenderAsListItem="true" />
<portal:LogoutLink id="LogoutLink" runat="server" RenderAsListItem="true" />
</ul>
</div>
<div class="editpanel">
<asp:contentplaceholder ID="pageEditContent" runat="server"></asp:contentplaceholder>
</div>
</div>
<div id="wrapcenter">
<asp:Panel id="divLeft" runat="server" cssclass="leftside" visible="false" SkinID="pnlPlain">
<portal:PageMenu id="PageMenu1" runat="server" UseTreeView="true" TreeViewShowExpandCollapse="true" />
<a id="startcontent"></a>
<asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
</asp:Panel>
<asp:Panel id="divCenter" runat="server" visible="true" cssclass="center-rightandleftmargins" SkinID="pnlPlain">
<portal:Breadcrumbs id="Breadcrumbs" runat="server"></portal:Breadcrumbs>
<portal:ChildPageMenu id="ChildPageMenu" runat="server" CssClass="txtnormal"></portal:ChildPageMenu>
<asp:ContentPlaceHolder ID="mainContent" runat="server"></asp:ContentPlaceHolder>
</asp:Panel>
<asp:Panel id="divRight" runat="server" visible="true" cssclass="rightside" SkinID="pnlPlain">
<asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>
</asp:Panel>
</div>
<div id="wrapfooter">
<br class="clear" />
<portal:SiteMapLink id="SiteMapLink1" runat="server" CssClass="sitemaplink" /> |
<portal:SkinPreview id="SkinPreview1" runat="server"></portal:SkinPreview><br /><br />
<portal:mojoPortalLink visible ="false" id="lnkmojoportal" UseImage="false" runat="server" /> |

</div>
</div>

</form>
</body>

8/4/2008 6:59:17 AM
Gravatar
Total Posts 18439

Re: Removal of AddThis Service button from the layout master

Hi,

I don't see it in the layout.,aster file you posted. It looks like this:

<mp:AddThisButton ID="at1" runat="server"
AccountId=""
ButtonImageUrl="~/Data/SiteImages/addthisbookmarkbutton.gif"
Text="Share This Using Popular Bookmarking Services"
CustomBrand=""
CustomLogoUrl=""
CustomLogoBackgroundColor=""

/>

However, be aware that the blog has its own add this buttons and doesn't use the one from layout.master. As long as AccountId="" and if you don't enter a setting for Add This in site settings > API keys nor in the blog module settings, add this button will not display even if it is present, because it is designed not to render if the account is blank.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.