I even modified the code to make it more like the way custom profile fields work, so I have the following in viewtopic:
- Code: Select all
while ($target = $db->sql_fetchrow($res))
{
include_once($phpbb_root_path . 'includes/functions_karma_p.' . $phpEx);
$ka = new karma();
$karma_cache = $ka->grab_karma_rank($target['user_karma']);
}
And the following at the beginning of the functions file now:
- Code: Select all
<?php
class karma
{
var $karma_cache = array();
function build_karma_cache()
{
global $db, $user, $auth;
$this->profile_cache = array();
}
function grab_karma_rank($karma1)
{
(and yes, I added a "}" at the end of the class
)But now, I get this problem:
- Code: Select all
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home.8/a/r/p/arpia/www/phpBB3/includes/functions_karma_p.php on line 14
(line 14, which happens to be the same line, the "function ?" line)




that thing is hyper critical of your code? you must be using IE to browse it 

Very Weird.







