Jump to content

phpBB -- custom hack


sniped22

Recommended Posts

I have created(not finished) a custom hack for phpbb. All it does is displays the player's "points" which I have a seperate database for. When a user registers for the forum, his/her username and points are entered into the database. In the little "profile" sort of thing under the poster's name, where it holds post count, join date, etc. I have added the "Points" label in there, and it displays this properly. However, here is where the problem occurs. I have it display the points, but it only displays the admin's points, whereas for everyone else it displays nothing.

 

a few portions of my source are as follows:

 

        $player_points = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Player_Points'] . ': ' . $a['player'] : '';

 

$staker_points = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Staker_Points'] . ': ' . $a['staker'] : '';

 

'POSTER_JOINED' => $staker_points,

'POSTER_FROM' => $player_points,

 

All in all, this posts the username "support"'s points, but not any other user of the forum.

 

I know this probably isn't enough information, but if you need more, just ask!

Link to comment
https://forums.phpfreaks.com/topic/43726-phpbb-custom-hack/
Share on other sites

Actually, I made a mistake. It updates only in 1 topic, and it updates everybody's information as the same information. It always puts the topic starters information in their stats. Basically all I need is any custom hack that displays a user's personal stats when they post.

 

Thanks again

Link to comment
https://forums.phpfreaks.com/topic/43726-phpbb-custom-hack/#findComment-212338
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.