Search found 254 matches

by Mooncow
Fri Aug 01, 2008 7:43 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

Not good. You are executing the forum post count and the rest of the summary code once for every currency, instead of only once. this is getting quite messy now http://rafb.net/p/NIytBz64.html i could only really keeps things seperate by splitting it up and make 2 extra loops not working yet though...
by Mooncow
Wed Jul 30, 2008 7:00 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

it starts at line 30
by Mooncow
Wed Jul 30, 2008 6:52 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

thanks for all the help, its all running without errors now, but the values dont get updated =S
when you post instead of "you earned blah bah blah" it returns with "0"

heres my code if you wanted to take a quick look for any glaring errors

http://rafb.net/p/RXnUIg19.html
by Mooncow
Wed Jul 30, 2008 6:15 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

ohhhh that loop, ok i see it now thanks

so the stuff already in that loop, ie

Code: Select all

if ( $sum < $c_cur->cash_disable_spam_num2() )
is that correct?

And the stuff before the loop, should i be using a different piece of code or will i have to move it into the loop?
by Mooncow
Wed Jul 30, 2008 5:54 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

can i have another hint
by Mooncow
Wed Jul 30, 2008 5:30 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

Fatal error: Call to a member function cash_disable_spam_num() on a non-object in /home/hippotan/public_html/chao/forum/includes/classes_cash.php on line 535 if ( (($mode == 'newtopic') || ($mode == 'reply')) && (intval($c_cur->cash_disable_spam_num()) > 0) ) { im doing something really stupid i ta...
by Mooncow
Wed Jul 30, 2008 5:15 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

my original attempt was making variables like maxearn for the following $spamnum = $posting_user->get_setting($c_cur->id(),'cash_disable_spam_num'); $spamtime = $posting_user->get_setting($c_cur->id(),'cash_disable_spam_time'); $spammsg = $posting_user->get_setting($c_cur->id(),'cash_disable_spam_me...
by Mooncow
Wed Jul 30, 2008 4:59 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

thanks for the reply =) yeah the spam code rewrite should be all thats left i hope (includes/classes_cash.php) the part where it starts if ( (($mode == 'newtopic') || ($mode == 'reply')) && (intval($board_config['cash_disable_spam_num']) > 0) ) is finding value for the spam number set in the cash co...
by Mooncow
Wed Jul 30, 2008 4:46 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

ok the spam settigns are global, and i'm trying to change them so they work with each currency i've added fields to the phpBB_cash table (so in the same place as max cash per post etc, i have the spam settings) and i've done all the templating so the values are set in the tables but now i gotta get ...
by Mooncow
Wed Jul 30, 2008 1:47 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

Re: [2.0.18] Cash Mod

how can i limit the amount of cash earned in 1 day?

I want 2 currencies, one to earn only 1 a day, and the other to earn as many as they like
by Mooncow
Mon Feb 12, 2007 1:01 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

thank you very much for all your help! i think i got it all sorted now!

thanks
by Mooncow
Fri Feb 09, 2007 5:46 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

and make new functions to return your new rows... like this: function disable_spam_num() { return $this->currency['cash_disable_spam_num']; } that is excellent, and now it also shows up in the ACP too! thanks! its the code i was trying to figure out before when you mentioned it. so now the last thi...
by Mooncow
Thu Feb 08, 2007 8:57 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

It is more than that. You will have to write the code to take the data from the HTML form and put it in program variables, then store the data in the SQL table, then display it on the form. In cash_settings.php, refer to the way that "cash_1[cash_maxearn]" is done. That is the Maximum earnings per ...
by Mooncow
Tue Feb 06, 2007 11:46 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

thankyou, i appreciate the help Brf my php isn't that good, so i think it might take me a while to get my head around it all. This is what ive done so far, just to check if i havn't done anything wrong. I renamed the rows in phpbb_config (didn't want to delete them incase i needed them for the futur...
by Mooncow
Mon Feb 05, 2007 4:33 pm
Forum: [2.0.x] MOD Database Releases
Topic: [2.0.18] Cash Mod
Replies: 11966
Views: 1888414

hehe, you download the package, and follow the instructions in the file cm_install_223.txt

you copy the files that come in the zipfile to your website
and you edit the files that are already on your website (the ones it tells you to edit in the file cm_install_223.txt).

Go to advanced search