[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

busterblader103
Registered User
Posts: 80
Joined: Sun Sep 07, 2003 6:08 pm

Post by busterblader103 »

the cash thing... do i save it like in the templates or images(just an example) or somethin like that
User avatar
naderman
Consultant
Consultant
Posts: 3736
Joined: Fri Aug 01, 2003 10:06 pm
Location: Berlin, Germany
Name: Nils Adermann
Contact:

Post by naderman »

read the CashMod202.txt.
I appreciate gifts from my Amazon wishlist.
naderman.de twitter: @naderman
Adrian Blades
Registered User
Posts: 5
Joined: Thu Jul 11, 2002 6:51 pm
Contact:

Post by Adrian Blades »

How would I go about adding how much money each member has as a column on the memberlist?
User avatar
naderman
Consultant
Consultant
Posts: 3736
Joined: Fri Aug 01, 2003 10:06 pm
Location: Berlin, Germany
Name: Nils Adermann
Contact:

Post by naderman »

That will be a part of the next version: Features for 2.1.0 you will have to scroll down a bit.
I appreciate gifts from my Amazon wishlist.
naderman.de twitter: @naderman
busterblader103
Registered User
Posts: 80
Joined: Sun Sep 07, 2003 6:08 pm

Post by busterblader103 »

naderman wrote: read the CashMod202.txt.

woa, that is way too long and complicated for me to read? whats it mean? where do i save it?
User avatar
naderman
Consultant
Consultant
Posts: 3736
Joined: Fri Aug 01, 2003 10:06 pm
Location: Berlin, Germany
Name: Nils Adermann
Contact:

Post by naderman »

save it wherever you want and read it.
I appreciate gifts from my Amazon wishlist.
naderman.de twitter: @naderman
busterblader103
Registered User
Posts: 80
Joined: Sun Sep 07, 2003 6:08 pm

Post by busterblader103 »

then how do i get it onto my forum?
User avatar
naderman
Consultant
Consultant
Posts: 3736
Joined: Fri Aug 01, 2003 10:06 pm
Location: Berlin, Germany
Name: Nils Adermann
Contact:

Post by naderman »

you would know if you read that file.
I appreciate gifts from my Amazon wishlist.
naderman.de twitter: @naderman
limitless
Registered User
Posts: 28
Joined: Wed Aug 27, 2003 9:56 pm

Post by limitless »

Excuse me but, I get this error when I hit Submit Button... I think it's because of Cash MOD... please help
Failed to update general configuration for cash_disable_spam_message

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near 're not earning money on this post! Ha!' WHERE config_name = 'cash_disable_sp' at line 2

UPDATE ow_config SET config_value = 'YOU SPAMMER! Stop cheating! You're not earning money on this post! Ha!' WHERE config_name = 'cash_disable_spam_message'

Line : 62
File : /home/limitlessgroup/outwar/admin/admin_board.php
busterblader103
Registered User
Posts: 80
Joined: Sun Sep 07, 2003 6:08 pm

Post by busterblader103 »

naderman wrote: you would know if you read that file.


the file is like extremely too long, cant you just tell me?
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 »

Xore wrote: limitless: your problem is that you have a ' in your spam message. unfortunately, this causes some issues at present.

Having a message without a ' will solve your problem.

I've already fixed this for the next version of Cash Mod.


Specifically, the word " you're "
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod
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 »

busterblader103 wrote:
naderman wrote:you would know if you read that file.


the file is like extremely too long, cant you just tell me?


If he were to tell you, it would take longer and be more confusing than the instructions in that file. The MOD Template has been developed so that people can be (read:) spoonfed ways on how to enhance their forums.

Are you suggesting that something my friend's ten year old little brother found easy is too difficult for you?
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod
busterblader103
Registered User
Posts: 80
Joined: Sun Sep 07, 2003 6:08 pm

Post by busterblader103 »

yes

##############################################################
## MOD Title: Cash Mod
## MOD Author: Xore < xore@azuriah.com > (Xore) http://forums.azuriah.com
## MOD Description: Cash Mod for users to gain money/points by posting
## MOD Version: 2.0.2
##
## Installation Level: Intermediate
## Installation Time: 15 Minutes
## Files To Edit: viewtopic.php,
## includes/constants.php
## includes/usercp_viewprofile.php,
## includes/functions_post.php
## language/lang_english/lang_admin.php,
## language/lang_english/lang_main.php,
## templates/subSilver/viewtopic_body.tpl,
## templates/subSilver/profile_view_body.tpl
## Included Files: exchange.php
## includes/functions_cash.php
## admin/admin_cash_config.php
## admin/admin_cash_currencies.php
## admin/admin_cash_exchange.php
## admin/admin_cash_forums.php
## admin/admin_cash_help.php
## admin/admin_cash_log.php
## admin/admin_cash_settings.php
## templates/subSilver/exchange_body.tpl
## templates/subSilver/admin/cash_config.tpl
## templates/subSilver/admin/cash_currencies.tpl
## templates/subSilver/admin/cash_exchange.tpl
## templates/subSilver/admin/cash_forum.tpl
## templates/subSilver/admin/cash_help.tpl
## templates/subSilver/admin/cash_log.tpl
## templates/subSilver/admin/cash_settings.tpl
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Well, this Mod took long enough to finish
## I'd like to thank everyone who helped me with it, notably
## Yami-Bahamut (mssql compliance, UI Design)
## Heimidal (regular expression matching)
## Rancisis (sql installer)
## LifeIsPain (information on coding standards)
## AbelaJohnB, Rancisis, ilpil, rirath, nota (helping me find bugs)
## ... and a few others.
##############################################################
## MOD History:
## v2.0.2 Another Bug fix, plus help/support link.
## v2.0.1 A few bug fixes...
## v2.0.0 Multiple currencies, fixed log_actions mod incompatibility
## And a bunch of other stuff ;-)
## v1.1.2 EasyMOD Compliance
## v1.1.1 Bug fix for admin panels
## v1.1.0 Forum management added, donations, admin editing, logging, quotes stripping
## Renaming from MoneySystems to Cash Mod
## v1.0.1 SQL update, with quotes
## v1.0.0 First version release. no bugs, i hope :P
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy exchange.php to exchange.php
copy includes/functions_cash.php to includes/functions_cash.php
copy admin/admin_cash_config.php to admin/admin_cash_config.php
copy admin/admin_cash_currencies.php to admin/admin_cash_currencies.php
copy admin/admin_cash_exchange.php to admin/admin_cash_exchange.php
copy admin/admin_cash_forums.php to admin/admin_cash_forums.php
copy admin/admin_cash_help.php to admin/admin_cash_help.php
copy admin/admin_cash_log.php to admin/admin_cash_log.php
copy admin/admin_cash_settings.php to admin/admin_cash_settings.php
copy templates/subSilver/exchange_body.tpl to templates/subSilver/exchange_body.tpl
copy templates/subSilver/admin/cash_config.tpl to templates/subSilver/admin/cash_config.tpl
copy templates/subSilver/admin/cash_currencies.tpl to templates/subSilver/admin/cash_currencies.tpl
copy templates/subSilver/admin/cash_exchange.tpl to templates/subSilver/admin/cash_exchange.tpl
copy templates/subSilver/admin/cash_forum.tpl to templates/subSilver/admin/cash_forum.tpl
copy templates/subSilver/admin/cash_help.php to templates/subSilver/admin/cash_help.tpl
copy templates/subSilver/admin/cash_log.tpl to templates/subSilver/admin/cash_log.tpl
copy templates/subSilver/admin/cash_settings.tpl to templates/subSilver/admin/cash_settings.tpl

#
#-----[ SQL ]------------------------------------------
#
# If you don't know how to execute sql queries, then copy
# mysql_install.php into your phpbb directory and run it.
# (assuming you use mysql)
#
# If you don't use mysql, you'll have to edit these queries accordingly
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
INSERT INTO phpbb_config (config_name, config_value) VALUES
('cash_disable',0),
('cash_display_after_posts',1),
('cash_post_message','You earned %s for that post'),
('cash_disable_spam_num',10),
('cash_disable_spam_time',24),
('cash_disable_spam_message','You have exceeded the alloted amount of posts and will not earn anything for your post'),
('cash_installed','yes'),
('cash_version','2.0.2'),
('points_name','Points')

#
#-----[ SQL ]------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
CREATE TABLE phpbb_cash (
cash_id SMALLINT(6) NOT NULL AUTO_INCREMENT ,
cash_order SMALLINT(6) NOT NULL ,
cash_enabled TINYINT(1) DEFAULT '1' NOT NULL ,
cash_dbfield VARCHAR(64) NOT NULL ,
cash_name VARCHAR(64) DEFAULT 'GP' NOT NULL ,
cash_image TINYINT(1) DEFAULT '0' NOT NULL ,
cash_imageurl VARCHAR(255) NOT NULL ,
cash_exchange INT(11) DEFAULT '1' NOT NULL ,
cash_before TINYINT(1) DEFAULT '1' NOT NULL ,
cash_perpost INT(11) DEFAULT '25' NOT NULL ,
cash_postbonus INT(11) DEFAULT '2' NOT NULL ,
cash_perreply INT(11) DEFAULT '25' NOT NULL ,
cash_maxearn INT(11) DEFAULT '75' NOT NULL ,
cash_perchar DECIMAL(10,3) DEFAULT '.02' NOT NULL ,
cash_includequotes TINYINT(1) DEFAULT '0' NOT NULL ,
cash_profiledisplay TINYINT(1) DEFAULT '1' NOT NULL ,
cash_donate TINYINT(1) DEFAULT '1' NOT NULL ,
cash_modedit TINYINT(1) DEFAULT '0' NOT NULL ,
cash_allowneg TINYINT(1) DEFAULT '0' NOT NULL ,
cash_postdisplay TINYINT(1) DEFAULT '1' NOT NULL ,
cash_forumlisttype TINYINT(1) DEFAULT '1' NOT NULL ,
cash_forumlist VARCHAR(255) NOT NULL ,
cash_log TINYINT(1) DEFAULT '1' NOT NULL ,
PRIMARY KEY (cash_id)
);

#
#-----[ SQL ]------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
CREATE TABLE phpbb_cash_log (
log_id INT(11) NOT NULL auto_increment,
log_time INT(11) NOT NULL,
log_type SMALLINT(6) NOT NULL,
log_text VARCHAR(255) NOT NULL,
PRIMARY KEY (log_id) ,
INDEX (log_time, log_type)
);

#
#-----[ SQL ]------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
CREATE TABLE phpbb_cash_exchange (
ex_cash_id1 INT(11) NOT NULL ,
ex_cash_id2 INT(11) NOT NULL ,
ex_cash_enabled INT(1) NOT NULL DEFAULT '0',
PRIMARY KEY (ex_cash_id1,ex_cash_id2)
);

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts,

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$cash_data = array();
$cash_field = "";
if ( !$board_config['cash_disable'] )
{
$sql = "SELECT cash_dbfield, cash_name, cash_image, cash_imageurl
FROM " . CASH_TABLE . "
WHERE cash_enabled = 1 AND cash_postdisplay = 1
ORDER BY cash_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain Cash Mod information.", '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$cash_data[] = $row;
$cash_field .= $row['cash_dbfield'] . ", ";
}
}

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_allowsmile,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
# Note: there should *not* be a comma after $cash_field, just a space
#
$cash_field

