InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



How to hide "Add your Comments" on... Expand / Collapse
Author
Message
Posted 28/07/2008 18:38:45
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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

Post #14091
Posted 31/07/2008 13:09:39


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.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/

Post #14102
Posted 02/08/2008 07:23:07
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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

Post #14117
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey

Permissions Expand / Collapse

All times are GMT, Time now is 11:55pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.031. 9 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.