phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] proposal for demo sites


From: Dave Hall
Subject: Re: [Phpgroupware-developers] proposal for demo sites
Date: Fri, 12 Mar 2004 20:11:07 +1100

Forced prefs does this.  I think multilingual demos are important.

Don Graver provided a patch to allow this as a click option.  The other
option I would like to see is demo-<lang code> pass lang(guest) so the
lang change does not confuse people, but that will take some work to do
for each demo site,

Cheers

Dave

Thorsten Wiggers <address@hidden> wrote:

> Hi,
> 
> as we at probusiness noticed that there are often problems,
> concerning language preferences settings. Demo users often
> change the language to theire needs (as they should do). But 
> if the language is changed to an other than english e.g. 
> french, people like me ;) will possibly have problems changing
> the language to one they are able to read, as they don't know
> where.
> 
> I thought it would be a great idea to add an admin option which 
> is switched on if the site is a demo, and changes the preferences
> to predifined ones.
> 
> For our needs I have just added 3 lines in the login.php. 
> It checks which user is going to log in, and if it's a demo
> user the database is updated with the predefiened values. This
> way every user has a default language like e.g. english.
> 
> It's rather a hack then anything else so probably some of you 
> is interested in writing this little feature!? 
> It's just an impulse! 
> 
> Regards Thorsten
> 
> <- snip
> 
> if
> ($GLOBALS['phpgw']->accounts-
> >data['userid']=='demo'||$GLOBALS['phpgw']->acc
> ounts->data['userid']=='demo2'||$GLOBALS['phpgw']->accounts-
> >data['userid']=='demo3')
> {
> $GLOBALS['phpgw']->db->query("UPDATE phpgw_preferences SET
>
preference_value='a:4:{s:13:\"navbar_format\";s:14:\"icons_and_text\";s:4:\"
>
lang\";s:2:\"en\";s:12:\"template_set\";s:5:\"idots\";s:5:\"theme\";s:7:\"de
> fault\";}' WHERE
> preference_owner=".$GLOBALS['phpgw']->accounts->account_id." LIMIT 
> 1"); 
> }
> 
> snap -> 
> 
> 
> _______________________________________________
> Phpgroupware-developers mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
> 

Attachment: dave.hall.vcf
Description: Card for <dave.hall@mbox.com.au>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]