[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.
Locked
User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Handyman` »

Gleasonator wrote:
Handyman` wrote:
_Ming_ wrote:...who'll develop the shop mod in the future, cause Phantom784
hasn't got enough time for it (so he wrote) :?:
tis not for me to decide… Rizzn still has a Shop MOD, but I don't think it's compatible with 1.0.0 and his time has been very limited as well… busy time for people ;)
Being someone who's not great at PHP but aspires to be great at PHP, as soon as I'm done fixing my site I'm gonna give adding categories and pagination to Phantom's shop a shot. I'm going in knowing probably only half of what I should know, but it's Summer vacation so I have all the time in the world to figure it out. ;) I've already at least been able to make the interface look a bit nicer (add prosilver style buttons rather than just text, etc.)

If I happen to get anywhere with this I'll drop Phantom a PM.
he doesn't bite… at least not too hard ;)
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)

Undead46
Registered User
Posts: 95
Joined: Wed Jun 18, 2008 4:49 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Undead46 »

I can't set group/user permissions now. :?:

autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by autinhyeu »

I cant see user and bank of Cash MOD in ACP
Image
Click here to see langer image
So i cant edit cash of user...
i use phpbb3.0.2 and style subsilver2
Help me!!!
Thanks :D
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible

User avatar
NYM_Boston
Registered User
Posts: 40
Joined: Mon Jan 14, 2008 6:43 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by NYM_Boston »

The ACP isn't finished, it's like that for everyone.

autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by autinhyeu »

NYM_Boston wrote:The ACP isn't finished, it's like that for everyone.
So, cant edit cash of members??? :?: :?: :?:
hix hix
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Gleasonator »

Woot! Handyman, I got it working. :)

I had to back up the topic, users, and thread tables, delete the database, run a new phpBB install, reinsert the tables, then fix the permissions... but it works! :lol:

And I must say that you've done an OUTSTANDING job! :D This by far makes it into the top 5 list of best mods for phpBB.

Thank you!

*sprinkles holy water on idol*
Sorry for my bad Engrish !
gleason|design

Image

User avatar
Phil
Former Team Member
Posts: 10403
Joined: Sat Nov 25, 2006 4:11 am
Name: Phil Crumm
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Phil »

autinhyeu wrote:
NYM_Boston wrote:The ACP isn't finished, it's like that for everyone.
So, cant edit cash of members??? :?: :?: :?:
hix hix
No, that feature is apparently not yet complete.
Moving on, with the wind. | My Corner of the Web

autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by autinhyeu »

So, how to edit cash of members???
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible

User avatar
Gleasonator
Registered User
Posts: 652
Joined: Tue Jun 05, 2007 2:19 pm
Location: Texas
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Gleasonator »

autinhyeu wrote:So, how to edit cash of members???
Using phpMyAdmin.


Anyone tried this with the shop mod yet? :roll:

Code: Select all

Fatal error: Cannot redeclare class cash in /home/gleasona/public_html/forums/includes/functions_shop.php on line 381
Redeclare cash class..? I'm getting this from the installer and shop.php...

What could it mean by redeclare the cash class? There's only one cash class through all the files. Line 381 is where the cash class begins in functions_shop.php.

EDIT: OH. :shock: The cash mod uses a class with the same name.

Handyman, is this class new to 1.0.0? Just curious because the shop mod played nice with 0.3.2.

EDIT again:

OK, in functions_shop changing

Code: Select all

class cash
to

Code: Select all

class shopcash
And everywhere it says

Code: Select all

extends cash
to

Code: Select all

extends shopcash
Makes the old error go away, but now there's a new one:

Code: Select all

Fatal error: Call to a member function format_cash_string() on a non-object in /home/gleasona/public_html/forums/shop.php on line 45
So I go to line 45, change:

Code: Select all

	'USER_MONEY'	=> $shop->cash->format_cash_string(),
to

Code: Select all

	'USER_MONEY'	=> $shop->shopcash->format_cash_string(),
Same error... any ideas, maybe something I missed? Also, this is completely guessing on my part. I just learned about functions two days ago and have no clue what a class is. ;) Hope I'm even close.

Sorry, by the way. I should've posted this in Phantom's thread. But I'd already started this post, and this edit was related enough, I figured.

Thanks. :)
Sorry for my bad Engrish !
gleason|design

Image

autinhyeu
Registered User
Posts: 685
Joined: Mon Apr 14, 2008 6:34 am
Location: Vietnamese
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by autinhyeu »

edit cash in phpmyadmin, cant edit in ACP :(
phpBB Community in Vietnamese: http://www.phpbbvn.com

Sorry, my English language is fine impossible

siveriano
Registered User
Posts: 24
Joined: Thu Jul 03, 2008 2:34 am

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by siveriano »

thx for the great mod finally one mod i got it working on first try. lol
thx alot.

User avatar
Handyman`
Former Team Member
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Handyman` »

ok, for the shop MOD, try this
open up includes/functions_shop.php

find

Code: Select all

if (version_compare($config['cash_version'], '1.0.0', '>='))
            {
                $this->cash = new cash_mod;
            }
            else
            {
                $this->cash = new cash_mod_beta;
            } 
replace with

Code: Select all

if (version_compare($config['cash_version'], '0.4.0', '>='))
            {
                global $cash;
                $this->cash = $cash;
            }
            else
            {
                $this->cash = new cash_mod_beta;
            }

 
That should solve the shop problem :)
I pulled a couple fast ones on Francis :lol:
I changed a couple things since he first saw my repository.

Gleasonator, that would indicate that there were some remaining cash items from the previous version still lingering in the database from the 0.3.2 version… I'll have to make sure and un-install all of those when I create the upgrade script.

[edit]From the looks of it, you may have to remove lines 381 down to the end of that file as it's using class cash, which will throw a nice error when it clashes with the already defined cash class… it also looks like that's not required for the latest version… I could be wrong, but I hope not.
I only had a minute to skim the file, so don't bet money on it ;) [/edit]
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
Steven Lancing
Registered User
Posts: 105
Joined: Mon Dec 17, 2007 6:21 am
Location: Colorado

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Steven Lancing »

I finally managed to get the Shop Mod to play nice (many thanks to Gleasonater) but now I'm after a cosmetic change... In the ACP, the tab where the settings are stored says ".MODS." Some of my other mods I have installed (Arcade, the Shop Mod, etc) have "customized" names on their tabs... Can this be changed easily?

Steven

[EDIT] Scratch that, shop.php is spitting out this error:

Code: Select all

Fatal error: Call to undefined method cash::format_cash_string() in shop.php on line 48
Line 48 reads:

Code: Select all

	'USER_MONEY'	=> $shop->cash->format_cash_string(),

jzaloopa
Registered User
Posts: 6
Joined: Thu Jul 17, 2008 9:10 am

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by jzaloopa »

Great Mod! Easy to install.
Wainting for updates....

Undead46
Registered User
Posts: 95
Joined: Wed Jun 18, 2008 4:49 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Undead46 »

Is anyone else having problems with permissions as I am?

I go to permissions tab and its blank....

Locked

Return to “[3.0.x] Abandoned MODs”