Hi there!
I have installed the FAP 1.4.0 and I have a problem: the album comments is not counted, don't sink, no matter how much I post in album, my post numers continues intact, it is not increased.
I need fixed it!!! Please!!!!
Thanks in advance! and sorry for my fair english!
M.
SOLVED FAP SUPPORT - Counted Comments
Subject: Re: Counted Comments
That is correct. Album comments do not increase your post count.
But, I think someone has modded for this..... search here or at MightyGorgon.com
But, I think someone has modded for this..... search here or at MightyGorgon.com
Subject: Re: Counted Comments
Artie!!! You are the best! TY!!!!!!!!!!!
Here is the solution:
http://smartor.is-root.com/viewtopi...t+count&start=0
Here is the solution:
http://smartor.is-root.com/viewtopi...t+count&start=0
Subject: FAP 1.4.1. & Counted Comments
Hi there!
Well... I install FAP 1.4.1. and now... the comments is not counted again!
With my FAP 1.4.0 I use this solution:
http://smartor.is-root.com/viewtopi...t+count&start=0
But now... with FAP 1.4.1. my album_showpage.php is different... the only similar line is:
But if I add the solution... I obtain this error:
Please, anybody can help me? Thanks in advance!
Well... I install FAP 1.4.1. and now... the comments is not counted again!
With my FAP 1.4.0 I use this solution:
http://smartor.is-root.com/viewtopi...t+count&start=0
- In album_showpage.php find:
- // --------------------------------
- // Insert into DB
- // --------------------------------
- $SQL = "INSERT INTO ". ALBUM_COMMENT_TABLE ." (comment_id, comment_pic_id, comment_user_id, comment_username, comment_user_ip, comment_time, comment_text)
- VALUES ('$comment_id', '$pic_id', '$comment_user_id', '$comment_username', '$comment_user_ip', '$comment_time', '$comment_text')";
- if( !$result = $DB->sql_query($SQL) )
- {
- message_die(GENERAL_ERROR, 'Could not insert new entry', '', __LINE__, __FILE__, $SQL);
- }
- *****After add*****
- $SQL = "UPDATE " . USERS_TABLE . " SET user_posts = user_posts + 1 WHERE user_id = " . $userdata['user_id'];
- if( !$result = $DB->sql_query($SQL) )
- {
- message_die(GENERAL_ERROR, 'Could not update post count', '', __LINE__, __FILE__, $SQL);
- }
But now... with FAP 1.4.1. my album_showpage.php is different... the only similar line is:
- // Insert into DB
- // If user only rated, but didn't enter a comment... only update rating
- if ( $comment_text != '' )
- {
- $sql = "INSERT INTO " . ALBUM_COMMENT_TABLE ." (comment_id, comment_pic_id, comment_cat_id, comment_user_id, comment_username, comment_user_ip, comment_time, comment_text)
- VALUES ('$comment_id', '$pic_id', '$cat_id', '$comment_user_id', '$comment_username', '$comment_user_ip', '$comment_time', '$comment_text')";
- if( !$result = $db->sql_query($sql) )
- {
- message_die(GENERAL_ERROR, 'Could not insert new entry', '', __LINE__, __FILE__, $sql);
- }
But if I add the solution... I obtain this error:
Quote:
Please, anybody can help me? Thanks in advance!
Subject: Re: FAP 1.4.1. & Counted Comments
In the code you added, change $DB to $db
Merged with previous thread of same topic
Merged with previous thread of same topic
Subject: Re: Counted Comments
oh Artie!
You are my hero! definitively! :love: :love: :love:
Thanks!!!
You are my hero! definitively! :love: :love: :love:
Thanks!!!
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.2997s (PHP: 6% SQL: 94%)
SQL queries: 13 - Debug Off - GZIP Enabled