coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: Hassan on March 05, 2008, 03:01:55 PM

Title: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
Post by: Hassan on March 05, 2008, 03:01:55 PM
Hi !

First of all thanks to Paver for the great plugin.
I am wodering If anyone can add the user fields to be sorted out too i.e. display only required fields to the user and all of the user fileds to admin.

Thanks in advance.
Title: Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
Post by: Hassan on March 05, 2008, 03:05:00 PM
At the moment I have 25 user fields, and all of them are working fine.
I want to display some of the user fields to users while all the fields to admins.

Title: Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
Post by: Hassan on March 07, 2008, 07:24:50 AM
atleast some hints will do the job :)
Title: Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
Post by: Hassan on March 07, 2008, 10:35:01 AM
I have added my "userfields" in this array in plugins/desplay_fields/codebase.php.
But its not showing on the page.


$fieldname_list = array('Filename', 'Album name', 'Keywords', 'File Size', 'Date Added', 'Dimensions', 'Displayed', 'URL', 'addFavPhrase', 'user1', 'user2','user3','user4','user5','user6','user7','user8','user9','user10','user11','user12','user13','user14','user15','user16','user17','user18','user19','user20','user21','user22','user23','user24','user25');
$i = 0;
foreach($fieldname_list as $field) {
$field_list[$i] = $lang_picinfo[$field];
$i++;
}



WHat do i do next.
Title: Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
Post by: Nibbler on March 08, 2008, 12:55:48 PM
It's not userX, it's user_fieldX_name.
Title: Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
Post by: Hassan on March 10, 2008, 09:29:55 AM
Ahh finally someone answered. Thanks Nibbler.

Can you please give me some hint how do I get the option of hidding/displaying user_fieldX_name as we have in display_Fields v1.2 plugin?
It would be a great help !

Thank you

Quote from: Nibbler on March 08, 2008, 12:55:48 PM
It's not userX, it's user_fieldX_name.