Few quickies

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
4/13/2011 1:15:19 PM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Few quickies

Hey guys,

I hope i'm having a mind blank / lack of being able to find information but I just have a few lil questions:

- We always uncheck the box that says "really delete users" as no doubt guys will delete the wrong accounts now and then. If the user that has been "deleted" tries to re register with the same addy, the email is already in use appears, which is expected. However, is there and easy way for an admin 1. to see the "deleted users" (can't see this in member list unless I specifically type their name into the search within the member list, nor does showing only locked out users filter them) and 2. a quick way to "reactivate" the deleted users? Got this on a site now and it's causing catch 22 issues, round in circles type job. I know I could actually delete them but I want site admins to be able to manage it.

- On this page: http://www.mojoportal.com/timezonelocalization.aspx I can see the setting to customise GMT offset (haven't implemented it yet as i've left the office now) but I'm wondering; does this set all new users' timezones within their profiles to use the GMT offset I supply in the config setting?

Thanks as ever.

Mark

4/14/2011 7:06:44 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Few quickies

Hi all

Any thoughts on this please? Just want to get back to one of our clients.

Thanks

Mark

4/14/2011 7:37:19 AM
Gravatar
Total Posts 18439

Re: Few quickies

Hi Mark,

The checkbox for really delete users was just implemented as a way to make it possible for the IT guy to bail the site admin out if he accidentally deletes a user. The IT guy can find the user in the mp_Users table and set the IsDeleted field to 0 to un-delete the user.

So you could find a list of deleted users with

SELECT UserID, Email from mp_Users WHERE SiteID = 1 and IsDeleted = 1

Then upon finding the UserID of the one you wanted to un-delete you could do

UPDATE mp_Users

SET IsDeleted = 0

WHERE UserID = thUserIDYouFoundBySearching

It was never intended as a way to casually delete and un-delete users from the UI and I don't really want to add such a feature. If your client is deleting them accidently frequently I would caution/train them to try to avoid doing that, it should be a very uncommon event. The main goal was so as not to lose data in cases where the user may have a purchase history etc.

Regarding the localization question, sorry that document is badly out of date. Back in the old days we used a timeoffset but currently we use a timezone id and we are able to adjust times correctly even during daylight savings time which varies by time zone and time of year (except under Linux/Mono where we still use the old offset way since we could not get the new way working).

User time zones are set on the user profile. When new users are created they get the site default time zone, unless they chose their own, but changing the site default timezone does not affect existing users.

You no longer have to worry about config settings for time zone localization it is done from site settings for the site default and from the user profile/user management page for users.

Hope it helps,

Joe

4/14/2011 7:53:22 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Few quickies

Hi Joe

That's great, thank you. Totally agree on the users front - it was a casual question from a client anyway so nothing major; absolutely think you're right.

I'll look at the timezone work then.

Thanks again

Mark

4/15/2011 5:34:23 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Few quickies

Hi Joe

Quick query on this please:

User time zones are set on the user profile. When new users are created they get the site default time zone, unless they chose their own, but changing the site default timezone does not affect existing users.

We've a few sites running the latest version of the system and we've got the timezone set to GMT in the site settings, yet on the Secure/Register.aspx page, the timezone dropdown still defaults to -5:00 GMT.

Have I missed something somewhere along the way?

Thanks

Mark

4/15/2011 5:54:15 AM
Gravatar
Total Posts 18439

Re: Few quickies

Hi Mark,

My bad, sometime I forget when I did things. In the currently available release, 2.3.6.4 the default for new users comes from the mojoProfile.config file in this setting:

<add name="TimeZoneId"
    type=""
        iSettingControlSrc="~/Controls/TimeZoneIdSetting.ascx"
        resourceFile="ProfileResource"
    labelResourceKey="TimeOffsetLabel"
        defaultValue="Eastern Standard Time"
    requiredForRegistration="true"
    regexValidationExpression=""
    regexValidationErrorResourceKey=""
    includeHelpLink="false"
      />

you can change Eastern Standard Time to GMT Standard Time

I guess it was after the release that I implemented it differently, I'm actually very close to a new minor update release. In the new release I have changed the default to blank in the setting configuration shown above, and in code if it is blank then it uses the site default.

So for now you can change this setting and after the next release you won't have to do anything it will then use your site default.

Best,

Joe

4/15/2011 5:57:16 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Few quickies

Ahhh ha, as ever you're a mine of info, thanks Joe.

You must sign in to post in the forums. This thread is closed to new posts.