Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
7,899 Members
165,082 Posts
45 Users Online

Please welcome our newest member, jevs!

Affiliates
Go Back AdminFusion » Getting Started » Software » phpBB » Creating a simple point system (problem..)
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 10-01-2005, 12:16 PM   #1
KC

KC is offline

KC's Avatar

Title: Member

Points: 2,907, Level: 15Points: 2,907, Level: 15Points: 2,907, Level: 15
Level up: 16%, 143 Points neededLevel up: 16%, 143 Points neededLevel up: 16%, 143 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 149

Location: Singapore

KC has a spectacular aura aboutKC has a spectacular aura about
 
 
Question Creating a simple point system (problem..)

Hi all,

I would like to create a point system that can display how many points the user has. But first,

1. I would like to add another column to the php_users table via the phpmyadmin. Will the extra column affects other normal operations?

Extra info:
(My point system is a easy one that just displays the amount of points and can only be updated occasionally by me, through phpmyadmin)

Any comment / help will be appreciated.
Thank you.
Reply With Quote
Old 10-01-2005, 12:34 PM   #2

theMusicMan's Avatar

Title: Veteran

Points: 4,472, Level: 19Points: 4,472, Level: 19Points: 4,472, Level: 19
Level up: 20%, 178 Points neededLevel up: 20%, 178 Points neededLevel up: 20%, 178 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 841

theMusicMan is on a distinguished road
 
 
No - it shouldn't affect anything. All calls and database queries should be absolute to the table they call information from. If in doubt, add the new entity to the end of the table so that any relative calls will not be affected.
__________________
John
www.theMouthPiece.com - Brass music discussion
www.DeFuturo.com - Legal discussion and advice for forum & website owners
www.vBXtra.com - All new and exciting vBulletin styles, customisation and conversion
Reply With Quote
Old 10-01-2005, 01:48 PM   #3
KC

KC is offline

KC's Avatar

Title: Member

Points: 2,907, Level: 15Points: 2,907, Level: 15Points: 2,907, Level: 15
Level up: 16%, 143 Points neededLevel up: 16%, 143 Points neededLevel up: 16%, 143 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 149

Location: Singapore

KC has a spectacular aura aboutKC has a spectacular aura about
 
 
thanks, theMusicMan

I have added a column to the end of the user table and now i'm wondering where should i put the query to pull out the points...i only intend to show them on the viewtopic page (under player's avatar).

Any help / comment will be appreciated.
Thanks.
Reply With Quote
Old 10-01-2005, 02:48 PM   #4

Title: Apprentice

Points: 2,580, Level: 14Points: 2,580, Level: 14Points: 2,580, Level: 14
Level up: 15%, 170 Points neededLevel up: 15%, 170 Points neededLevel up: 15%, 170 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Oct 2005

Posts: 253

abcde is on a distinguished road
 
 
Put the code in viewtopic.php en connect it to the function in de template files, so viewtopic_body.tpl should contain the HTML.
__________________
.premodded - Premodded phpBB.
Reply With Quote
Old 10-02-2005, 04:07 AM   #5
KC

KC is offline

KC's Avatar

Title: Member

Points: 2,907, Level: 15Points: 2,907, Level: 15Points: 2,907, Level: 15
Level up: 16%, 143 Points neededLevel up: 16%, 143 Points neededLevel up: 16%, 143 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 149

Location: Singapore

KC has a spectacular aura aboutKC has a spectacular aura about
 
 
Thanks

I've get it working^^
Sometimes, the response here is better than the phpbb.com..Anyway, i would like to set up a page for my moderator to increment the points. I would like to know is it better to create another new page for this task?

Further help will be appreciated.Thanks.
Reply With Quote
Old 10-02-2005, 11:38 AM   #6

Title: Apprentice

Points: 2,580, Level: 14Points: 2,580, Level: 14Points: 2,580, Level: 14
Level up: 15%, 170 Points neededLevel up: 15%, 170 Points neededLevel up: 15%, 170 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Oct 2005