#
#-----[ FIND ]------------------------------------------
#
'U_POST_ID' => $postrow[$i]['post_id'])

#
#-----[ AFTER, ADD ]------------------------------------------
#
);

foreach ( $cash_data AS $cash_set )
{
$template->assign_block_vars('postrow.cashrow', array( 'CASH_NAME' => (($cash_set['cash_image'] == 1)?('<img src="'.$phpbb_root_path.$cash_set['cash_imageurl'].'" />'):($cash_set['cash_name'])),
'CASH_AMOUNT' => $postrow[$i][$cash_set['cash_dbfield']]));
}

while ( false

#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php

#
#-----[ FIND ]------------------------------------------
#
// Table names

#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Log Settings
define('CASH_LOG_DONATE', 1);
define('CASH_LOG_ADMIN_REMOVE', 2);
define('CASH_LOG_ADMIN_GIVE', 3);
define('CASH_LOG_ADMIN_CREATE_CURRENCY',4);
define('CASH_LOG_ADMIN_DELETE_CURRENCY',5);
define('CASH_LOG_ADMIN_SET_CURRENCY',6);
define('CASH_LOG_ADMIN_RENAME_CURRENCY',7);

#
#-----[ FIND ]------------------------------------------
#
define('BANLIST_TABLE', $table_prefix.'banlist');

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('CASH_TABLE', $table_prefix.'cash');
define('CASH_EXCHANGE_TABLE', $table_prefix.'cash_exchange');
define('CASH_LOGS_TABLE', $table_prefix.'cash_log');

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------
#
$profiledata = get_userdata($HTTP_GET_VARS[POST_USERS_URL]);

#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( !($board_config['cash_disabled']) )
{
include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);

$cash_table = array();
$indices = array();

get_cash_table($cash_table,$indices);

if ( isset($HTTP_POST_VARS['admin_donate']) && ($HTTP_POST_VARS['admin_donate'] == 1) )
{
cash_admin_donate($HTTP_GET_VARS[POST_USERS_URL],$userdata,$HTTP_POST_VARS['admin_amount'],$cash_table[$HTTP_POST_VARS['cash_type']]);
}

if ( isset($HTTP_POST_VARS['member_donate']) && ($HTTP_POST_VARS['member_donate'] == 1) )
{
cash_user_donate($HTTP_GET_VARS[POST_USERS_URL],$userdata,$HTTP_POST_VARS['donate_amount'],$cash_table[$HTTP_POST_VARS['cash_type']]);
}

}

