Instant Forum 2010-2 .NET Main navigation customization

Posted By vbaliaouri@analysts.com 14/06/2010 18:13:46
Rated stars based on 1 vote.
Add to Favorites3
Author Message
vbaliaouri@analysts.com
 Posted 14/06/2010 18:13:46
Respected Member

Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)

Group: Customers
Last Active: 22/06/2011 11:52:30
Posts: 2, Visits: 8
10
Hello

I installed InstantForum 2010 as a standard child directory using Visual Studio 2008.

I am trying to hide some of the menu items from the main navigation (everything except Search). I am using custom skin. There is an option  to modify controls for the skin using Admin InstantForum 2010 web site. Also it says that adding Visible="False" attribute will hide a tag. I am updating  mainnavigation.ascx file and there I made following changes:

                   <InstantASP:HyperLink id="hypHome" runat="server" Visible="False"/>                    
                    <InstantASP:SimpleMenu id="smSearch" MenuWidth="280px" runat="Server"/>                      
                    <InstantASP:HyperLink id="hypTags" runat="server" Visible="False"/>                      
                    <InstantASP:HyperLink id="hypCalendar" runat="server" Visible="False"/>
                    <InstantASP:HyperLink id="hypWhosOn" runat="server" Visible="False"/>                        
                    <InstantASP:HyperLink id="hypMembers" runat="server" Visible="False"/>                       
                    <InstantASP:HyperLink id="hypModeration" runat="server" Visible="False"/>
                    <InstantASP:HyperLink id="hypAdmin" runat="server" Visible="False"/>

There are no errors but change doesn't have any effect (nothing is changed in front end in main navigation).

Also I did try to change calendar.ascx file inside custom skin:

<InstantForum:Header id="ctlHeader" runat="server" Visible="False"/>

That didn't help in hiding main navigation as well.

Please advice. Thank you.

Vakhtang Baliaouri
Ryan Healey
 Posted 14/06/2010 18:47:53
I dont see much sun

I dont see much sun - (7,714 reputation)

Group: Administrators
Last Active: Yesterday @ 13:22:53
Posts: 2,339, Visits: 22,736
Hi Vakhtang,

Welcome to the forum :)

I would suggest the following within mainnavigation.ascx...

<InstantASP:SimpleMenu id="smSearch" MenuWidth="280px" runat="Server"/>    

<div runat="server" visible="false">
<InstantASP:HyperLink id="hypHome" runat="server" Visible="False"/>                    
<InstantASP:HyperLink id="hypTags" runat="server" Visible="False"/>                      
<InstantASP:HyperLink id="hypCalendar" runat="server" Visible="False"/>
<InstantASP:HyperLink id="hypWhosOn" runat="server" Visible="False"/>                        
<InstantASP:HyperLink id="hypMembers" runat="server" Visible="False"/>                       
<InstantASP:HyperLink id="hypModeration" runat="server" Visible="False"/>
<InstantASP:HyperLink id="hypAdmin" runat="server" Visible="False"/>
</div>

This should hide everything expect the search link / menu.

If I can assist with anything further please don't hesitate to respond,



Kindest Regards,

Ryan Healey
Founder and CTO

http://community.instantasp.co.uk/Uploads/Images/7e043dc3-463f-4f68-8ee0-f237.gif

Facebook | Twitter | Blog | Docs
12 tips to improve your customer support
vbaliaouri@analysts.com
 Posted 15/06/2010 07:00:27
Respected Member

Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)Respected Member - (10 reputation)

Group: Customers
Last Active: 22/06/2011 11:52:30
Posts: 2, Visits: 8
10
Hello Ryan

Very nice. That worked.

I should of find out by myself that I need to use runat='server' for <div>

Thank you very much for your time.

Vakhtang Baliaouri
Ryan Healey
 Posted 15/06/2010 16:36:58
I dont see much sun

I dont see much sun - (7,714 reputation)

Group: Administrators
Last Active: Yesterday @ 13:22:53
Posts: 2,339, Visits: 22,736
Always a pleasure. I'm pleased this helped :)


