[ABD] Cash Mod 1.0.0 Beta 1

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm

[ABD] Cash Mod 1.0.0 Beta 1

Post by Handyman` »

Classification: Add-on
phpBB Part: Forum

MOD Name: Cash Mod
MOD Version: 1.0.0 Beta 1
Author: Handyman
MOD Description: Allows users to receive points/cash for making posts.

Works with:
  • phpBB 3.0.2 (prosilver instructions included)
1.0.0 Beta 1 is now available

Be sure to download the MOD Version Check from the phpBB MOD Database
http://www.phpbb.com/community/viewtopi ... 9&t=691155
Then you will see when updates are available.

Features:
Note: Prosilver instructions are included in this download… subsilver will be included probably next week.
SubSilver2 instructions can be found here: http://startrekguide.com/community/view ... 577#p79577
  1. ACP settings to add/edit currencies
  2. Select which currencies you want to be able to donate or exchange (more on exchange in a later version)
  3. Exchange rates for all currencies (more on this in a later version)
  4. Donate link in viewtopic, viewprofile and memberlist
  5. Class for other MODs to easily integrate with this MOD
  6. Forum permissions so Admins can select what kind of rewards you receive for posting etc.
New in this release:
  1. Complete code rewrite
  2. Included a Cash Class for other MODs to integrate
  3. Fixed all current issues with the ACP… can add/edit all currencies correctly.
  4. Added a cash_rates table to keep track of currency exchange rates.
  5. Added a donate link in viewtopic, viewprofile and memberlist for users to donate to eachother.
  6. Installer now supports all DBMS types.
  7. Added the ability to select which currency you want to donate.
  8. Fixed current issues with the permissions
  9. Added ability to receive cash for adding polls, voting, posting, replying, adding attachments.
  10. Added MOD Version check file to check for when Beta 2 becomes available.
Language: English

Licence: GNU General Public License v2

Screenshots: none yet.

Installation Level: Easy
Installation Time: 16 Minutes
Format: MODX
Support: Support is given here and in the download topic (I check the download topic more frequently)
Download File: http://startrekguide.com/community/view ... 127&t=6691
Donate: Support my mods
Roadmap: Roadmap is currently out of date… I'll update it later on.

My Mod Roadmap: http://startrekguide.com/forum/f100-mod ... html#p8507

Image
Last edited by Sam on Thu Aug 05, 2010 7:49 pm, edited 16 times in total.
Reason: Marked mod as abandoned, if the original poster wishes to continue this, please PM any MOD team member to have it unlocked.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm

Re: [BETA] Cash Mod

Post by Handyman` »

Image
0.3.2 released.
2007-6-26 - Version 0.3.2
- Serious code cleanup and overhaul
- Made all cash instances into functions for easy upgrading
- Finished the ACP so it now controls all currently available options
- Made link to Bank in viewtopic
- Install files sets permission automatically, so you will receive cash unless you specify not to.
Last edited by Handyman` on Wed Jun 27, 2007 2:40 am, edited 1 time in total.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
jerx
Registered User
Posts: 167
Joined: Fri Sep 02, 2005 4:27 am

Re: [BETA] Cash Mod

Post by jerx »

Very cool! The third mod of yours, I will going to use!

Feature requests:
1. Cash for private messages
2. Cash Api to make other mods work with cash mod.
3. Allowances. Give every user x points for a certain period. Set different amounts for different user groups. Set whether a user group will keep unused points after the period is over. If a user group cannot keep their points, they should also not be able to donate to other people.
4. Donations. Permit on a per user group basis.
User avatar
-CoS-
Registered User
Posts: 73
Joined: Tue Mar 20, 2007 7:59 pm

Re: [BETA] Cash Mod

Post by -CoS- »

I'll use this mod too (and your photo gallery). As said before, an API would be perfect to give the cash an utility in any mod.
timesheep
Registered User
Posts: 7
Joined: Tue Feb 27, 2007 3:30 pm

Re: [BETA] Cash Mod

Post by timesheep »

The selected attachment does not exist anymore.
i can't dowload it now!
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk

Re: [BETA] Cash Mod

Post by Raimon »

timesheep wrote:
The selected attachment does not exist anymore.
i can't dowload it now!
Try this location: http://startrekguide.com/forum/download.php?id=1580 :)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me @ www.raimon.nl for fair prices and good service!
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm

Re: [BETA] Cash Mod

Post by Handyman` »

yes, I forgot to updated the link… it's updated on the first post now.
Thanks Raimon.

I'm going to need to create a bugfix release sometime this week… but there will be an upgrade path… so it should be a cinch to upgrade.
You can see the list of bugs on the 1st post… and I'll be adding to them if more are found, so please let me know if you find any.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
User avatar
yexusbeliever
Registered User
Posts: 586
Joined: Mon Dec 08, 2003 8:49 pm
Location: Olympus phpBB3

