Page 1 of 1

Cash mod Questions..

PostPosted: Wed Sep 20, 2006 12:39 pm
Author: Unregistered
am gettin this after setting up the cash mod.. when i click the viewtopic it receive this error..

[code]  Fatal error]
any idea how to fix this?

PostPosted: Wed Sep 20, 2006 6:03 pm
Author: Flex
post your file and I'll compare it with mine.

Re: Cash mod Questions..

PostPosted: Thu Sep 21, 2006 12:23 am
Author: Unregistered
dont think its the file problem.. but here u go the def_userfuncs_cash.php

Code: Select all
<php>currency_next($cm_i,CURRENCY_ENABLED | CURRENCY_VIEWTOPIC) )          {             $u_link = append_sid('cash.'.$phpEx.'?mode=modedit&ref=viewtopic&'.POST_USERS_URL.'='.$view_userdata['user_id'].'&'.POST_POST_URL.'='.$view_userdata['post_id']);             $l_name = sprintf($lang['Mod_usercash'],$view_userdata['username']);             $cash_amount = $c_cur->display($view_userdata[$c_cur->db()]).'<br>';              if (($userdata['user_level'] == ADMIN) || (($userdata['user_level'] == MOD)) )             {                 $txt .= '<b>' . '<a>' . $cash_amount . '</a></b>';             }             else                {                 $txt .= $cash_amount;                }          }             if ( $userdata['session_logged_in'] && (($cash->currency_count(CURRENCY_ENABLED | CURRENCY_EXCHANGEABLE) >= 2) || ($cash->currency_count(CURRENCY_ENABLED | CURRENCY_DONATE) && ($userdata['user_id'] != $view_userdata['user_id'])) || ($cash->currency_count() && (($userdata['user_level'] == ADMIN) || (($userdata['user_level'] == MOD) && $cash->currency_count(CURRENCY_ENABLED | CURRENCY_MODEDIT))))) )             {                 if ( $cash->currency_count(CURRENCY_ENABLED | CURRENCY_EXCHANGEABLE) >= 2 )                 {                     $temp_url = append_sid("cash.$phpEx");                     $txt .= '<a>' . $lang['Exchange'] . '</a>'.'<br>';                 }                 if ( $cash->currency_count(CURRENCY_ENABLED | CURRENCY_DONATE) && ($userdata['user_id'] != $view_userdata['user_id']) )                 {                     $temp_url = append_sid('cash.'.$phpEx.'?mode=donate&ref=viewtopic&'.POST_USERS_URL.'='.$view_userdata['user_id'].'&'.POST_POST_URL.'='.$view_userdata['post_id']);                     $txt .= '<a>' . $lang['Donate'] . '</a>';                       $img = '<a><img></a>';                 }             }         }       $res = pcp_output_format($field_name, $txt, $img, $map_name);    return $res; }   //-----------------------------------//// user_cash profile output function////-----------------------------------function pcp_output_cashpr($field_name, $view_userdata, $map_name=''){    if($map_name == null) global $map_name;    global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata;    global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields;    global $cash;      $txt = '';    $img = '';    $res = '';             if ( $board_config['cash_disable'])             {                 return;             }          while ( $c_cur = &$cash->currency_next($cm_i,CURRENCY_ENABLED | CURRENCY_VIEWPROFILE) )          {             $u_link = append_sid('cash.'.$phpEx.'?mode=modedit&ref=viewprofile&'.POST_USERS_URL.'='.$view_userdata['user_id']);             $l_name = sprintf($lang['Mod_usercash'],$view_userdata['username']);             $cash_amount = $c_cur->display($view_userdata[$c_cur->db()]).'<br>';              if (($userdata['user_level'] == ADMIN) || (($userdata['user_level'] == MOD)) )             {                 $txt .= '<b>' . '<a>' . $cash_amount . '</a></b></span>';             }             else                {                 $txt .= $cash_amount;                }                      }             if ( $userdata['session_logged_in'] && (($cash->currency_count(CURRENCY_ENABLED | CURRENCY_EXCHANGEABLE) >= 2) || ($cash->currency_count(CURRENCY_ENABLED | CURRENCY_DONATE) && ($userdata['user_id'] != $view_userdata['user_id'])) || ($cash->currency_count() && (($userdata['user_level'] == ADMIN) || (($userdata['user_level'] == MOD) && $cash->currency_count(CURRENCY_ENABLED | CURRENCY_MODEDIT))))) )             {                 if ( $cash->currency_count(CURRENCY_ENABLED | CURRENCY_EXCHANGEABLE) >= 2 )                 {                     $temp_url = append_sid("cash.$phpEx");                     $txt .= '<a>' . $lang['Exchange'] . '</a>'.'<br>';                 }                 if ( $cash->currency_count(CURRENCY_ENABLED | CURRENCY_DONATE) && ($userdata['user_id'] != $view_userdata['user_id']) )                 {                     $temp_url = append_sid('cash.'.$phpEx.'?mode=donate&ref=viewprofile&'.POST_USERS_URL.'='.$view_userdata['user_id']);                     $txt .= '<a>' . $lang['Donate'] . '</a>';                 }             }       $res = pcp_output_format($field_name, $txt, $img, $map_name);    return $res; }       ?>

Re: Cash mod Questions..

PostPosted: Thu Sep 21, 2006 1:05 am
Author: Flex
"Unregistered";p="15715" wrote:dont think its the file problem..


You're right, it's not <img>

PostPosted: Thu Sep 21, 2006 2:37 am
Author: Unregistered
thanks mate for popin up.. il do a fresh installation again..