[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.
Xplosive
I've Been Banned!
Posts: 114
Joined: Sun Aug 16, 2009 6:57 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Xplosive »

Handyman can you update this MOD to work with phpBB3? I can't seem to get it to work because non of the
edits can be found... :roll:
TheStreetGods
Registered User
Posts: 28
Joined: Sun Aug 02, 2009 9:53 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by TheStreetGods »

Xplosive wrote:Handyman can you update this MOD to work with phpBB3? I can't seem to get it to work because non of the
edits can be found... :roll:
Works fine for phpbb3 for me. The donate button is the only thing I can't get working lol
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` »

TheStreetGods wrote:
Xplosive wrote:Handyman can you update this MOD to work with phpBB3? I can't seem to get it to work because non of the
edits can be found... :roll:
Works fine for phpbb3 for me. The donate button is the only thing I can't get working lol
What issue are you having with it?
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)
Xplosive
I've Been Banned!
Posts: 114
Joined: Sun Aug 16, 2009 6:57 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Xplosive »

A lot of the finds can't be found in the files, I might try again but I doubt I'll have any luck :(
comkidwizzer3
Registered User
Posts: 375
Joined: Fri Jul 13, 2007 8:24 am
Location: $user->data['user_location'];
Contact:

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by comkidwizzer3 »

Are you using AutoMOD or are you sure your using subSilver2 edits not proSilver or the other way around?
~My MODs~
Login After Register - v1.0.0 | Custom Ranks MOD - RC

~!Hasher!~
TheStreetGods
Registered User
Posts: 28
Joined: Sun Aug 02, 2009 9:53 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by TheStreetGods »

Wow like I said, search for one part of the line. That's what I did, if you can't find it, just insert the line if it's missing. Only prob with mine is you cant donate.
Lord Phobos
Registered User
Posts: 613
Joined: Tue May 18, 2004 11:41 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Lord Phobos »

Hi

I've got a SERIOUS problem with this mod.
After installing it, if I try to go in the ACP, my ACP page is TOTALLY blank.

I tried to fix rechecking each edit, but they are fine and I didn't have any problems in finding the lines.
In the download pack, I noted a VERY weird thing: many, MANY of the php files, lacked the "?>" at the end of the file...

So, I've added that line at each php file in which it was missing (included lang files) and reuploaded all.
Nothing.

So, what can I do now?
Why my ACP is blank?

Plz answer ASAP. :(

thanks in advance.
Lord Phobos
Registered User
Posts: 613
Joined: Tue May 18, 2004 11:41 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Lord Phobos »

It seems the problem lies in my translation of the LANG files.
If I use the EN files in my IT directory, all works fine.

But I can't find any errors in my translations code...

Here they are, plz tell me what is wrong.

cash_mod.php

Code: Select all

<?php
/**
*
* common [English]
*
* @package language
* @version $Id: cash_mod.php 51 2008-07-06 22:53:55Z Handyman $
* @copyright (c) 2008 StarTrekGuide Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	'ADD_CURRENCY'				=> 'Aggiungi valuta',

	'CASH_ATTACHMENT'			=> 'Denaro per allegati',
	'CASH_ATTACHMENT_CURRENCY'	=> 'Ricevi denaro in questa valuta per nuovi allegati',
	'CASH_ATTACHMENT_PER_FILE'	=> 'Denaro per ogni nuovo allegato',
	'CASH_DISPLAY_CURRENCY'		=> 'Mostra valuta',
	'CASH_DONATE'				=> 'Donazione denaro',
	'CASH_DONATE_EXPLAIN'		=> 'Puo\' donare in questa valuta ad altri utenti',
	'CASH_EXCHANGE'				=> 'Cambio denaro',
	'CASH_EXCHANGE_EXPLAIN'		=> 'Puo\' scambiare questa valuta con altre valute',
	'CASH_NAME'					=> 'Nome denaro',
	'CASH_POLL'					=> 'Denaro per nuovo sondaggio',
	'CASH_POLL_CURRENCY'		=> 'Ricevi denaro in questa valuta quando crei un nuovo sondaggio',
	'CASH_POLL_PER_OPTION'		=> 'Denaro per opzione in nuovi sondaggi',
	'CASH_POST'					=> 'Denaro per nuovi post',
	'CASH_POST_CURRENCY'		=> 'Ricevi denaro in questa valuta creando nuovi post',
	'CASH_POST_PER_CHARACTER'	=> 'Denaro per carattere in nuovi post',
	'CASH_POST_PER_WORD'		=> 'Denaro per parola in nuovi post',
	'CASH_RATES'				=> 'Tassi di cambio',
	'CASH_TOPIC'				=> 'Denaro per nuovi topic',
	'CASH_TOPIC_CURRENCY'		=> 'Ricevi denaro in questa valuta creando nuovi topic',
	'CASH_TOPIC_PER_CHARACTER'	=> 'Denaro per carattere in nuovi topic',
	'CASH_TOPIC_PER_WORD'		=> 'Denaro per parola in nuovi topic',
	'CASH_VALUE'				=> 'Valore denaro',
	'CASH_VALUE_EXPLAIN'		=> 'Il valore di questa valuta comparato alla tua valuta principale (la prima). La tua prima valuta dovrebbe essere a "1" per darti un punto di partenza',
	'CREATE_CURRENCY'			=> 'Crea qui sotto una nuova valuta',
	'CURRENCY_ADDED'			=> 'Aggiunta %1$s con successo',
	'CURRENCY_LIST'				=> 'Questa e\' una lista delle valute che hai aggiunto',
	'CURRENCY_UPDATED'			=> 'Aggiornata %1$s con successo',

	'DELETE_CURRENCY'			=> 'La cancellazione non e\' ancora disponibile. Modifica la valuta in modo da poterla usare e non disturbare Handyman su questo argomento :P',
	'DONATE'					=> 'Donazione',

	'EDITING'					=> 'Modifiche',
	'EXCHANGE_FEE'				=> 'Commissione di cambio',
	'EXCHANGE_FEE_EXPLAIN'		=> 'Tassa fissa addebitata all\'utente quando cambia questa valuta',
	'EXCHANGE_PERCENT'			=> 'Percentuale di cambio (commissione di transazione)',
	'EXCHANGE_PERCENT_EXPLAIN'	=> 'Commissione in percentuale dell\'ammontare cambiato',
	'EXCHANGE_RATE'				=> 'Tasso di cambio',
	'EXCHANGE_RATES'			=> 'Tassi di cambio',

	'UPDATE_RATES'				=> 'Aggiorna tassi',
	'UPDATE_SETTINGS'			=> 'Aggiorna impostazioni',
));

// UCP Bank
$lang = array_merge($lang, array(
	'DONATE_CURRENCY'			=> 'Dona valuta',
	'DONATE_CURRENCY_EXPLAIN'	=> 'Scegli una valuta da donare',
	'DONATE_EXPLAIN'			=> 'Qui puoi donare denaro ad altri utenti (preso dal tuo) in ogni valuta che possiedi.',
	'DONATION_AMOUNT'			=> 'Ammontare della donazione',
	'DONATION_AMOUNT_EXPLAIN'	=> 'Ammontare da donare, che non superi la valuta selezionata',
	'DONATION_FAILED'			=> 'Impossibile donare. Hai cercato di donare piu\' fondi di quelli che possiedi. Hai cercato di fottermi.',
	'DONATION_SUCCESSFUL'		=> 'Donati con successo %1$s a %2$s',
	'NO_USER_SELECTED'			=> 'Non hai scelto un utente a cui donare. Pirla. <br />Per selezionare un utente, vai al suo profilo o ad un suo post e clicca sul suo link di donazione',
	'USERS_CASH'				=> 'Denaro di %1$s',
	'USERS_CASH_EXPLAIN'		=> 'Il denaro di questo utente',
));

// Add currencies here for each of your languages if you need it in more than 1 language
$lang = array_merge($lang, array(
	'CASH'	=> 'Denaro',
));
?>
info_acp_cash.php

Code: Select all

<?php
/**
*
* common [English]
*
* @package language
* @version $Id: info_acp_cash.php 53 2008-07-11 08:01:28Z Handyman $
* @copyright (c) 2008 StarTrekGuide Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//
$lang['permission_cat']['cash'] = 'Cash';
$lang = array_merge($lang, array(
	'ACP_BANK'			=> 'Impostazioni banca',
	'ACP_CASH'			=> 'Cash MOD',
	'ACP_CASH_MOD'		=> 'Cash MOD',
	'ACP_CASH_SETTINGS'	=> 'Impostazioni denaro',
	'ACP_CASH_USERS'	=> 'Utenti',
	'CASH_SETTINGS'		=> 'Impostazioni denaro',
	'EDIT_CURRENCY'		=> 'Modifica valuta',
	'UCP_BANK'			=> 'Banca',
	'UCP_BANK_DONATE'	=> 'Donazioni',
));

$lang = array_merge($lang, array(
	'acl_a_cash_manage'				=> array('lang' => 'Puo\' gestire le impostazioni denaro',						'cat' => 'cash'),
	'acl_a_bank_manager'			=> array('lang' => 'Può gestire le impostazioni banca',							'cat' => 'cash'),
	'acl_m_cash_manage'				=> array('lang' => 'Puo\' gestire il denaro degli utenti',						'cat' => 'cash'),
	'acl_m_bank_manager'			=> array('lang' => 'Puo\' gestire i conti bancari degli utenti',				'cat' => 'cash'),
	'acl_f_cash_topic_words'		=> array('lang' => 'Riceve denaro in nuovi topic per parola',					'cat' => 'cash'),
	'acl_f_cash_topic_characters'	=> array('lang' => 'Riceve denaro in nuovi topic per carattere',				'cat' => 'cash'),
	'acl_f_cash_topic'				=> array('lang' => 'Riceve denaro per nuovi topic', 							'cat' => 'cash'),
	'acl_f_cash_post_words'			=> array('lang' => 'Riceve denaro per parola in nuovi post',					'cat' => 'cash'),
	'acl_f_cash_post_characters'	=> array('lang' => 'Riceve denaro per carattere in nuovi post',					'cat' => 'cash'),
	'acl_f_cash_post'				=> array('lang' => 'Riceve denaro per nuovi post',								'cat' => 'cash'),
	'acl_f_cash_cash_words'			=> array('lang' => 'Riceve denaro in nuovo denaro per parola',					'cat' => 'cash'),
	'acl_f_cash_cash_characters'	=> array('lang' => 'Riceve denaro in nuovo denaro per carattere',				'cat' => 'cash'),
	'acl_f_cash_cash'				=> array('lang' => 'Riceve denaro per nuovo denaro',							'cat' => 'cash'),
	'acl_f_cash_poll_options'		=> array('lang' => 'Riceve denaro in nuovi sondaggi per opzione di sondaggio'	'cat' => 'cash'),
	'acl_f_cash_poll'				=> array('lang' => 'Riceve denaro per nuovi sondaggi',							'cat' => 'cash'),
	'acl_f_cash_attachment_files'	=> array('lang' => 'Riceve denaro in nuovi allegati, per allegato',				'cat' => 'cash'),
	'acl_f_cash_attachment'			=> array('lang' => 'Ricevi denaro per nuovi allegato',							'cat' => 'cash'),
));
?>
info_ucp_bank.php

Code: Select all

<?php
/**
*
* common [English]
*
* @package language
* @version $Id: info_ucp_bank.php 48 2008-07-06 19:24:48Z Handyman $
* @copyright (c) 2008 StarTrekGuide Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	'UCP_BANK'			=> 'Banca',
	'UCP_BANK_DONATE'	=> 'Donazione',
));
?>
Lord Phobos
Registered User
Posts: 613
Joined: Tue May 18, 2004 11:41 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Lord Phobos »

Ok, using eng lang files (for now, until you help me out :D) it is working fine.
But I seriously want it upgraded, it's been way too much time abandoned as a project, and we all just need a function to add/remove cash from ACP.

Without it, all the sense of this mod is lost, and cash is perfectly useless.
I want to give my users "prizes" if they accept to spend some of their cash they win with posts, topic and Arcade Mod.
If I must go to phpMyAdmin to do that... well, is terrible.

Do somebody developed a simple SQL command to add/remove cash, even to whole groups of users? Even very large ones?

And what about giving EACH registered user some cash (like 10)? To new users and old ones, too.

Thanks.

This is the table with the amount of cash: phpbb_cash_amt
Ok.

It only shows user_ids of users who ALREADY have some cash.
My cash id used is "3".

I need an SQL command that adds one line for EACH existing user id in the user's table and gives 10 cash to them.

Can you help me?

I think making up a function to automatically add 10 cash to NEW users would be far more difficult.
DogZeus
Registered User
Posts: 3
Joined: Thu Oct 22, 2009 11:44 pm
Location: Brasil | Rio de Janeiro - RJ

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by DogZeus »

I installed but I have the following problem, when I shall not appear in the amount of gold. The following images:

Image
This image is viewing the profile, as you can see appears the amount of money 41cash.

--

Image
This image is viewing the list of members, as you can see does not show the amount of cash.

--


The code I'm using is:

Code: Select all

<!-- IF memberrow.CASH --><a href="{memberrow.U_EDIT_CASH}">{memberrow.CASH}</a><!-- ENDIF -->

Page: memberlist_body.html


I am also having problem in shop mod if someone can help me there too!
Thank you!
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` »

@Lord Phobos, please see the topic on StarTrekGuide for the reply since you posted there as well.
@DogZeus, There may be an issue with the memberlist, but I don't remember what the viewprofile was supposed to look at… I was mainly working with the API for the last update.
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)
AbiDez
Registered User
Posts: 12
Joined: Mon Nov 17, 2008 11:33 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by AbiDez »

Hello Handyman, i've regged on StarTrekGuide, but no activation mail arrived me...
I have a question, please help me....

When a User cash donate to a other User, (I'm German, my English iss terrible^^)
can you implement that the User that spend a transaction mail arrived, and the User there become
the cash, a transactionmail become too ????
Our Board use a Shop with your CashMod and transactions mail to sender & receiver it's really important for us.

Greetings AbiDez
AbiDez
Registered User
Posts: 12
Joined: Mon Nov 17, 2008 11:33 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by AbiDez »


* Report this post
* Reply with quote

Re: [BETA] Cash Mod 1.0.0 Beta 1

Postby Fred_Spider » Sun Jul 05, 2009 6:23 am
First of all, thanks for this great MOD!

I've made some modifications by myself and I would like to share with you and all the other users:

:arrow: I've added a cash transaction system that allow users to see who is donating to who (I think some users are after this...) and also added a new field to user write the "reason" to donate. The transaction options are "Transactions for me", "Transactions I made" and "Global Transactions".

:arrow: And the other modification is to acess the donation page directly from the UCP, and the user can write the name of the user he wants to donate. The donation links on profiles and viewtopic still works too, of course.

I only have to edit two of your files: ucp_bank.php and ucp_bank_donate.html.
My included files are:
- includes/ucp/ucp_trans.php
- includes/ucp/info/ucp_trans.php
- language/en/mods/info_ucp_trans.php
- styles/prosilver/template/ucp_transtome.html
- styles/prosilver/template/ucp_transfromme.html
- styles/prosilver/template/ucp_transglobal.html

I am providing here the link to download my modification. Take a look if you're interested:
http://www.mediafire.com/download.php?3zjjywwznmi

It's also needed to create a table to store the transactions (it's described in a file called "SQL.txt"). After that, the modules can be installed via ACP (System -> UCP).

Works great for me, I'm using in my board without problems. If you like it please PM-me to let me know. If anyone likes too, PM-me too to share some ideas. The code isn't 100% good (still need a language file to be complete) but works fine. ;)
Last edited by Fred_Spider on Fri Aug 28, 2009 1:52 pm, edited 1 time in total.
Has anybody this modification für CashMod, and can give it to me ????
The DL Link is not available. The Support doesn't answer.
Guminukas
Registered User
Posts: 23
Joined: Tue Sep 22, 2009 6:00 pm

Re: [BETA] Cash Mod 1.0.0 Beta 1

Post by Guminukas »

Code: Select all

SQL ERROR [ mysql4 ]

Table 'Guminukas_1.CASH_TABLE' doesn't exist [1146]

SQL

INSERT INTO CASH_TABLE (cash_name, cash_exchange, cash_donate) VALUES ('Cash', 1, 1)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/acp/info/acp_cash.php
LINE: 617
CALL: dbal_mysql->sql_query()

FILE: includes/acp/info/acp_cash.php
LINE: 173
CALL: acp_cash_info->populate_tables()

FILE: includes/acp/info/acp_cash.php
LINE: 24
CALL: acp_cash_info->install()

FILE: includes/acp/acp_modules.php
LINE: 588
CALL: acp_cash_info->module()

FILE: includes/acp/acp_modules.php
LINE: 189
CALL: acp_modules->get_module_infos()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_modules->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active(

Where I can get sql table? -.-
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` »

Guminukas wrote:

Code: Select all

SQL ERROR [ mysql4 ]

Table 'Guminukas_1.CASH_TABLE' doesn't exist [1146]

SQL

INSERT INTO CASH_TABLE (cash_name, cash_exchange, cash_donate) VALUES ('Cash', 1, 1)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/acp/info/acp_cash.php
LINE: 617
CALL: dbal_mysql->sql_query()

FILE: includes/acp/info/acp_cash.php
LINE: 173
CALL: acp_cash_info->populate_tables()

FILE: includes/acp/info/acp_cash.php
LINE: 24
CALL: acp_cash_info->install()

FILE: includes/acp/acp_modules.php
LINE: 588
CALL: acp_cash_info->module()

FILE: includes/acp/acp_modules.php
LINE: 189
CALL: acp_modules->get_module_infos()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_modules->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active(

Where I can get sql table? -.-
If you run the install file that comes with the download, it will automatically install the tables required.
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)
Locked

Return to “[3.0.x] Abandoned MODs”