#
#-----[ FIND ]------------------------------------------
#
'L_INTERESTS' => $lang['Interests'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_EXCHANGE' => $lang['Exchange'],

#
#-----[ FIND ]------------------------------------------
#
'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username'])),

#
#-----[ AFTER, ADD ]------------------------------------------
#
'U_EXCHANGE' => append_sid("exchange.$phpEx"),

#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$cash_count = 0;
foreach ( $cash_table AS $cash_set )
{
if( !($board_config['cash_disable']) && (($cash_set['cash_enabled'] && $cash_set['cash_profiledisplay']) || ($userdata['user_level'] == ADMIN)) )
{
$template->assign_block_vars('cashrow', array( 'CASH_NAME' => (($cash_set['cash_image'])?('<img src="'.$phpbb_root_path.$cash_set['cash_imageurl'].'" />'):($cash_set['cash_name'])),
'CASH_AMOUNT' => $profiledata[$cash_set['cash_dbfield']],
'CASH_TYPE' => $cash_set['cash_id'],

'DONATER_CASH' => $userdata[$cash_set['cash_dbfield']],

'L_DONATE' => $lang['Donate'],
'L_ADD_CASH' => sprintf($lang['Add_cash'], $cash_set['cash_name']),

'S_DONATE_ACTION' => append_sid("profile.$phpEx?mode=viewprofile&u=".$HTTP_GET_VARS[POST_USERS_URL]),
'S_ADMIN_ACTION' => append_sid("profile.$phpEx?mode=viewprofile&u=".$HTTP_GET_VARS[POST_USERS_URL]))
);
if ( $cash_set['cash_enabled'] && $cash_set['cash_donate'] && $userdata['session_logged_in'] && ($userdata['user_id'] != $profiledata['user_id']) )
{
$template->assign_block_vars('cashrow.switch_donatedisplay', array());
}
if ( ($userdata['user_level'] == ADMIN) || (($cash_set['cash_modedit'] == 1) && ($userdata['user_level'] == MOD)) )
{
$template->assign_block_vars('cashrow.switch_admindisplay', array());
}
$cash_count++;
}
}
if ( !$board_config['cash_disable'] && ($cash_count > 1) )
{
$template->assign_block_vars("switch_exchangeon", array());
}

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]------------------------------------------
#
$html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#');

