forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: sinaluna on November 28, 2005, 04:02:56 am

Title: Profile Fields not displaying
Post by: sinaluna on November 28, 2005, 04:02:56 am
I have designated custom fields for user profiles on the config page.  They appear to the user when they edit thier profile.  Yet they do not display when other users view that profile.

Can anyone help with this?  Why is the information not showing up?  Thank you.
Title: Re: Profile Fields not displaying
Post by: sinaluna on November 29, 2005, 06:47:23 am
Maybe this will help:

Debug Info:

USER:
------------------
Array
(
    [ID] => 1f7b5baf5638d2fb2fe533bd0fa890e5
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [uid] => 1
    [theme] => water_drop
    [search] => Array
        (
            [search] => blue
            [album] => search
            [newer_than] =>
            [older_than] =>
            [type] => AND
            [user1] => on
            [params] => Array
                (
                    [user1] => on
                )

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Kyndrid
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [uid] => 6
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 4.0.18
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.22 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support: 1

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 1
Active Links 2
Client API version 4.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .: | .:
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.081 seconds - 21 queries in 0.001 seconds - Album set : ; Meta set: ;


Notices:

/profile.php
Notice line 438: Undefined index: user_profile1
Notice line 439: Undefined index: user_profile2
Notice line 440: Undefined index: user_profile3
Notice line 441: Undefined index: user_profile4
Notice line 442: Undefined index: user_profile5
Notice line 443: Undefined index: user_profile6
Title: Re: Profile Fields not displaying
Post by: artistsinhawaii on November 29, 2005, 08:08:31 am
It's the same on mine, sinaluna.

It may be a bug.  Just got to be a little more patient until someone a little more familiar with this end of the script can get around to it.

Dennis
Title: Re: Profile Fields not displaying
Post by: Joachim Müller on November 29, 2005, 09:31:33 am
post a link to your site for a start please.
Title: Re: Profile Fields not displaying
Post by: Nibbler on November 29, 2005, 10:57:10 am
I noticed why this happens earlier. I'll go fix it.
Title: Re: Profile Fields not displaying
Post by: Nibbler on November 29, 2005, 11:09:30 am
bridge/udb_base.inc.php

find

Code: [Select]
$sql = "SELECT {$this->field['username']} AS user_name,
change to

Code: [Select]
$sql = "SELECT *, {$this->field['username']} AS user_name,
Title: Re: Profile Fields not displaying
Post by: artistsinhawaii on November 29, 2005, 11:18:06 am
I would have never thought of looking in there, thanks Nibbler.

Works perfectly, now.

Dennis
Title: Re: Profile Fields not displaying
Post by: sinaluna on November 30, 2005, 03:12:50 am
Thank you very much!   :)