By Zeosing on Tuesday, 11 March 2014
Posted in Technical Issues
Replies 5
Likes 0
Views 1.3K
Votes 0
We built a simple code to display the staff´s users of a web , all works fine excep for the fact that popbox content doesn´t load .

<?php
require_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );


$ids = array('363', '367', '366', '365','364','371','370','456','461');


?>

<div class="Staff">
<?php foreach ($ids as $id) {
$user = Foundry::user($id);
?>
<img alt="<?php echo $user->getName();?>" src="<?php echo $user->getAvatar();?>" data-popbox="module://easysocial/profile/popbox" data-popbox-position="top-left" data-user-id="<?php echo $user ?>" />
<?php } ?>
</div>


file i located in subdomainroot/destiny/staff-list

We belive that is a problem with de module routing.

Thanks for the help ,
Hello Zeosing,

Your code is wrong


data-user-id="<?php echo $user ?>"


It should be


data-user-id="<?php echo $user->id; ?>"
·
Tuesday, 11 March 2014 21:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Is this on EasySocial pages? If it is not, you need to add these php scripts after requiring the main foundry.php file


<?php
// We also need to render the styling from EasySocial.
$doc = Foundry::document();
$doc->init();

$page = Foundry::page();
$page->processScripts();
·
Tuesday, 11 March 2014 20:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

With this code, the page doesn´t render, moreover the easysocial scripts loads in entire web because we use the easysocial toolbar as submenu, so the problem maybe is causes by path os module .

Thanks for the help.
·
Tuesday, 11 March 2014 20:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh men, what a silly mistake for my part, , and the more embarrassing it´s that we didn´t notice at all .

Well thanks a lot , and sorry for this stupid problem
·
Tuesday, 11 March 2014 21:56
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Zeosing
·
Tuesday, 11 March 2014 22:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post