#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( !$board_config['cash_disable'] )
{
include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);
}

#
#-----[ FIND ]------------------------------------------
#
$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$cash_message = "";
if ( !$board_config['cash_disable'] )
{
$cash_message = cash_update($mode,$forum_id,$post_id,$post_message,$current_time);
}

#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Stored']

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['Stored']

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
. '<br />' . $cash_message

#
#-----[ FIND ]------------------------------------------
#
function delete_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;

#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( !$board_config['cash_disable'] )
{
cash_update($mode,$forum_id,$post_id,$post_message);
}

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------
#
$lang['Visual_confirm_explain']

#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// Cash Mod Configuration
//
$lang['Cash_Configuration'] = 'Cash Configuration';
$lang['Cash_Currencies'] = 'Cash Currencies';
$lang['Cash_Exchange'] = 'Cash Exchange';
$lang['Cash_Forums'] = 'Cash Forums';
$lang['Cash_Logs'] = 'Cash Logs';
$lang['Cash_Settings'] = 'Cash Settings';

$lang['Cash_config'] = 'Cash Mod Configuration';
$lang['Cash_config_explain'] = 'The form below will to set your Cash Mod configuration.';
$lang['Cash_currencies'] = 'Cash Mod Configuration';
$lang['Cash_currencies_explain'] = 'The form below will allow you to manage your currencies.';
$lang['Cash_exchange'] = 'Cash Mod Exchange';
$lang['Cash_exchange_explain'] = 'The form below will allow you to set the relative value of your currencies, and enable users to exchange.';
$lang['Forum_settings'] = 'Forum Settings';
$lang['Forum_settings_explain'] = 'From this panel you can set which forums have Cash Mod enabled';
$lang['Logs'] = 'Logs';
$lang['Logs_explain'] = 'From this panel you can see logged Cash Mod events';
$lang['Cash_settings'] = 'Cash Mod Settings';
$lang['Cash_settings_explain'] = 'The form below will allow you to customize all the Currency Settings.';

