Hook call: function "TinyPortal\Integrate::hookProfileArea" in file /home/... could not be called.
The callable TinyPortal\Integrate::hookProfileArea could not be called.
Taking out this line out seems to have addressed those and there has been no more errors so far. Will keep an eye on it though. $hooks['pre_profile_areas'] = 'TinyPortal\Integrate::hookProfileArea';
public static function hookProfileArea(&$profile_areas)
{
global $txt, $context;
$profile_areas['tp'] = array(
'title' => 'TinyPortal',
'areas' => array(),
);
$profile_areas['tp']['areas']['tpsummary'] = array(
'label' => $txt['tpsummary'],
'file' => 'TPSubs.php',
'function' => 'tp_summary',
'icon' => 'menu_tp',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);
if (!$context['TPortal']['use_wysiwyg']=='0') {
$profile_areas['tp']['areas']['tparticles'] = array(
'label' => $txt['articlesprofile'],
'file' => 'TPSubs.php',
'function' => 'tp_articles',
'icon' => 'menu_tparticle',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
'subsections' => array(
'articles' => array($txt['tp-articles'], array('profile_view_own', 'profile_view_any')),
'settings' => array($txt['tp-settings'], array('profile_view_own', 'profile_view_any')),
),
);
}
else {
$profile_areas['tp']['areas']['tparticles'] = array(
'label' => $txt['articlesprofile'],
'file' => 'TPSubs.php',
'function' => 'tp_articles',
'icon' => 'menu_tparticle',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);
}
if(!empty($context['TPortal']['show_download'])) {
$profile_areas['tp']['areas']['tpdownload'] = array(
'label' => $txt['downloadsprofile'],
'file' => 'TPSubs.php',
'function' => 'tp_download',
'icon' => 'menu_tpdownload',
'permission' => array(
'own' => 'profile_view_own' && !empty($context['TPortal']['show_download']),
'any' => 'profile_view_any' && !empty($context['TPortal']['show_download']),
),
);
}
if(!$context['TPortal']['profile_shouts_hide']) {
$profile_areas['tp']['areas']['tpshoutbox'] = array(
'label' => $txt['shoutboxprofile'],
'file' => 'TPShout.php',
'function' => 'tp_shoutb',
'icon' => 'menu_tpshout',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);
}
}
QuoteIs this possible to set entire panel to have 75% for "Most liked posts" and 25% for "Recent posts" blocks?
Page created in 0.104 seconds with 29 queries.