Topic: Parse Error whenever I try to post...please help!

Whenever I try to post in my forum (www.key-lime.com/forum) it says the following:

Parse error: parse error, unexpected T_ELSE in /home/simsgal/public_html/key-lime/forum/post.php on line 45

I have the latest version of punBB and I have the Chat Mod and the Cash Mod installed.

This hasn't happened ever since I installed the Chat Mod.

Please Help!

Thanks

Re: Parse Error whenever I try to post...please help!

You messed up the install of a mod wink

Re: Parse Error whenever I try to post...please help!

Ok, it was the Chat Mod...how do I uninstall it?

I didn't really want it anyways. lol

Re: Parse Error whenever I try to post...please help!

Undo the steps to install it
And there was no need to post another topic about this in Troubleshooting

Re: Parse Error whenever I try to post...please help!

I'm sorry...I just wanted to put it in both b/c I didn't know which one to post in, but, will it also uninstall off the "mods" menu in the admin section then?

So, I just delete the folders, that's it?

Plz answer both questions..

thx

6

Re: Parse Error whenever I try to post...please help!

Moved here from Bug reports and duplicate post deleted.

Re: Parse Error whenever I try to post...please help!

Emil775 wrote:

I'm sorry...I just wanted to put it in both b/c I didn't know which one to post in, but, will it also uninstall off the "mods" menu in the admin section then?

So, I just delete the folders, that's it?

Plz answer both questions..

thx

I haven't looked at the chat mod's install instructions, but if you undo what was done then you'll be fine

Re: Parse Error whenever I try to post...please help!

KK Thanks:)

Re: Parse Error whenever I try to post...please help!

Ok, so, now I'm REALLY mad. AAHH.
I uninstalled the mod just fine, but, now, I can't even go into the POST section. It says the following:
"Parse error: parse error, unexpected T_ELSE in /home/simsgal/public_html/key-lime/forum/post.php on line 45"
Please Help again!

Thanks

Re: Parse Error whenever I try to post...please help!

Same error, which means you made a mistake when install the Cash Mod (which makes more sense, since I didn't think the chat mod affected post.php

Re: Parse Error whenever I try to post...please help!

Ok, thanks for the info, but what do I do now? Please!

Re: Parse Error whenever I try to post...please help!

Actually, nevermind!
I downloaded punBB and replaced the original post.php file, and it worked! yay! lol

Re: Parse Error whenever I try to post...please help!

Then the Cash Mod won't work properly wink

Re: Parse Error whenever I try to post...please help!

AAAHHH. NOOOO. That's true...it doesn't add posts anymore. What do I do now?

Re: Parse Error whenever I try to post...please help!

Redo the install instructions for post.php

Re: Parse Error whenever I try to post...please help!

I did that. Completely. And it STILL doesn't work. I have a favor to askfor someone-

Could somebody please take the ORIGINAL post.php and do the following please:

#---------[ 11. FIND (line:39) ]---------------------------------------------------
#

// Fetch some info about the topic and/or the forum
if ($tid)
    $result = $db->query('SELECT f.id, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.subject, t.closed FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$tid) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
else
    $result = $db->query('SELECT f.id, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics FROM '.$db->prefix.'forums AS f LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND f.id='.$fid) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());


#
#---------[ 12. REPLACE WITH ]---------------------------------------------------
#

// Fetch some info about the topic and/or the forum
if ($tid)
    $result = $db->query('SELECT f.cm_cpp, f.id, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.subject, t.closed FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$tid) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
else
    $result = $db->query('SELECT f.cm_cpt, f.id, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics FROM '.$db->prefix.'forums AS f LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND f.id='.$fid) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());



#
#---------[ 13. FIND (line:317) ]---------------------------------------------------
#

        if (!$pun_user['is_guest'])
        {
            $low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
            $db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
        }

        redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect']);


#
#---------[ 14. REPLACE WITH ]---------------------------------------------------
#

        if (!$pun_user['is_guest'])
        {
            $low_prio = ($db_type == 'mysql') ? 'LOW_PRIORITY ' : '';
            $db->query('UPDATE '.$low_prio.$db->prefix.'users SET num_posts=num_posts+1, last_post='.$now.' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
            // Update the user's cash..
            if ($tid) {
                $db->query('UPDATE '.$low_prio.$db->prefix.'users SET cm_cash=cm_cash+'.$cur_posting['cm_cpp'].' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
                redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect'].'<br />You have gained '.$cur_posting['cm_cpp'].' '.$pun_config['cm_cur_name'].'.');
            } else if($fid) {
                $db->query('UPDATE '.$low_prio.$db->prefix.'users SET cm_cash=cm_cash+'.$cur_posting['cm_cpt'].' WHERE id='.$pun_user['id']) or error('Unable to update user', __FILE__, __LINE__, $db->error());
                redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect'].'<br />You have gained '.$cur_posting['cm_cpt'].' '.$pun_config['cm_cur_name'].'.');
            }
        } else
                redirect('viewtopic.php?pid='.$new_pid.'#p'.$new_pid, $lang_post['Post redirect']);


THANK YOU!!! When you do it, please send the file through e-mail, post it here, or just go online, my sn's are:

AIM:redlimesgalore
YIM:jamesbonddude2000
MSN:inghetata2@hotmail.com

Thank You So Much Once Again!