MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Hide Time Zone (Closed) (Mono Support )

Viewed 8866 time(s), 5 post(s) 10/23/2012 5:51:58 AMby johnsamuel
johnsamuel

johnsamuel

10/23/2012 5:51:58 AM
We need to hide the time zone feature from all pages e.g. personal profile but cannot find a control to do this. Is there one? If not please recommend a solution. Thanks
This content has not been rated yet. 
429 Reputation 46 Total posts
kpeulic

kpeulic

10/23/2012 7:48:01 AM
You can find the time zone in two controls:
First control is "MonoX/ModuleGallery/ProfileModule/EditProfile.ascx". Open the file and search for this row:
<dd id="rowTimeZone" runat="server">
and set visible="false"
<dd id="rowTimeZone" runat="server" visible="false">
The second control is "MonoX\ModuleGallery\Membership\MembershipEditor.ascx" and you need to search for
<dd>
         <label for="<%= ddlTimeZone.ClientID %>"><%= DefaultResources.MembershipEditor_TimeZone %></label>
         <monox:TimeZonePicker id="ddlTimeZone" runat="server"></monox:TimeZonePicker>
</dd>
and just add style="display:none;" to the <dd>
<dd style="display:none;">
         <label for="<%= ddlTimeZone.ClientID %>"><%= DefaultResources.MembershipEditor_TimeZone %></label>
         <monox:TimeZonePicker id="ddlTimeZone" runat="server"></monox:TimeZonePicker>
</dd>
Please be aware that these changes will be overwritten with upgrade to the new MonoX version.
This content has not been rated yet. 
1849 Reputation 181 Total posts
johnsamuel

johnsamuel

10/23/2012 10:12:21 AM
thanks we'll try this
This content has not been rated yet. 
429 Reputation 46 Total posts
DanC

DanC

10/23/2012 12:00:25 PM
Hi KPEULIC,

visible="false" seems to have little effect on this or any other elements I have tried to hide!

However, style="display:none;" works a treat everwhere I have needed it so many, many thanks!
This content has not been rated yet. 
85 Reputation 9 Total posts
kpeulic

kpeulic

10/23/2012 12:05:19 PM
Ok, I'm glad that you found solution. :-)
This content has not been rated yet. 
1849 Reputation 181 Total posts