• 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: Get SobiPro item title

Get SobiPro item title 11 years 2 weeks ago #27319

  • pabilo50
  • pabilo50's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi, first congrats for all the components you make. Everyting is easier with them.

My problem is that i need to get the SobiPro title of the entry in which the form is.
I try to reprogram the code you put in the tutorial to get the user email of the entry:
//<code>
// Get the ID from the URL.
$id = JRequest::getVar('sobi2Id');

// Get a database connection.
$db = JFactory::getDbo();

// Setup the query.
$db->setQuery("SELECT `owner` FROM #__sobi2_item WHERE `itemid`='".$db->escape($id)."'");
$owner = $db->loadResult();

// A user ID has been found in the database.
if ($owner) {
// Get the owner's user properties.
$user = JFactory::getUser($owner);

// Return the email address.
return $user->get('email');
}
//</code>


Can anyone tell me how to modify this to get the entry title??

Thanks a lot!!!
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!