Topic: Profile.pbp for cash mod help

Hello peer's i have done the viewtopic.php , post.pbp & the common.php for this mod but when..

i do the profile one it does not work..

the read me file with the cash mod say's
--------------------------------------------------

profile.php

#
#---------[ 17. FIND (line:698) ]---------------------------------------------------
#

                // We only allow administrators to update the post count
                if ($pun_user['g_id'] == PUN_ADMIN)
                    $form['num_posts'] = intval($_POST['num_posts']);

#
#---------[ 18. REPLACE WITH ]---------------------------------------------------
#

                // We only allow administrators to update the post count
                if ($pun_user['g_id'] == PUN_ADMIN) {
                    $form['num_posts'] = intval($_POST['num_posts']);
                    $form['cm_cash'] = intval($_POST['cm_cash']);
                    $form['cm_bank'] = intval($_POST['cm_bank']);
                }
#
#---------[ 19. FIND (line:~888) ]---------------------------------------------------
#

$result = $db->query('SELECT u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.use_avatar, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.save_pass, u.notify_with_post, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

#
#---------[ 20. REPLACE WITH ]---------------------------------------------------
#


$result = $db->query('SELECT u.cm_cash, u.cm_bank, u.username, u.email, u.title, u.realname, u.url, u.jabber, u.icq, u.msn, u.aim, u.yahoo, u.location, u.use_avatar, u.signature, u.disp_topics, u.disp_posts, u.email_setting, u.save_pass, u.notify_with_post, u.show_smilies, u.show_img, u.show_img_sig, u.show_avatars, u.show_sig, u.timezone, u.language, u.style, u.num_posts, u.last_post, u.registered, u.registration_ip, u.admin_note, g.g_id, g.g_user_title FROM '.$db->prefix.'users AS u LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id WHERE u.id='.$id) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());


#
#---------[ 21. FIND (line:~1057) ]---------------------------------------------------
#

        if ($pun_user['g_id'] == PUN_ADMIN)
            $posts_field = '<label>'.$lang_common['Posts'].'<br /><input type="text" name="num_posts" value="'.$user['num_posts'].'" size="8" maxlength="8" /><br /></label><p><a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";
        else if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST)
            $posts_field = '<p>'.$lang_common['Posts'].': '.$user['num_posts'].' - <a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";
        else
            $posts_field = '<p><a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";


#
#---------[ 22. REPLACE WITH ]---------------------------------------------------
#

        if ($pun_user['g_id'] == PUN_ADMIN) {
            $posts_field = '<label>'.$lang_common['Posts'].'<br /><input type="text" name="num_posts" value="'.$user['num_posts'].'" size="8" maxlength="8" /><br /></label><p><a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";
            $posts_field .= '<label>'.ucwords($pun_config['cm_cur_name']).'<br /><input type="text" name="cm_cash" value="'.$user['cm_cash'].'" size="8" maxlength="8" /><br /></label>'."\n";
            $posts_field .= ($pun_config['cm_bank'] == 1) ? '<label>'.$lang_common['Bank'].'<br /><input type="text" name="cm_bank" value="'.$user['cm_bank'].'" size="8" maxlength="8" /><br /></label>'."\n" : '';
        } else if ($pun_config['o_show_post_count'] == '1' || $pun_user['g_id'] < PUN_GUEST) {
            $posts_field = '<p>'.$lang_common['Posts'].': '.$user['num_posts'].' - <a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";
            $posts_field .= '<p>'.ucwords($pun_config['cm_cur_name']).': '.$user['cm_cash'].'</p>'."\n";
            $posts_field .= ($pun_config['cm_bank'] == 1) ? '<p>'.$lang_common['Bank'].': '.$user['cm_bank'].'</p>'."\n" : '';
        } else
            $posts_field = '<p><a href="search.php?action=show_user&user_id='.$id.'">'.$lang_profile['Show posts'].'</a></p>'."\n";

#
#---------[ 23. SAVE/UPLOAD ]---------------------------------------------------
#

profile.php

-------------------------------------------------------------------------------------

Ok i i have upload the file to the ftp but when i go to look at profiles i get this...

Parse error: syntax error, unexpected T_CASE in /hermes/web03/b49/pow.freakazo/htdocs/forum/profile.php on line 735


Wot is gone one Some one Plz help..


Thank you

Re: Profile.pbp for cash mod help

Sorry about the 2nd post but alot off peer's have looked at this but have not Help onebit sad


can some one help me ??

Re: Profile.pbp for cash mod help

The steps are correct, so I'd download a clean copy of profile.php and try again

4

Re: Profile.pbp for cash mod help

and should this be in modifications as this is a modification not a default part of PunBB

Re: Profile.pbp for cash mod help

I got it Working smile