Welcome, Guest. Please Login or Register.
November 20, 2024, 09:32:50 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Forum point system « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Forum point system  (Read 532 times)
nick898
Noobie
*
Posts: 35


I'm a llama!

Forum point system
« on: May 25, 2003, 02:50:21 AM »
Reply with quote

I found a topic in here similar to what I'm asking using the advanced search feature.

I have not found a mod like this for YaBBse yet. In my opinion it would be a good idea.

Basically what it does is if you make one post you get 1 point, another post and you have two points. The points can be used to buy the right to have a custom title or to change your username etc...

Can anyone make a mod similar to this or show me a link to a mod that is similar to wht I'm explaining?

Thank you.
« Last Edit: May 25, 2003, 02:50:53 AM by nick898 » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Forum point system
« Reply #1 on: May 25, 2003, 03:00:45 AM »
Reply with quote

This isn't actually that hard to do.

First, you add a column to the memebrs table.

ALTER TABLE {$db_prefix}memebrs
ADD points mediumint(8) unsigned NOT NULL default '0';

Then, whenever they post... you increment their points in the same query as you incremement the post count.

ie.
         ++$settings[6];
         $request = mysql_query("
            UPDATE {$db_prefix}members
            SET posts = posts + 1, points = points + $modSettings[pointsPerPost]
            WHERE ID_MEMBER = $ID_MEMBER
            $doLimitOne") or database_error(__FILE__, __LINE__);


Then, in the profile, just make if's like this:
if ($memsettings['points'] > xx || $memsettings['memberGroup'] == 'Administrator')

And so on.  Other things could be done like this.

You could also do monthly, etc, payments by way of a function call in index.php and new settings variable.
if ($modSettings['pointsLastUpdate'] < time() - 24 * 3600)
{
  include_once($sourcedir . '/Points.php');
  pointsMakePayments(0);
}

And making a simple itemshop is as easy as making the structure for it and designing and interface.

Then you just show the items and points in the Display.php output...

-[Unknown]
Logged
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Forum point system
« Reply #2 on: May 25, 2003, 03:24:29 AM »
Reply with quote

Um, why not just use the PostCount field as Points too, why duplicate the same number in two fields? :)
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Forum point system
« Reply #3 on: May 25, 2003, 03:53:31 AM »
Reply with quote

Quote from: Michele on May 25, 2003, 03:24:29 AM
Um, why not just use the PostCount field as Points too, why duplicate the same number in two fields? :)

Because you can spend points, get like 5 points per post, etc.

Also, people might get payed for being moderators...

-[Unknown]
Logged
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Forum point system
« Reply #4 on: May 25, 2003, 06:33:26 PM »
Reply with quote

* Michele creeps back under a rock now...

Thanks!
« Last Edit: May 25, 2003, 06:33:43 PM by Michele » Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Forum point system
« Reply #5 on: May 26, 2003, 05:43:30 AM »
Reply with quote

the karma system could also be applied to this idea, so ppl would add to those points with the applause/smite links (or some other name) if they feel that member deserves it
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Forum point system « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.013 seconds with 20 queries.