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 (Zatvorena) (Mono Support )

10196 put(a) pogledan, 5 odgovor(a) 23.10.2012. 5:51:58Kreirao(la) johnsamuel
johnsamuel

johnsamuel

23.10.2012. 5:51:58
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
Ovaj sadržaj još nije ocijenjen. 
429 Reputacija 46 Ukupno objava
kpeulic

kpeulic

23.10.2012. 7:48:01
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.
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava
johnsamuel

johnsamuel

23.10.2012. 10:12:21
thanks we'll try this
Ovaj sadržaj još nije ocijenjen. 
429 Reputacija 46 Ukupno objava
DanC

DanC

23.10.2012. 12:00:25
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!
Ovaj sadržaj još nije ocijenjen. 
85 Reputacija 9 Ukupno objava
kpeulic

kpeulic

23.10.2012. 12:05:19
Ok, I'm glad that you found solution. :-)
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava