Problem with Function_posting.php

current version: 1.0.4.1
released: 11.07.2011

latest tested phpBB-Version: 3.0.10

Problem with Function_posting.php

Postby parkstee » Fri Mar 13, 2009 12:08 am

My forum displays this message
Code: Select all
Parse error: syntax error, unexpected ',' in /home/parkstee/public_html/includes/functions_posting.php on line 1774


As soon as put this
Code: Select all
 , user_topics = user_topics + 1


into this
Code: Select all
$sql_data[USERS_TABLE]['stat'][] = "user_lastpost_time = $current_time" . (($auth->acl_get('f_postcount', $data['forum_id']) && $post_approval) ? ', user_posts = user_posts + 1' : '');


Everything else is fine what can you suggest?
The whole of life is just like watching a film. Only it's as though you always get in ten minutes after the big picture has started, and no-one will tell you the plot, so you have to work it out all yourself from the clues.
User avatar
parkstee
Posts > 50
Posts > 50
 
Posts: 56
Topics: 23
Joined: Sun Jan 11, 2009 11:20 pm
Location: Deepcar, UK
phpBB.com: Richazey

Re: Problem with Function_posting.php

Postby shahin » Fri Mar 13, 2009 3:33 pm

might be easier with the entire function_posting file (after editing)
shahin
Posts > 50
Posts > 50
 
Posts: 177
Topics: 1
Images: 0
Joined: Sat Nov 22, 2008 7:48 pm
phpBB.com: shahinavthal

Re: Problem with Function_posting.php

Postby nickvergessen » Fri Mar 13, 2009 5:25 pm

Code: Select all
$sql_data[USERS_TABLE]['stat'][] = "user_lastpost_time = $current_time" . (($auth->acl_get('f_postcount', $data['forum_id']) && $post_approval) ? ', user_posts = user_posts + 1, user_topics = user_topics + 1' : '');

That should be the resulting line
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5753
Topics: 218
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Problem with Function_posting.php

Postby parkstee » Fri Mar 13, 2009 10:29 pm

Thanks nick, don't know what it was but replace the code and works fine :D another top mod
The whole of life is just like watching a film. Only it's as though you always get in ten minutes after the big picture has started, and no-one will tell you the plot, so you have to work it out all yourself from the clues.
User avatar
parkstee
Posts > 50
Posts > 50
 
Posts: 56
Topics: 23
Joined: Sun Jan 11, 2009 11:20 pm
Location: Deepcar, UK
phpBB.com: Richazey


Return to NV usertopics

Who is online

Users browsing this forum: No registered users and 1 guest

 

cron