|
Page 1 of 1
|
felix968
Joined: February 2007
Posts: 122
Location:
|
FAP CUSTOMIZATION - FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
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
|
#1 Wed 28 Feb, 2007 20:09 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
Maybe this will help with your request.
MightyGorgon.com wrote: Hello,
I tried searching for the terms "increase post" "post count" but couldn't find what I was looking for. I'm looking to see if there is a way to increase a member's post count when adding a comment to the album. I've saw this was possible with the un modded smartor album, but wanted to know how could I apply this hack to FAP.
Thank you for your time.
nevermind I found it
Glad you found what you were looking for.
Care to provide a link/info for others who may come across this thread ?
Yes I will, let me find the code change. I'll edit this post with the changes to increase post count and decrease post count when adding or deleting comments to the album.
Ok both of these can be found at http://smartor.is-root.com/viewtopi...ight=post+count
To increase a post when making a comment, you are actually going to open the album_showpage.php not the album_comment.php. The increase post count is on page 1, the decrease post count if you delete a comment is on page 3.
Thanks for the links... maybe someone else will find them useful.
|
#2 Thu 01 Mar, 2007 00:56 |
|
felix968
Joined: February 2007
Posts: 122
Location:
|
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 ...
|
#3 Thu 01 Mar, 2007 09:14 |
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
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
|
#4 Thu 01 Mar, 2007 18:28 |
|
felix968
Joined: February 2007
Posts: 122
Location:
|
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?
|
#5 Thu 01 Mar, 2007 20:59 |
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
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.
|
#6 Thu 01 Mar, 2007 23:11 |
|
felix968
Joined: February 2007
Posts: 122
Location:
|
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);
}
}
}
|
#7 Fri 02 Mar, 2007 12:27 |
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
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);
}
}
}
You added the code in the wrong location.
Look for:
$sql = "INSERT INTO " . ALBUM_COMMENT_TABLE ."
|
#8 Fri 02 Mar, 2007 18:11 |
|
felix968
Joined: February 2007
Posts: 122
Location:
|
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);
}
}
}
You added the code in the wrong location.
Look for:
$sql = "INSERT INTO " . ALBUM_COMMENT_TABLE ."
WONDERFUL!
You are great Artie....
NOW Works
Thanks so much....
|
#9 Fri 02 Mar, 2007 19:13 |
|
Artie
Joined: January 2007
Posts: 833
Location: Lone Star State
|
Re: FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
Glad I could help
|
#10 Fri 02 Mar, 2007 21:21 |
|
Mighty Gorgon
Luca Libralato
Joined: August 2006
Posts: 7192
Location: Borgo San Michele
|
Re: SOLVED - FAP 1.4.0 And Phpbb 2.0.21 : Total Messages
Another nice shoot.
Thanks.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#11 Sun 04 Mar, 2007 13:43 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You 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
|
|
|
|