[LON-CAPA-admin] Setting default colors

Todd Ruskell truskell at mines.edu
Thu May 15 13:44:28 EDT 2008


Thanks Stuart, the fix seems to be working great.

Todd

Stuart Raeburn wrote:
> The issue reported by Todd Ruskell is the result of bug in
> /home/httpd/lib/perl/Apache/domainprefs.pm
> 
> A fix is now available from CVS. Users with command line access to
> servers running 2.6.X will be able to apply the fix to domainprefs.pm.
>  Note: from LON-CAPA 2.5.0 onwards saved color choices for a domain etc.
> are stored in a GDBM file instead of a plain text file.
> 
> wget can be used to retrieve domainprefs.pm version 1.41.2.1 (suitable
> for use with LON-CAPA 2.6.X).
> 
> wget -O domainprefs.pm
> http://loncapa.msu.edu/cgi-bin/cvsweb.cgi/~checkout~/loncom/interface/domainprefs.pm?rev=1.41.2.1
> 
> 
> The existing /home/httpd/lib/perl/Apache/domainprefs.pm (rev 1.41)
> should be replaced with this newer file.
> 
> Alternatively, the existing (rev 1.41)
> /home/httpd/lib/perl/Apache/domainprefs.pm file could be edited
> directly.  The diffs are:
> 
> Change line 2015
> -    my @bgs = ('pgbg','mainbg','sidebg');
> +    my @bgs;
> 
> Lines add a new line at 2020, and at 2022
>          if ($role eq 'login') {
>              @images = ('img','logo','domlogo','login');
> +            @bgs = ('pgbg','mainbg','sidebg');
>          } else {
>              @images = ('img');
> +            @bgs = ('pgbg','tabbg','sidebg');
>          }
> 
> On Fedora/RHEL/Centos do:
> 
> /etc/init.d/httpd reload
> 
> 
> On SUSE/SLES do
> 
> /etc/init.d/apache reload
> 
> or
> 
> /etc/init.d/apache2 reload
> 
> (depending on version) after making the change.
> 
> Bug 5611 - http://bugzilla.loncapa.org/show_bug.cgi?id=5611 - is a
> separate issue most likely related to the way certain browsers (with
> certain encodings?) handle the # character from form input.
> 
> Stuart Raeburn
> MSU LON-CAPA group
> 
> Quoting Stefan Bisitz <st.bisitz at fh-wolfenbuettel.de>:
> 
>> Hi,
>>
>> Please also check
>> http://bugzilla.loncapa.org/show_bug.cgi?id=5611
>>
>> Stefan Bisitz
>>
>>
>> ----- Original Message -----
>> From: Gerd Kortemeyer <korte at lite.msu.edu>
>> Date: Wednesday, May 14, 2008 6:26 pm
>> Subject: Re: [LON-CAPA-admin] Setting default colors
>>
>>> Hi,
>>>
>>> Command line access should not be necessary anymore. Could you
>>> please
>>> describe what you did to change the colors, and what happened (or
>>> failed to happen)?
>>>
>>> Thanks!
>>>
>>> - Gerd.
>>>
>>> On May 14, 2008, at 5:43 PM, Todd Ruskell wrote:
>>>
>>> > I'm trying to set up new color schemes for our domain.  I've
>>> found the
>>> > place to do this as DC, but it seems that no matter what I do,
>>> the new
>>> > Background Header colors do not seem to be saved, or to take.  Is
>>>
>>> > there
>>> > a file I can edit from the command line?  I am fortunate enough
>>> to
>>> > have
>>> > root access to the server.
>>> >
>>> > Thanks,
>>> >
>>> > Todd
>>> >
>>> >
>>> > --
>>> > Dr. Todd Ruskell
>>> > Senior Lecturer, Department of Physics       Office:  Meyer Hall 326
>>> > Colorado School of Mines                     Phone: 303-384-2080
>>> > 1523 Illinois Street                         Fax: 303-273-3919
>>> > Golden, CO 80401
>>> > _______________________________________________
>>> > LON-CAPA-admin mailing list
>>> > LON-CAPA-admin at mail.lon-capa.org
>>> > http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
>>>
>>> _______________________________________________
>>> LON-CAPA-admin mailing list
>>> LON-CAPA-admin at mail.lon-capa.org
>>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
>>>
>> _______________________________________________
>> LON-CAPA-admin mailing list
>> LON-CAPA-admin at mail.lon-capa.org
>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
>>
> 
> 
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin

-- 
Dr. Todd Ruskell
Senior Lecturer, Department of Physics       Office:  Meyer Hall 326
Colorado School of Mines                     Phone: 303-384-2080
1523 Illinois Street                         Fax: 303-273-3919
Golden, CO 80401



More information about the LON-CAPA-admin mailing list