Hallo,
excuse me for bad translation....
I have FAP and phpbb, and I can't resolve this question: all the messages in album are not count for users in the forum.
The users would like the link, for their best up level.
How can I do?
Thanks
SOLVED FAP CUSTOMIZATION - FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
Subject: Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
Maybe this will help with your request. :wink:
MightyGorgon.com wrote:
Subject: Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
Thanks Artie...that's very useful, but doesn't work with FAP ....I haven't "album_comment.php" file ...
:cry:
:cry:
Subject: Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
I haven't test this, but I think it does work.
Did you not see this (above):
To increase a post when making a comment, you are actually going to open the album_showpage.php not the album_comment.php
Did you not see this (above):
To increase a post when making a comment, you are actually going to open the album_showpage.php not the album_comment.php
Subject: Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
Artie, you are great....I've done all in "album_showpage.php " , but it doesn't work ...but i've read this in that post: "FAP got a modified clown's included.. though almost all features can be disabled in the ACP..
"
Do you somethink about?
"
Do you somethink about?
Subject: Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
It worked for me.
Can you provide here, that part (only) of your code where you made the change.
Can you provide here, that part (only) of your code where you made the change.
Subject: Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
here for you.... :?
$sql = "INSERT INTO ". ALBUM_RATE_TABLE ." (rate_pic_id, rate_user_id, rate_user_ip, rate_point)
VALUES ('$pic_id', '$rate_user_id', '$rate_user_ip', '$rate_point')";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new rating', '', __LINE__, __FILE__, $sql);
}
$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);
}
}
}
$sql = "INSERT INTO ". ALBUM_RATE_TABLE ." (rate_pic_id, rate_user_id, rate_user_ip, rate_point)
VALUES ('$pic_id', '$rate_user_id', '$rate_user_ip', '$rate_point')";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new rating', '', __LINE__, __FILE__, $sql);
}
$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);
}
}
}
Subject: Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
You added the code in the wrong location.
Look for:
$sql = "INSERT INTO " . ALBUM_COMMENT_TABLE ."
felix968 wrote: [View Post]
You added the code in the wrong location.
Look for:
$sql = "INSERT INTO " . ALBUM_COMMENT_TABLE ."
Subject: Re: SOLVED - FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
Another nice shoot.
Thanks. :wink:
Thanks. :wink:
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.1548s (PHP: 13% SQL: 87%)
SQL queries: 13 - Debug Off - GZIP Enabled