forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Makc666 on June 09, 2006, 11:29:13 pm

Title: Charset Manager (charsetmgr.php) - missing conversion
Post by: Makc666 on June 09, 2006, 11:29:13 pm
In Charset Manager (charsetmgr.php) there is no any conversion for such strings in user's profile as:

Hm...

But I looked at the code of charsetmgr.php and found that there is line for 'user_location', 'user_interests', 'user_occupations'
Code: [Select]
            $affected_elements = array(
                                       $CONFIG['TABLE_ALBUMS'] =>
                                       array('aid', 'title', 'description', 'keyword'),
                                       $CONFIG['TABLE_PICTURES'] =>
                                       array('pid', 'title', 'caption', 'keywords'),
                                       $CONFIG['TABLE_COMMENTS'] =>
                                       array('msg_id', 'msg_author', 'msg_body'),
                                       $CONFIG['TABLE_CATEGORIES'] =>
                                       array('cid', 'name', 'description'),
                                       $CONFIG['TABLE_USERGROUPS'] =>
                                       array('group_id', 'group_name'),
                                       $CONFIG['TABLE_USERS'] =>
                                       array('user_id', 'user_name', 'user_password', 'user_location', 'user_interests', 'user_occupations')
                                       );
But when I run charsetmgr.php those fields are not affected.
Also. There is no any string for Biography...

Ah...
I found.

In database there are no such strings as 'user_location', 'user_interests', 'user_occupations'!

There are strings:
Title: Re: Charset Manager (charsetmgr.php) - missing conversion
Post by: Paver on June 10, 2006, 01:08:12 am
'user_location', etc. may have been from before you could rename the user profile fields.

This looks like a bug.
Title: Re: Charset Manager (charsetmgr.php) - missing conversion
Post by: Makc666 on June 10, 2006, 01:12:15 am
'user_location', etc. may have been from before you could rename the user profile fields.

These strings are used in Database.
They can't be renamed via CPG config panel.

I checked on clean CPG 1.4.*
It uses these strings.
Title: Re: Charset Manager (charsetmgr.php) - missing conversion
Post by: Paver on June 10, 2006, 01:19:55 am
Correct.  I was just trying to speculate why 'user_location' etc. were present in charsetmgr.php. 

This speculation is not relevant to the current state of Coppermine.  You are correct that the current fields should be 'user_profile1' etc.
Title: Re: Charset Manager (charsetmgr.php) - missing conversion
Post by: Paver on June 26, 2006, 07:09:52 am
Fixed & committed to stable & devel.  Will be in the next version (1.4.9).