How include a php into CB additional field

11 years 1 month ago - 11 years 1 month ago #222572 by jarecki74
Ther is possiblle some way to use php code on additional field in CB?

I try integrate rsform with CB and i need include data from rsform to cb

1 I install Sourcerer

2. I create additioan text field in CB

3. in CB field i insert code

{source}

<?php
// You can place PHP like this
$my = & JFactory::getUser();
$db = JFactory::getDBO();
if ($my->get('id'))
{
$db->setQuery("SELECT `email` FROM `#__users` WHERE `user_id`='".$my->get('id')."' LIMIT 1");
return $db->loadResult();
}


?>

{/source}

but this dont work :(

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.227 seconds

Facebook Twitter LinkedIn