Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Show Fields that are hidden in profile in a list
Date: 2005/11/27 18:44 By: krka Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 5
graphgraph
Hi,

I would like to hide some fields from users profiles but still make them available in the List Manager possibly for users that have higher priviledge than Registerd.

However as i can see as soon as i make a field unavailable in the Profile it also disapears from the fields to chose from in List Manager.

Krister
Click here to see the profile of this user The topic has been locked.

Re:Show Fields that are hidden in profile in a list
Date: 2005/11/27 19:12 By: nant Status: Admin  
Karma: 462  
Admin

Posts: 6004
graph
This is really a tips and trick post.

Ok, you can do what you want by following these steps:

  • Mark the field in question as 'show on profile'
  • Add the field to the list you want (via the List Management backend)
  • Go back to the field manager and makr the field as 'Do not show on profile'


I just tried it and it works just fine.
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The topic has been locked.

Re:Show Fields that are hidden in profile in a list
Date: 2005/11/27 19:34 By: krka Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 5
graphgraph
Hi,

Would work but it will also mean that private data is shown in profiles while doing the list editing.

I was more looking for a way to disable the hide from profile check inside list manager.

Krister
Click here to see the profile of this user The topic has been locked.

Re:Show Fields that are hidden in profile in a list
Date: 2005/11/27 19:56 By: nant Status: Admin  
Karma: 462  
Admin

Posts: 6004
graph
Yeah,
I guess during the 1-2 minute list editing process what you are saying is possible.
You can always put your site offline while you are doing this editing. But you are right - the correct way of doing it is as you describe. If you want please issue a feature request over at our project area on developer.joomla.com.
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The topic has been locked.

Re:Show Fields that are hidden in profile in a list
Date: 2005/11/29 22:09 By: JohnQM Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 2
graphgraph
Hi

I needed a way to make all fields available when creating a new list, wether or not those fields were hidden for profile.

I finally decided to hack the code so that all fields would always appear in the list management. Lists have access level settings, which is what I need to make those special fields only available to certain groups.

The hack is in
administratorcomponentscom_comprofileradmin.comprofiler.html.php

// 22-11-2005 : Fabian : removed f.profile = "1" so we always have all fields when creating new lists
/*
$database->setQuery( "SELECT f.fieldid, f.title, f.name"
. "nFROM #__comprofiler_fields f"
. "nWHERE f.published = 1 AND f.profile = 1"
. $sqlWhere
);
*/
$database->setQuery( "SELECT f.fieldid, f.title, f.name"
. "nFROM #__comprofiler_fields f"
. "nWHERE f.published = 1"
. $sqlWhere
);


That's working fine for me.
J.

Post edited by: JohnQM, at: 2005/11/29 16:09
Click here to see the profile of this user The topic has been locked.

Re:Show Fields that are hidden in profile in a list
Date: 2005/11/30 02:57 By: krka Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 5
graphgraph
Hi,

Thanx exactly the hack i was looking for.

FYI i submitted a feature request refering to this thread.

Krister
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login