Quote:
Originally Posted by Lynne
templates only spit out results. You can't just copy a template and get the results. You need to copy the code also. I believe the code is in the groups.php page.
|
PHP Code:
// Get newest groups
$newgroups = fetch_socialgroup_newest_groups(false, false, !$vbulletin->options['sg_enablesocialgroupicons']);
$newgroupbits = '';
foreach ($newgroups AS $group)
{
$group = prepare_socialgroup($group);
($hook = vBulletinHook::fetch_hook('group_newgroup_bit')) ? eval($hook) : false;
eval('$newgroupbits .= "' . fetch_template('socialgroups_newgroup_' . ($vbulletin->options['sg_enablesocialgroupicons'] ? '' : 'listview_') . 'bit') . '";');
}
// Display groups that the current user created
if ($owngroup = fetch_owner_socialgroup($vbulletin->userinfo['userid'], $vbulletin->GPC['owngrouppage']))
{
$owngroup = prepare_socialgroup($owngroup);
($hook = vBulletinHook::fetch_hook('group_newgroup_bit')) ? eval($hook) : false;
eval('$owngroup = "' . fetch_template('socialgroups_owngroup_bit') . '";');
}
What Now? :S