Skip to content

Instantly share code, notes, and snippets.

@paulcoghlan
Created July 8, 2014 14:13
Show Gist options
  • Save paulcoghlan/5797459b4895d86f80cf to your computer and use it in GitHub Desktop.
Save paulcoghlan/5797459b4895d86f80cf to your computer and use it in GitHub Desktop.
phpbb blog changes
// Grab all profile fields from users in id cache for later use - similar to the poster cache
if ($config['user_blog_custom_profile_enable'])
{
if (!class_exists('custom_profile'))
{
include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
$cp = new custom_profile();
$profile_fields_cache = $cp->generate_profile_fields_template('grab', $users_to_query);
}
}
// Grab all profile fields from users in id cache for later use - similar to the poster cache
if ($config['user_blog_custom_profile_enable'])
{
if (!class_exists('custom_profile'))
{
include($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
$cp = new custom_profile();
}
}
$profile_fields_cache = $cp->generate_profile_fields_template('grab', $users_to_query);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment