Notice

This old forum is now only available for consultation/read. User accounts on this old website are blocked.
Please create a new account on seblod.com and use the new forum http://www.seblod.com/community/forums.
Apologies for this perturbation and thank you for your understanding!
Welcome, Guest
Username Password: Remember me

How get jseblod field value in joomla main templates
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How get jseblod field value in joomla main templates

How get jseblod field value in joomla main templates 3 years, 1 month ago #1

  • arsalan
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Life is a Game, Play it well and fair. Leave Result on God "Allah"
  • Posts: 41
Hi guys,

Can any one tell me the solution, that how can we show a value of jseblod field in joomla template, once again not jseblod template but in joomla template.

thanks a million in advance.
Best Regards,
Arsalan Khan

Re: How get jseblod field value in joomla main templates 2 years, 10 months ago #2

  • arsalan
  • ( User )
  • OFFLINE
  • Senior Boarder
  • Life is a Game, Play it well and fair. Leave Result on God "Allah"
  • Posts: 41
atleast some help.

i have already tried the given code but it does not works at all please correct and help me thanks. arsslan.
 
$user =& JFactory::getUser();
if ( $user->id ) {
$profileId = CCK_DB_Result( 'SELECT contentid FROM #__jseblod_cck_users WHERE userid='.$user->id );
$profile = CCK_GET_Value( $profileId, array( 'phone', 'country', 'nationality' ) );
$user->bind( $profile );
}
echo $user->country;
 
Best Regards,
Arsalan Khan
  • Page:
  • 1
Time to create page: 0.16 seconds