[2.0.18] Cash Mod

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
1036
66%
Very Good
239
15%
Good
121
8%
Fair
36
2%
Poor
126
8%
 
Total votes: 1558

Q-Zar
Registered User
Posts: 779
Joined: Sun Nov 17, 2002 8:30 pm
Location: Brussels
Contact:

Post by Q-Zar »

Rattrap, the error I mention is only for the French translation (if that's what you were talking about).
Did you upload all the files ? If you have several templates on your forum, did you upload the tpl files to every template folder ?

Now, for the absolute beginners, I made a "Getting Started" manual.
It's quickly read, and you can find information on the functions in it.
I think I've written it all down pretty simplified and clearly, to make sure everyone understands it.
So, if you start out and have questions, start by reading Getting Started. :)
Traductions : Cash Mod v2.2.2 (Getting Started) / Dice Mod v1.2.3 / Activity Mod Plus 1.0.8
Remember this. Please read the F.A.Q/Troubleshooting of a mod before asking questions.
Image
Rattrap
Registered User
Posts: 4
Joined: Tue Jun 08, 2004 10:07 am

Post by Rattrap »

thanks... I`ll give it a try... i did`n upload folder "lang_french" and "lang_dutch" as i did`n think it would mather...

but i`m pretty sure i uploaded all the .tpl files..
Q-Zar
Registered User
Posts: 779
Joined: Sun Nov 17, 2002 8:30 pm
Location: Brussels
Contact:

Post by Q-Zar »

Well you don't need to upload those folders, not unless you have the French and Dutch languages on your forum.
I just mention this to update the zipfile from the first post.
If your board is only in english, you can ignore my message about fixing the lang_cash.php file
Traductions : Cash Mod v2.2.2 (Getting Started) / Dice Mod v1.2.3 / Activity Mod Plus 1.0.8
Remember this. Please read the F.A.Q/Troubleshooting of a mod before asking questions.
Image
Rattrap
Registered User
Posts: 4
Joined: Tue Jun 08, 2004 10:07 am

Post by Rattrap »

Rattrap wrote: thanks... I`ll give it a try... i did`n upload folder "lang_french" and "lang_dutch" as i did`n think it would mather...

but i`m pretty sure i uploaded all the .tpl files..


It seems as there is an old point system there that was never used...
Its now removed.. but still... i cant access the admin pages
Cash Admin
Cash help
Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore »

rattrap: are you using a portal system at all?
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod
Rattrap
Registered User
Posts: 4
Joined: Tue Jun 08, 2004 10:07 am

Post by Rattrap »

PHP-Nuke

with CashMod2_2_1.zip not CashMod221.zip

In the zip there are theese folders :
/includes
/modules
/themes
/upgrade_202_221

also when i was going thru includes/functions_post.php looking for this

Code: Select all

		include('includes/functions_search.'.$phpEx);
it was not like that, it was like

Code: Select all

		include("includes/functions_search.php");
and there where 2 of them
one here:

Code: Select all

        global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
        global $userdata, $user_ip;

        include("includes/functions_search.php");

        $current_time = time();

        if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost')
and then here:

Code: Select all

