[DEV] Points System

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
Exon
Registered User
Posts: 21
Joined: Sat Feb 15, 2003 8:05 pm
Contact:

Post by Exon » Tue Apr 15, 2003 3:32 am

well, they shouldn't be able to get to the admin panel, and that's how I know how to do it, that is if you set them as moderator. To do that you have to go to Admin Panel --> Scroll Down To User Admin --> Permissions --> Type Users' Name (IE: Webmaster) --> Look up --> User Level: User --> And then MOderator Status Set to: Is Moderator.

And then Save. They won't have access to admin panel.

masterlogan
Registered User
Posts: 77
Joined: Sat Oct 19, 2002 4:58 pm
Location: UK
Contact:

Post by masterlogan » Tue Apr 15, 2003 2:42 pm

no, no.
My mods cannot access the admin panal anyways, but in the mod install where it says to edit viewtopic_body.tpl it tells to add some kode, like for the donation link and one of the links in that install takes you straight to point add and subtract page.

Ruiee
Registered User
Posts: 210
Joined: Thu Jul 11, 2002 5:01 am

Post by Ruiee » Tue Apr 15, 2003 8:00 pm

Ruiee wrote: everytime i post something in my forum, the points would not add to my points what gives??

http://www.ani-community.net
Login: test
pass: test

what the problem?
it work perfectly fine before that bank hack >.<

can there be a way to install it perfectly fine??


come on i reinstall this and still no user even the moderator are getting points...
Image

Working on:
-dot.php

Exon
Registered User
Posts: 21
Joined: Sat Feb 15, 2003 8:05 pm
Contact:

Post by Exon » Tue Apr 15, 2003 8:58 pm

wrong topic, sorry.

clanhut
Registered User
Posts: 9
Joined: Sat Apr 19, 2003 10:17 pm
Location: Minnesota
Contact:

Post by clanhut » Sun Apr 20, 2003 10:49 pm

Before I get started with this, can anyone give me an idea of how long this mods takes for someone who is a novice (done about 5 simple mods)?

Thanks

axel486
Registered User
Posts: 34
Joined: Tue Jun 04, 2002 1:58 pm

Post by axel486 » Tue Apr 22, 2003 4:48 am

Help..My points won't update automatically after each post...I have to run the update_user_points.php to make up for this..How to remedey this?

conanqtran
Registered User
Posts: 308
Joined: Tue Mar 26, 2002 4:19 am
Contact:

Post by conanqtran » Wed Apr 23, 2003 2:25 am

when will this mod be release officially at phpBB? i'm waiting for it so i can submit my transaction mod too :?

pembo
Registered User
Posts: 18
Joined: Wed Apr 23, 2003 4:32 pm

Post by pembo » Wed Apr 23, 2003 4:35 pm

Im also experiencing a problem where points dont update automatically, I have to run the update user points program every now and again to keep the points updated.

Im using phpbb v2.0.4 mod version 2.0.0 with the subSilver template.

Any help would be greatly appreciated.

pembo
Registered User
Posts: 18
Joined: Wed Apr 23, 2003 4:32 pm

Post by pembo » Wed Apr 23, 2003 6:41 pm

Ive found a fix: for everybody experiencing problems, do the following
#
#-----[ OPEN ]------------------------------------------
#
includes/function_post.php

#
#-----[ FIND ]------------------------------------------
#

if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < intval($board_config['flood_interval']))
{
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}

#
#-----[ AFTER, ADD ]------------------------------------------
#

if( $board_config['points_post'] )
{
$points = abs( ( $mode == 'newtopic' ) ? $board_config['points_topic'] : $board_config['points_reply'] );

if( $userdata['session_logged_in'] )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_points = user_points + $points
WHERE user_id = $userdata[user_id]";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update user points', '', __LINE__, __FILE__, $sql);
}
}
}



And also be sure to remove the old code stated in there:

Code: Select all

if ($board_config['points_post'] && !$post_info['points_disabled'])
{
$points = abs(($mode == 'newtopic') ? $board_config['points_topic'] : $board_config['points_reply']);

if ($userdata['user_id'] != ANONYMOUS)
{
add_points($userdata['user_id'], $points);
}
}
This works for me.

savinfiev
Registered User
Posts: 11
Joined: Tue Apr 08, 2003 10:35 am

Post by savinfiev » Thu Apr 24, 2003 3:50 am

conanqtran wrote: when will this mod be release officially at phpBB? i'm waiting for it so i can submit my transaction mod too :?

conanqtran, can you pleaaase release your mod as soon as possible. :D

If you're going to wait until the Points system is approved, can you send me the beta version via PM?

Thanks

axel486
Registered User
Posts: 34
Joined: Tue Jun 04, 2002 1:58 pm

Post by axel486 » Thu Apr 24, 2003 9:01 am

thanks pembo :D

BigBossFrance
Registered User
Posts: 16
Joined: Sat Apr 26, 2003 2:49 pm

Post by BigBossFrance » Sat Apr 26, 2003 3:09 pm

I remember seeing around here a hack to give members points for clicking on publicity banners.....

Am I crazy, or does that existe ?
If not, does anyone besides me see a need for it..?

conanqtran
Registered User
Posts: 308
Joined: Tue Mar 26, 2002 4:19 am
Contact:

Post by conanqtran » Sun Apr 27, 2003 2:14 am

Explosive, did u submit this mod?

BigBossFrance
Registered User
Posts: 16
Joined: Sat Apr 26, 2003 2:49 pm

Post by BigBossFrance » Mon Apr 28, 2003 6:44 am

No, I am looking for it...... I will try to mod the rotating banner hack for it, but any help would be appreciated !

BigBossFrance
Registered User
Posts: 16
Joined: Sat Apr 26, 2003 2:49 pm

Post by BigBossFrance » Mon Apr 28, 2003 4:43 pm

Is ANYBODY interested in helping me...? That HAS To be great add on, on my site the guys go NUTS trying to get points.......

Am I the only person who trys to pay for his server ?

If someone can at least POINT ME in the right direction, I need to know how to add points for clicks on a link.......

Should be easy, right...?

Locked

Return to “[2.0.x] MODs in Development”