• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Pull Jomsocial Custom Fields into RSForm

Pull Jomsocial Custom Fields into RSForm 13 years 7 months ago #14764

  • ricco.semento
  • ricco.semento's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
I've found the forum post that refers to pulling the name from a Jomsocial Profile into an RSForm field, and I also found how to take it from Community Builder.

But what Im interested in is pulling custom field information from Jomsocial into an RS Form.

For instance, Address, City State and Zip. Can anyone tell me what I would use to do this? I would assume its a varistion on one of these.

//<code>
$rsuser=JFactory::getUser();
$user=$rsuser->get('name');
return $user;
//</code>

or

//<code>
$my = & JFactory::getUser();
$db = JFactory::getDBO(); $myid = $my->id;
if ($myid > 0)
{
$db->setQuery("SELECT `firstname` FROM `jos_comprofiler` WHERE `user_id`='".$myid."' LIMIT 1");
$result = $db->loadResult();
}
return $result;
//</code>
The administrator has disabled public write access.

Pull Jomsocial Custom Fields into RSForm 11 years 4 months ago #25975

How did you do it? :(
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!