{
        global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
        global $userdata, $user_ip;

        if ($mode != 'poll_delete')
        {
        include("includes/functions_search.php");

                $sql = "DELETE FROM " . POSTS_TABLE . "
                        WHERE post_id = $post_id";[url][/url]
Percu.org
Registered User
Posts: 88
Joined: Sun Apr 28, 2002 2:54 pm
Location: Valence (France)
Contact:

Post by Percu.org »

Xore

sorry to bother you, but i made some search on this thread which is a bit long.

Your Mod is excellent, and wouldlike to install it on www.kitexperience.com (get a look on the template i made) , but i also look for a plugin which could allow users to donate some point/cash to another users by voting for a specific thread.

Which mods could i combine ? If it does exist. If not a will make it myslef, but it could be better to use previous work done.

sorry for my lack in english, i'm french ;)
Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore »

Percu.org wrote: but i also look for a plugin which could allow users to donate some point/cash to another users by voting for a specific thread.


I'm not quite clear on what you're trying to say...

There is already a donate feature built into cash mod... is what you're looking for a forced automatic donation whenever someone votes?
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod
Percu.org
Registered User
Posts: 88
Joined: Sun Apr 28, 2002 2:54 pm
Location: Valence (France)
Contact:

Post by Percu.org »

Xore wrote: I'm not quite clear on what you're trying to say...

There is already a donate feature built into cash mod... is what you're looking for a forced automatic donation whenever someone votes?


sorry if i'm not easily understandable for this request...

i didn't saw on the feature list of this mod he possibility to add a vote system on each post (or thread) of the forum. When a (registered) user will vote, it will increase cash amount of the user who write the thread.

This is in order to encourage people to make some quality post.

thanks for the quick reply
Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore »

ok, give this a try.

first, install cash mod

next, open up your posting.php
FIND

Code: Select all

define('IN_PHPBB', true);
AFTER, ADD

Code: Select all

define('CM_EVENTS',true);
FIND (Around line 480)

Code: Select all

			$vote_id = $vote_info['vote_id'];
BEFORE, ADD

Code: Select all

			$sql = "SELECT topic_starter FROM " . TOPICS_TABLE . "
				WHERE topic_id = $topic_id";
			if ( !($result2 = $db->sql_query($sql)) )
			{
				message_die(GENERAL_ERROR, 'Could not obtain topic starter data', '', __LINE__, __FILE__, $sql);
			}
			
			if ( $row = $db->sql_fetchrow($result2) )
			{
				$starter = new cash_user($row[0]);
				$starter->give_by_id_array($GLOBAL['cm_events']->get_event_data('vote'));
			}
finally, in your admincp, open up 'cash events' and create an event called 'vote' (note, it has to be the same name as in the last line of the code)
$starter->give_by_id_array($GLOBAL['cm_events']->get_event_data('vote'));


you can specify how much you want a person to earn for each person voting on their topic there.

Edit:
(disclaimer: this is the first time i've actually written an 'event' script, there's no guarantee it will work. events are being revamped, re-engineered, and completely redone in cash mod 2.3.7, and i might also include some scripts as optional mini add-ons)

Edit edit: Q-Zar: If this runs into problems, do you think you could give this script a test, and let me know how it turns out? (your french is a lot better than mine)
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod
Percu.org
Registered User
Posts: 88
Joined: Sun Apr 28, 2002 2:54 pm
Location: Valence (France)
Contact:

Post by Percu.org »

Edit:
(disclaimer: this is the first time i've actually written an 'event' script, there's no guarantee it will work. events are being revamped, re-engineered, and completely redone in cash mod 2.3.7, and i might also include some scripts as optional mini add-ons)


I'm really thanksfull for your help regarding this 'event' script. I cant test it until this afternoon (european time), but for sure i will give a feedback tomorrow morning.

your mod is well really what i was expecting to do/find for our board. it will be used as discount cash on Oscommerce wich will both use PhpBB's database And the one form OsCommerce.

Once again, i give you a feedback tomorrow morning ;)

thanks again.
Q-Zar
Registered User
Posts: 779
Joined: Sun Nov 17, 2002 8:30 pm
Location: Brussels
Contact:

Post by Q-Zar »

Xore : no problem, as French is my native language it should be better than yours yes :P
Did you see the "getting started" file I made ? Do you approve the content or did I make a mistake (or misunderstood a function) ?
Traductions : Cash Mod v2.2.2 (Getting Started) / Dice Mod v1.2.3 / Activity Mod Plus 1.0.8
Remember this. Please read the F.A.Q/Troubleshooting of a mod before asking questions.
Image
Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore »

Q-Zar wrote: Xore : no problem, as French is my native language it should be better than yours yes :P
Did you see the "getting started" file I made ? Do you approve the content or did I make a mistake (or misunderstood a function) ?


yes it's great :-)
Q-Zar wrote: People who give out support are volatile characters who need to be pleased and worshipped, so try to stay on their good side ;)


:lol: :D :lol: (congratulations, you have succeeded in making me laugh *before* my morning coffee, this is a rare and wondrous thing)
user_points, user_dollars, uset_gil, uset_euros

just 2 small typos there that you might want to fix. Otherwise it's great

re: troubleshooting
Or it's one everyone knows about, but just didn't tell you; or it's one we were too lazy to put in the Troubleshooting


if you ever see something you think should go in troubleshooting, please, by all means, let me know and i'll put it there

Great job :D
thanks a million Q-Zar
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod
Percu.org
Registered User
Posts: 88
Joined: Sun Apr 28, 2002 2:54 pm
Location: Valence (France)
Contact:

Post by Percu.org »

Xore,

is there anyway to get a maximum value for a money and to stop increase donation/normal increase if the maximum value is reached ?
busterblader103
Registered User
Posts: 80
Joined: Sun Sep 07, 2003 6:08 pm

Post by busterblader103 »

hey xore,

I have a question.

This kinda has to do with Zarath[sorry if misspelled]'s mod, but I want to know if we do it with yours.

Ok in his shop mod, can you give certain usergroups or people discounts? I want to know if you can do this with the cash mod...
Post Reply

Return to “[2.0.x] MOD Database Releases”