Re: [BETA] Cash Mod

Post by yexusbeliever »

This is one of the most popular mod for phpBB. You can see that for phpBB2, it is a mod that is sticky. I encourage you work hard on it. We appreciate your hard work!
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm

Re: [BETA] Cash Mod

Post by Handyman` »

Thanks :)

I'm going to get a version of the photo gallery out in the next couple of days for it to be bug tested, then time to upgrade this… and I will, as always, be providing an upgrade path.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
User avatar
-CoS-
Registered User
Posts: 73
Joined: Tue Mar 20, 2007 7:59 pm

Re: [BETA] Cash Mod

Post by -CoS- »

edited: ups, I posted here a reply to gallery mod :oops:

anyway, I hope to read good news from this mod, too, I'll use it for sure:)
User avatar
Jackanape
Registered User
Posts: 1076
Joined: Wed Oct 13, 2004 6:01 am
Location: Capitol of the Great State of New York
Name: Jack Drury

Re: [BETA] Cash Mod

Post by Jackanape »

Good to see someone working on this!

I'd like to make a recommendation to configure payment on a per character basis, as well. In my experience, a lot of what we use Cash Mod for is to encourage real posting, and a per post payment invites one word posts galore...
~Extending the rule of meticulous exactitude to exaspirating punctillio...still.~
Treat your phpBB like a member of the family--Update and MOD her by hand, with HTML-Kit
: : Wanna Talk Poker? : : Image : :
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk

Re: [BETA] Cash Mod

Post by Raimon »

I belive that i found also one bug on this code:
Find

Tip: This may be a partial find and not the whole line.

Code: Select all

$sql_data[USERS_TABLE]['stat'][] = "user_lastpost_time = $current_time" . (($auth->acl_get('f_postcount', $data['forum_id'])) ? ', user_posts = user_posts + 1' : '');
Add after

Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all


//Begin Cash mod
			$cash_update = $user_update = array();
			if ($config['cash_mod'] && $auth->acl_get('f_cash', $data['forum_id']))
			{
				$cash_update = true;
				if ($config['cash_per_day'] != 0 && $user->data['user_cash'] >= $config['cash_per_day'])
				{
					if ($user->data['user_cash_date'] == date('d-m-Y'))
					{
						$cash_update = false;
					}
					else
					{
						$user_update = array(
							'user_cash_date'	=> "'" . date('d-m-Y') . "'",
							'user_cash'			=> $config['cash_amt'],
						);
					}
				}
				else if ($config['cash_per_day'] != 0)
				{
					$user_update = array(
						'user_cash_date'	=> "'" . date('d-m-Y') . "'",
						'user_cash'			=> "user_cash + {$config['cash_amt']}",
					);
				}
				
				if ($cash_update)
				{
					$sql = 'UPDATE ' . CASH_AMT_TABLE . " SET cash_amt = cash_amt + {$config['cash_amt']} WHERE user_id = '{$user->data['user_id']}' AND cash_id = {$config['cash_id']}";
					$db->sql_query($sql);
					$number = $db->sql_affectedrows();
	
					if ($number < 1)
					{
						$cash_ary = array(
							'user_id' => $user->data['user_id'],
							'cash_id' => $cashrow['cash_id'],
							'cash_amt' => $cashrow['cash_post'],
						);
						$sql = 'INSERT INTO ' . CASH_AMT_TABLE . ' ' . $db->sql_build_array('INSERT', $cash_ary);
						$db->sql_query($sql);
					}
				}
			}		
			//End Cash mod

			$sql_data[USERS_TABLE]['stat'][] = "user_lastpost_time = $current_time" . (($auth->acl_get('f_postcount', $data['forum_id'])) ? ', user_posts = user_posts + 1' : '') . (($cash_update) ? ", user_cash_date = {$user_update['user_cash_date']}, user_cash = {$user_update['user_cash']}" : '');
This going to lead to a double postcount when i place a message.
But when i do not the after add but the replace function it's working perfect, :)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me @ www.raimon.nl for fair prices and good service!
Captain Tycoon
Registered User
Posts: 46
Joined: Sat May 26, 2007 5:49 pm

Re: [BETA] Cash Mod

Post by Captain Tycoon »

Is it possible to move the points from the phpbb2 mod to this new one? :?:
carmelomvp
Registered User
Posts: 85
Joined: Sun Sep 10, 2006 1:37 pm

Re: [BETA] Cash Mod

Post by carmelomvp »

Hi, I Have installed the cash mod and it appears in the ACP but in the forum where is it? I dont view anything...

Help me
carmelomvp
Registered User
Posts: 85
Joined: Sun Sep 10, 2006 1:37 pm

Re: [BETA] Cash Mod

Post by carmelomvp »

up! thanks!

Return to “[3.0.x] Abandoned MODs”