|
|
|
Junior Member
      
Group: Customers
Last Login: 02/12/2008 15:16:31
Posts: 20,
Visits: 208
|
|
| I have removed the right to add comments to all permission profiles, but now there is a message at the bottom of all articles that says "Comment require login or registration." I want to disable comments all together (I have no need for it). How can I remove this message at the bottom of all articles ? Regards, Geert Veenstra
|
|
|
|
|
IF.NET 4.2 Coming Soon
      
Group: Administrators
Last Login: 05/01/2009 11:53:33
Posts: 1,959,
Visits: 3,027
|
|
| Hi Geert, Hope your very well. To remove that message you'll need to modify the skin. Open "Skins\Classic\Controls\AddArticleComment.ascx" within NotePad or siilar ASCII editor and locate the following line... <table id="tblLoginRequired" width="100%" cellpadding="9" cellspacing="1" runat="Server"> Simply add a Visible="False" attribute to this table... <table id="tblLoginRequired" width="100%" cellpadding="9" cellspacing="1" Visible="False" runat="Server"> This will ensure the "login required" message is hidden is you disable comments within any tab, Hope this helps Geert,
 Kindest Regards,
Ryan Healey Director / Developer
Explore our products... http://demos.instantasp.co.uk/
|
|
|
|
|
Junior Member
      
Group: Customers
Last Login: 02/12/2008 15:16:31
Posts: 20,
Visits: 208
|
|
| Hi Ryan, That did not work. I ended up changing a bit more in addarticlecomments.ascx to remove the login message: <div class="Article_HeaderPanel"> <h2><InstantASP:Label ID="lblHeader" Text="AddArticleComments_Header" runat="Server" Visible="False" /></h2> Added Visible="False" to hide header </div> <InstantASP:Spacer runat="Server" /> <div class="Article_PanelContainer"> <div> removed class="Article_Panel" to prevent horizontal line when tblLoginRequired is not visible <table id="tblLoginRequired" width="100%" cellpadding="9" cellspacing="1" runat="Server"> <tr Visible="False"> Added Visible="False" to hide message (hiding the table itself did not work) <td class="Article_ExtraContainer"> <InstantASP:Label ID="lblLoginRequired1" Text="AddArticleComments_LoginRequired1" runat="Server" /> <InstantASP:HyperLink ID="hypLogin" Text="AddArticleComments_LoginRequired2" runat="Server" /> <InstantASP:Label ID="lblLoginRequired2" Text="AddArticleComments_LoginRequired3" runat="Server" /> <InstantASP:HyperLink ID="hypRegister" Text="AddArticleComments_LoginRequired4" runat="Server" />. </td> </tr> </table> I also created a seperate skin to prevent making the changes in the original skin. Thanks for your help. Regards, Geert Veenstra
|
|
|
|