Quote:
Originally Posted by Coroner
I cannot found any "fetch_template" inside the xml ?
|
eval('$template_hook[postbit_userinfo_right_after_posts] .= "' . fetch_template('postbit_userlevel') . '";');
Is in every xml.
Complede User Level - Postbit Display start plugin code:
PHP Code:
PHP-Code des Plug-ins
global $vbulletin;
if ($vbulletin->options['userlevel_on'])
{
if (THIS_SCRIPT == 'private')
{
$up = $vbulletin->db->query_first ("SELECT posts,joindate FROM " . TABLE_PREFIX . "user WHERE userid=" . $this->post['fromuserid']);
$this->post = array_merge ($this->post, $up);
}
$hl = false;
$joindate = 0;
if ($this->post['userid'])
{
$joindate = $this->post['joindate'];
}
if ($vbulletin->options['userlevel_help']) $hl = true;
$jointime = (TIMENOW - $joindate) / 86400;
$exp = ceil ($this->post['posts'] * $jointime);
if ($exp != 0)
{
$level = pow (log10 ($exp), 2);
}
else
{
$level = 0;
}
$showlevel = floor ($level) + 1;
$nextexp = ceil (pow (10, pow ($showlevel, 0.5)));
if ($showlevel == 1)
{
$prevexp = 0;
}
else
{
$prevexp = ceil (pow (10, pow ($showlevel - 1, 0.5)));
}
$width = ceil ((($exp - $prevexp) / ($nextexp - $prevexp)) * 100) . 'px';
$needexp = vb_number_format ($nextexp - $exp);
$exp = vb_number_format ($exp);
$nextexp = vb_number_format ($nextexp);
eval('$template_hook[postbit_userinfo_right_after_posts] .= "' . fetch_template('postbit_userlevel') . '";');
}
Files downloaded: today
Error messages:
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3895
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3895
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3895