Posts: 253

abcde is on a distinguished road
 
 
Quote:
Originally Posted by KC
Thanks

I've get it working^^
Sometimes, the response here is better than the phpbb.com..
Thanks, though this is a small forum, so we have more time to help a user.

Quote:
Originally Posted by KC
Anyway, i would like to set up a page for my moderator to increment the points. I would like to know is it better to create another new page for this task?
Depending on what you prefer, the points hack has a botton to add points in the viewtopic.php (correct me if I'm wrong!).
__________________
.premodded - Premodded phpBB.
Reply With Quote
Old 10-02-2005, 03:27 PM   #7

gprime's Avatar

Title: Forum Addict

Points: 7,237, Level: 25Points: 7,237, Level: 25Points: 7,237, Level: 25
Level up: 26%, 313 Points neededLevel up: 26%, 313 Points neededLevel up: 26%, 313 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Aug 2005

Posts: 1,741

gprime is on a distinguished road
 
 
Quote:
Originally Posted by abcde



Depending on what you prefer, the points hack has a botton to add points in the viewtopic.php (correct me if I'm wrong!).
Well, wouldn't it depend upon which point system he uses, since some are sloppily coded?
Reply With Quote
Old 10-02-2005, 05:09 PM   #8

Title: Apprentice

Points: 2,580, Level: 14Points: 2,580, Level: 14Points: 2,580, Level: 14
Level up: 15%, 170 Points neededLevel up: 15%, 170 Points neededLevel up: 15%, 170 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Oct 2005

Posts: 253

abcde is on a distinguished road
 
 
Quote:
Originally Posted by gprime
Well, wouldn't it depend upon which point system he uses, since some are sloppily coded?
True, but I just know the Cash Mod and the Points Hack (and I think that there are others) both support this feature.
__________________
.premodded - Premodded phpBB.
Reply With Quote
Old 10-02-2005, 05:22 PM   #9
KC

KC is offline

KC's Avatar

Title: Member

Points: 2,907, Level: 15Points: 2,907, Level: 15Points: 2,907, Level: 15
Level up: 16%, 143 Points neededLevel up: 16%, 143 Points neededLevel up: 16%, 143 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 149

Location: Singapore

KC has a spectacular aura aboutKC has a spectacular aura about
 
 
Thanks for the comments.

I think it would be easier to integrate this into the profile page of the user. Meaning that there will be three predefined image (for incrementing 1, 3, 5 points repsectively) available for the moderator if they view anyone's profile.

Upon clicking the button, the points will be inserted into the database

Now i just need to sort out the following stuff;

1. How to check if the viewer is a moderator? (so that to show point increment image)

2. How to update user table in a new php script? (let say after i click the image for 5 points increment, it will run point.php)

Any further help would be appreciated.

Thanks.
Reply With Quote
Old 10-02-2005, 08:32 PM   #10

Title: Apprentice

Points: 2,580, Level: 14Points: 2,580, Level: 14Points: 2,580, Level: 14
Level up: 15%, 170 Points neededLevel up: 15%, 170 Points neededLevel up: 15%, 170 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Oct 2005

Posts: 253

abcde is on a distinguished road
 
 
Quote:
Originally Posted by KC
1. How to check if the viewer is a moderator? (so that to show point increment image)
Not difficult, just make an if statement.
If the userlevel_id is that of an Admin or Mod it will show the images/

Quote:
Originally Posted by KC
2. How to update user table in a new php script? (let say after i click the image for 5 points increment, it will run point.php)
You can put a SQL statement in point.php that will update the user table.
__________________
.premodded - Premodded phpBB.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shawn - Digital Point Owner Ryan Interviews 17 01-27-2007 02:08 AM
Point System xpit Announcements, Questions, and Feedback 9 11-27-2005 10:28 AM
[phpBB News] phpBB announces its community coding projects Industry News phpBB 0 11-18-2005 08:00 AM

AdminFusion

All times are GMT +1. The time now is 08:48 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72