Created
May 24, 2014 06:32
-
-
Save imarklee/34a1e1506c31033be2ca to your computer and use it in GitHub Desktop.
EasySocial: Retrieving user field data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php'); | |
$db = Foundry::db(); | |
$query = array(); | |
$query[] = 'select b.`data`, b.`raw` from `#__social_fields` as a'; | |
$query[] = 'inner joins #__social_fields_data as b'; | |
$query[] = 'on a.id = b.field_id'; | |
$query[] = 'and b.`type`=' . $db->Quote('user'); | |
$query[] = 'where a.`unique_key`=' . $db->Quote('THE_UNIQUE_FIELD_KEY'); | |
$db->setQuery($query); | |
$result = $db->loadObjectList(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment