Page 245 of 798

Posted: Tue Jun 08, 2004 11:48 am
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. :)

Posted: Tue Jun 08, 2004 12:08 pm
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..

Posted: Tue Jun 08, 2004 2:08 pm
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

Posted: Tue Jun 08, 2004 2:21 pm
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

Posted: Tue Jun 08, 2004 4:21 pm
by Xore
rattrap: are you using a portal system at all?

Posted: Tue Jun 08, 2004 5:18 pm
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]

Posted: Wed Jun 09, 2004 7:22 am
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 ;)

Posted: Wed Jun 09, 2004 7:27 am
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?

Posted: Wed Jun 09, 2004 7:33 am
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

Posted: Wed Jun 09, 2004 7:56 am
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)

Posted: Wed Jun 09, 2004 8:07 am
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.

Posted: Wed Jun 09, 2004 11:27 am
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) ?

Posted: Wed Jun 09, 2004 4:16 pm
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

Posted: Wed Jun 09, 2004 7:48 pm
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 ?

Posted: Wed Jun 09, 2004 7:57 pm
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...