// Config
$lang['Messages'] = 'Messages';
$lang['Spam'] = 'Spam';
$lang['Click_return_cash_config'] = 'Click %sHere%s to return to Cash Mod Configuration';
$lang['Cash_config_updated'] = 'Cash Mod Configuration Updated Successfully';
$lang['Cash_disabled'] = 'Disable Cash Mod';
$lang['Cash_message'] = 'Show Earnings in Post/Reply confirmation screen';
$lang['Cash_display_message'] = 'Message to display user earnings';
$lang['Cash_display_message_explain'] = 'Must have exactly one "%s" in it';
$lang['Cash_spam_disable_num'] = 'Number of posts to disable earnings after (spam prevention)';
$lang['Cash_spam_disable_time'] = 'Time peroid over which these posts must exceed (hours)';
$lang['Cash_spam_disable_message'] = 'Spam announcement for null earnings';

// Currencies
$lang['Click_return_cash_currencies'] = 'Click %sHere%s to return to Cash Mod Currencies';
$lang['Cash_currencies_updated'] = 'Cash Mod Currencies Updated Successfully';
$lang['Cash_field'] = 'Field';
$lang['Cash_currency'] = 'Currency';
$lang['Cash_order'] = 'Order';
$lang['Cash_set_all'] = 'Set for all users';
$lang['Cash_delete'] = 'Delete Currency';
$lang['Set'] = 'Set';

$lang['Cash_confirm_reset'] = 'Set all user\'s %s to %s?<br />This cannot be undone';
$lang['Cash_confirm_delete'] = 'Delete %s?<br />This cannot be undone';

$lang['Cash_new_currency'] = 'Create new Currency';
$lang['Cash_currency_dbfield'] = 'Database field for currency';
$lang['Cash_currency_default'] = 'Default value for currency';

// Exchange
$lang['Exchange_insufficient_currencies'] = 'You don\'t have enough Currencies created to create exchange rates<br />At least 2 are required';

// Help
$lang['Cash_Help'] = 'Cash Help';
$lang['Cash_help'] = 'Click <a href="%s">Here</a> for help';

// Settings
$lang['Display'] = 'Display';
$lang['Implementation'] = 'Implementation';
$lang['Click_return_cash_settings'] = 'Click %sHere%s to return to Cash Mod Settings';
$lang['Cash_settings_updated'] = 'Cash Mod Settings Updated Successfully';

$lang['Cash_enabled'] = 'Enable Currency';
$lang['Cash_custom_currency'] = 'Custom Currency for Cash Mod';
$lang['Cash_image'] = 'Display the currency as an image';
$lang['Cash_imageurl'] = 'Image (Relative to phpBB2 root path):';
$lang['Cash_imageurl_explain'] = 'Use this to define a small image associated with the currency';
$lang['Prefix'] = 'Prefix';
$lang['Postfix'] = 'Postfix';
$lang['Cash_currency_style'] = 'Currency style for Cash Mod';
$lang['Cash_currency_style_explain'] = 'Currency symbol as ' . $lang['Prefix'] . ' or ' . $lang['Postfix'];
$lang['Cash_display_usercp'] = 'Show earnings in UserCp';
$lang['Cash_display_userpost'] = 'Show earnings in Post Profile';
$lang['Cash_amount_per_post'] = 'Amount of cash earned per post (new topic)';
$lang['Cash_amount_post_bonus'] = 'Amount of bonus cash earned per reply for topic author';
$lang['Cash_amount_per_reply'] = 'Amount of cash earned per reply';
$lang['Cash_amount_per_character'] = 'Amount of cash earned per character';
$lang['Cash_maxearn'] = 'Maximum amount of cash earned for posting';
$lang['Cash_include_quotes'] = 'Include quotes when calculating cash per character';
$lang['Cash_allow_donate'] = 'Allow users to donate their cash to other users';
$lang['Cash_allow_mod_edit'] = 'Allow moderators to edit user\'s cash';
$lang['Cash_allow_negative'] = 'Allow users to have negative cash amounts';

