Charset Manager (charsetmgr.php) - missing conversion Charset Manager (charsetmgr.php) - missing conversion
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Charset Manager (charsetmgr.php) - missing conversion

Started by Makc666, June 09, 2006, 11:29:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Makc666

In Charset Manager (charsetmgr.php) there is no any conversion for such strings in user's profile as:

  • Location
  • Interests
  • Website
  • Occupation
  • Biography

Hm...

But I looked at the code of charsetmgr.php and found that there is line for 'user_location', 'user_interests', 'user_occupations'
            $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:

  • user_profile1
  • user_profile2
  • user_profile3
  • user_profile4
  • user_profile5
  • user_profile6

Paver

'user_location', etc. may have been from before you could rename the user profile fields.

This looks like a bug.

Makc666

Quote from: Paver on June 10, 2006, 01:08:12 AM
'user_location', etc. may have been from before you could rename the user profile fields.

These strings are used in Database.

  • user_profile1
  • user_profile2
  • user_profile3
  • user_profile4
  • user_profile5
  • user_profile6
They can't be renamed via CPG config panel.

I checked on clean CPG 1.4.*
It uses these strings.

Paver

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.

Paver

Fixed & committed to stable & devel.  Will be in the next version (1.4.9).