I added 2 fields in registration form with profile 2 module :
Company-logo : $form['profile_employeers']['field_logo']
Company-description : $form['profile_employeers']['field_description']

I would like to get all values of this fields for all users having ['profile_employeers'] and apply CSS style and Javascript (I have this files) and display that in http://xxx/companys in a block or anything.

Plz i need a help !

Comments

dotmundo’s picture

These requirements are not very clear at all. Can you elaborate better?

Joekz’s picture

I created two registration forms for 2 types of profiles with profile2 module, each registration form contains different fields, among its fields, there
Company-logo: $ form ['profile_employeers'] ['field_logo']
Company-description: $ form ['profile_employeers'] ['field_description']
which belong to the company profile,
So what I want to do is that :
once a company registers, I get the value of company-logo and company-description, and I apply CSS and even a JS file to display this fields in a url for example:
  http: // xxx / companys

dotmundo’s picture

So in other words, you want to automatically load the correct logo for that company?

Joekz’s picture

whenever a company registers, I want to display its logo and its descrption in http: // xxx / companys combining this was my js file and css

dotmundo’s picture

Ok I am still not clear so if this needs to be done dynamically, then you should make a module and have an Ajax call to get that for you. If this is too appear after the user presses the submit the page refreshes, then you will still need to create a module to fetch the logo and description and post it back. If you are not a PHP coder, then I certainly cannot help you with that.