// Cash Mod Log Text
$lang['Donated'] = 'donated';
$lang['Gave'] = 'gave';
$lang['Removed'] = 'removed';
$lang['Created'] = 'created';
$lang['Deleted'] = 'deleted';
$lang['Set_all_users'] = 'set all users';
$lang['Renamed'] = 'renamed';
$lang['To'] = 'to';
$lang['From'] = 'from';
$lang['Log'] = 'Log';
$lang['Action'] = 'Action';
$lang['All'] = 'All';
$lang['Admin'] = 'Admin';
$lang['User'] = 'User';
$lang['Delete_all_logs'] = 'Delete all logs';
$lang['Delete_admin_logs'] = 'Delete admin logs';
$lang['Delete_user_logs'] = 'Delete user logs';
$lang['Day'] = 'Day';
$lang['Week'] = 'Week';
$lang['Month'] = 'Month';
$lang['Year'] = 'Year';
$lang['Page'] = 'Page';
$lang['Per_page'] = 'per page';

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
$lang['Interests'] = 'Interests';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Donate'] = 'Donate';
$lang['Add_cash'] = 'Add %s';
$lang['Exchange'] = 'Exchange';

#
#-----[ FIND ]------------------------------------------
#
$lang['View_Information']

#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// Exchange
//
$lang['Convert'] = 'Convert';
$lang['Select_one'] = 'Select One';
$lang['Exchange_lack_of_currencies'] = 'There aren\'t enough Currencies for you to be able to exchange<br />To enable this feature, your admin needs to create at least 2 currencies';
$lang['You_have'] = 'You have';
$lang['One_worth'] = 'One %s is worth:';
$lang['Cannot_exchange'] = 'You cannot exchange %s, currently';

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}
<!-- BEGIN cashrow -->
<br />{postrow.cashrow.CASH_NAME}: {postrow.cashrow.CASH_AMOUNT}
<!-- END cashrow -->
</span><br /></td>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN cashrow -->
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{cashrow.CASH_NAME}:</span></td>
<td><table border=0><tr><td width="50"><span class="gen"><b>{cashrow.CASH_AMOUNT}</b></span></td>
<!-- BEGIN switch_donatedisplay -->
<form style="{display: inline;}" action="{cashrow.S_DONATE_ACTION}" method="post"><td><span class="gen"><input type="submit" value="{cashrow.L_DONATE}" class="liteoption" /> <input type="hidden" name="member_donate" value="1" /><input type="hidden" name="cash_type" value="{cashrow.CASH_TYPE}" /><input name="donate_amount" value="0" size="5" class="post" /> / </span></td><td width="50"><span class="gen"><b>{cashrow.DONATER_CASH}</b></span></td></form>
<!-- END switch_donatedisplay -->
<!-- BEGIN switch_admindisplay -->
<form style="{display: inline;}" action="{cashrow.S_ADMIN_ACTION}" method="post"><td><span class="gen"><input type="submit" value="{cashrow.L_ADD_CASH}" class="liteoption" /> <input type="hidden" name="admin_donate" value="1" /><input type="hidden" name="cash_type" value="{cashrow.CASH_TYPE}" /><input name="admin_amount" value="0" size="5" class="post" /></span></td></form>
<!-- END switch_admindisplay -->
</tr></table></td>
</tr>
<!-- END cashrow -->
<!-- BEGIN switch_exchangeon -->
<tr>
<td valign="top" align="right" nowrap="nowrap"><span class="gen"></span></td>
<form style="{display: inline;}" action="{U_EXCHANGE}" method="post"><td><input type="submit" value="{L_EXCHANGE}" class="liteoption" /></td></form>
</tr>
<!-- END switch_exchangeon -->

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

is too long to read for me...
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34457
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Post by A_Jelly_Doughnut »

You don't read it all...you go one step at a time.
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
tabor
Registered User
Posts: 82
Joined: Wed Feb 05, 2003 1:42 am

Post by tabor »

Someone please let me know how to add a donate link on view topic?

Thanks
Post Reply

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