Advanced search  

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

Pages: [1]   Go Down

Author Topic: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too  (Read 3919 times)

0 Members and 1 Guest are viewing this topic.

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26

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.
« Last Edit: March 05, 2008, 07:46:18 pm by Joachim Müller »
Logged

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
« Reply #1 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.

Logged

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
« Reply #2 on: March 07, 2008, 07:24:50 am »

atleast some hints will do the job :)
Logged

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
« Reply #3 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.


Code: [Select]
$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.
Logged

Nibbler

  • Guest
Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
« Reply #4 on: March 08, 2008, 12:55:48 pm »

It's not userX, it's user_fieldX_name.
Logged

Hassan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Plugin:Display_Field_v1.2 need user_fields_x to be sorted too
« Reply #5 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

It's not userX, it's user_fieldX_name.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.