Kindest Regards,

Ryan Healey
Founder and CTO

http://community.instantasp.co.uk/Uploads/Images/7e043dc3-463f-4f68-8ee0-f237.gif

Facebook | Twitter | Blog | Docs
12 tips to improve your customer support
mariaTPG
 Posted 01/02/2012 11:10:13
Forum Guru

Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)

Group: Forum Members
Last Active: 30/04/2012 08:28:18
Posts: 5, Visits: 185
15
I'm trying to do this as well with 2012 Forum, but this does nothing (mainnavigation.ascx):
div id="Div1" runat="server" visible="false">
<InstantASP:HyperLink id="hypHome" runat="server" />
<InstantASP:SimpleMenu id="smSearch" MenuWidth="280px" runat="Server" />
<InstantASP:HyperLink id="hypTags" runat="server" />
<InstantASP:HyperLink id="hypCalendar" runat="server" visible="false"/>
<InstantASP:HyperLink id="hypWhosOn" runat="server" visible="false"/>
<InstantASP:HyperLink id="hypMembers" runat="server" visible="false"/>
<InstantASP:HyperLink id="hypModeration" runat="server" />
<InstantASP:HyperLink id="hypAdmin" runat="server" />
</div>


the visible "tag" does not seem to matter....
mariaTPG
 Posted 01/02/2012 15:33:29
Forum Guru

Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)

Group: Forum Members
Last Active: 30/04/2012 08:28:18
Posts: 5, Visits: 185
15
This works on the classic skin but not on the InstantASP skin. Any hotfixes?
mariaTPG
 Posted 02/02/2012 08:02:10
Forum Guru

Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)

Group: Forum Members
Last Active: 30/04/2012 08:28:18
Posts: 5, Visits: 185
15
Found out a way to achieve this: By commenting out the add of menu elements in the tabstrips.ascx.vb (CustomControls folder) and in addintion to remove the PM link on the login panel I commented out the PM hyperlink in the loginpanel.ascx file.

Its a workaround that worked...
:)
Ryan Healey
 Posted 03/02/2012 16:33:10
I dont see much sun

I dont see much sun - (7,714 reputation)

Group: Administrators
Last Active: Yesterday @ 13:22:53
Posts: 2,339, Visits: 22,736
Hi Maria, Good work. I'm sorry for my delay responding. Your quite right things work a little different in the InstantASP skin. The links along the top are built-up programmatically through the TabStrip controls code-behind within the CustomControls folder.

Whilst a little more complex than simply modifying an existing skin file this method does provide all the benefits of a standard user control so you can include custom code-behind. For example if you wanted to programmatically hide or show controls based if the user is authenticated or not.

If we can ever help with anything and you don't receive a quick response here never hesitate to email me directly on ryan@instantasp.co.uk. We'll have news on our 2012-1 update very soon :)



Kindest Regards,

Ryan Healey
Founder and CTO

http://community.instantasp.co.uk/Uploads/Images/7e043dc3-463f-4f68-8ee0-f237.gif

Facebook | Twitter | Blog | Docs
12 tips to improve your customer support
mariaTPG
 Posted 06/02/2012 14:53:44
Forum Guru

Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)Forum Guru - (15 reputation)

Group: Forum Members
Last Active: 30/04/2012 08:28:18
Posts: 5, Visits: 185
15
I would like to have regular members not see the who's on an so forth but the administrators should be able to. Any code suggestions?
Ryan Healey
 Posted 09/02/2012 17:21:25
I dont see much sun

I dont see much sun - (7,714 reputation)

Group: Administrators
Last Active: Yesterday @ 13:22:53
Posts: 2,339, Visits: 22,736
You don't need to make any code changes to enabe this.

You can use permission sets within the Admin CP to hide specific areas depending on your member group.

If your still having issues with this please don't hesitate to respond,



Kindest Regards,

Ryan Healey
Founder and CTO

http://community.instantasp.co.uk/Uploads/Images/7e043dc3-463f-4f68-8ee0-f237.gif

Facebook | Twitter | Blog | Docs
12 tips to improve your customer support

Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top