Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
jimmo
Worker
Worker


Joined: Dec 08, 2005
Posts: 107

PostPosted: Tue Aug 15, 2006 1:44 am Reply with quote

Hi all!

I would like to implement a system where users can access particular features according to the group they are in, so NSN Groups. However, I want membership in these groups to be points-based, so PHPNuke groups. In essence, I want to give people who contribute to the site access to specific features, so the more they contribute the more points they get, the more features they get to use.

What I would like to do is integrate the two group systems. I have been digging through the forums for a while now and have found various posts that discuss either or both of these groups mechanisms, including discussions of the possibility of combining the functionality, but nothing definitive.

From what I see, it would be pretty straight forward to modify update_points() in mainfile.php. (I found
Only registered users can see links on this board! Get registered or login! (2004) that mentions a change here, but there was no response.) I would need a mechanism (e.g. DB column) that keep track of the points needed for the NSN Groups, but one possibility would be to have a 1:1 relationship between the two groups and if the user has gained enough points to be in a specific Nuke group, then they are added to the associated NSN Group. I think the easiest thing would be to modify the update_points() code to do the checking and updating of the nuke_nsngr_users table, since it is already being called and does some of the work already.

I would appreciate hearing from other people on this, particularly if someone else has already implement something similar.

regards,

jimmo
 
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Tue Aug 15, 2006 3:17 pm Reply with quote

The groups function introduced in PHP-Nuke version 7.6 (I think, can't remember) does this, but unfortunately, does little else. It sounds like you've thought through the changes needed for NSN Groups to support that. All that's left is the table and code modifications...

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
jimmo
PostPosted: Wed Aug 16, 2006 4:22 am Reply with quote

Thanks for the reply. Whenever update_points() is called, it is passed a number, which is the id column from nuke_group_points. The only place where I find the association defined in any way is the admin language files, like this:

Code:
define("_POINTS01","Journal Entry");


So, when a journal entry is added a '1' is passed, the number of points is read and then added to that user's total. However, the only place where I can see this association is the admin language file. Its pretty straight foraward to figure it out, I was just wondering if it is "defined" somewhere else. Part of the reason for asking is that I want to add my own point categories and I would like to make sure I do no step on any toes.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©