Plugin:Display_Field_v1.2 need user_fields_x to be sorted too Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Plugin:Display_Field_v1.2 need user_fields_x to be sorted too

Started by Hassan, March 05, 2008, 03:01:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hassan

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.

Hassan

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.


Hassan


Hassan

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.

Nibbler


Hassan

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.