Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-19-2013, 09:11 AM   PM User | #1
nikita.gupta
New to the CF scene

 
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nikita.gupta is an unknown quantity at this point
Joomla: extract field from Jomsocial's profile field.

How should i extract fields from jomsocial (latest version 2.8) so i can showcase anywhere else in the profile? i'm planning to re-design the profile page.

I tried with this code in the profile.about.php but couldn't get it to function.

PHP Code:
<?php
$data 
= array( 'type' => 'textarea' 'value' => $user->getInfo('FIELD_ABOUTME') );
CFactory::load'libraries' 'profile' );
$value CProfileLibrary::getFieldData$data );
?>
<?php 
echo $value?>
Got error:
Quote:
Fatal error: Call to a member function getInfo() on a non-object in
I'm using jomsocial 2.8 and joomla 2.5. I'm not very familiar with php
nikita.gupta is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:05 AM.


Advertisement
Log in to turn off these ads.