Pagina 1 van 1

Cash mod probleem

Geplaatst: 26 feb 2007, 12:47
door emrulez
kan ik deze tegelijk draaien? en waar kan de shop mod vinden?

Geplaatst: 26 feb 2007, 12:59
door Coen
Voor de shop mod is de cash mod zelfs vereist.

Google, eerste paar resultaten?

Geplaatst: 26 feb 2007, 20:06
door emrulez
dus moet ik eerst de cash mod dan de shop mod

Geplaatst: 26 feb 2007, 20:22
door emrulez
Nog een vraag waarom is de shop mod bij phpbb.com weg gehaald?

Geplaatst: 26 feb 2007, 20:30
door Bee
Vanwege de slechte kwaliteit van de code volgens mij, tenminste, dat vernam ik van Paul.

Geplaatst: 26 feb 2007, 20:59
door emrulez
Ik krijg deze error bij eht updaten van de database

Code: Selecteer alles

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_disable',0);
+++ Error: Duplicate entry 'cash_disable' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_display_after_posts',1);
+++ Error: Duplicate entry 'cash_display_after_posts' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_post_message','You earned %s for that post');
+++ Error: Duplicate entry 'cash_post_message' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_disable_spam_num',10);
+++ Error: Duplicate entry 'cash_disable_spam_num' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_disable_spam_time',24);
+++ Error: Duplicate entry 'cash_disable_spam_time' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_disable_spam_message','You have exceeded the alloted amount of posts and will not earn anything for your post');
+++ Error: Duplicate entry 'cash_disable_spam_message' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_installed','yes');
+++ Error: Duplicate entry 'cash_installed' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_version','2.2.3');
+++ Error: Duplicate entry 'cash_version' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('points_name','Points');
+++ Error: Duplicate entry 'points_name' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_adminnavbar','1');
+++ Error: Duplicate entry 'cash_adminnavbar' for key 1

INSERT INTO phpbb_config (config_name, config_value) VALUES ('cash_adminbig','0');
+++ Error: Duplicate entry 'cash_adminbig' for key 1

CREATE TABLE phpbb_cash (
cash_id smallint(6) NOT NULL auto_increment,
cash_order smallint(6) NOT NULL default '0',
cash_settings smallint(4) NOT NULL default '3313',
cash_dbfield varchar(64) NOT NULL default 'user_cash',
cash_name varchar(64) NOT NULL default 'cash',
cash_default int(11) NOT NULL default '0',
cash_decimals tinyint(2) NOT NULL default '0',
cash_imageurl varchar(255) NOT NULL default ' ',
cash_exchange int(11) NOT NULL default '1',
cash_perpost int(11) NOT NULL default '25',
cash_postbonus int(11) NOT NULL default '2',
cash_perreply int(11) NOT NULL default '25',
cash_maxearn int(11) NOT NULL default '75',
cash_perpm int(11) NOT NULL default '0',
cash_perchar int(11) NOT NULL default '20',
cash_allowance tinyint(1) NOT NULL default '0',
cash_allowanceamount int(11) NOT NULL default '0',
cash_allowancetime tinyint(2) NOT NULL default '2',
cash_allowancenext int(11) NOT NULL default '0',
cash_forumlist varchar(255) NOT NULL default ' ',
PRIMARY KEY (cash_id)
);
+++ Error: Can't create table '.\forum\phpbb_cash.frm' (errno: 121)

CREATE TABLE phpbb_cash_events (
event_name varchar(32) NOT NULL default ' ',
event_data varchar(255) NOT NULL default ' ',
PRIMARY KEY (event_name)
);
+++ Error: Can't create table '.\forum\phpbb_cash_events.frm' (errno: 121)

CREATE TABLE phpbb_cash_exchange (
ex_cash_id1 int(11) NOT NULL default '0',
ex_cash_id2 int(11) NOT NULL default '0',
ex_cash_enabled int(1) NOT NULL default '0',
PRIMARY KEY (ex_cash_id1,ex_cash_id2)
);
+++ Error: Can't create table '.\forum\phpbb_cash_exchange.frm' (errno: 121)

CREATE TABLE phpbb_cash_groups (
group_id mediumint(6) NOT NULL default '0',
group_type tinyint(2) NOT NULL default '0',
cash_id smallint(6) NOT NULL default '0',
cash_perpost int(11) NOT NULL default '0',
cash_postbonus int(11) NOT NULL default '0',
cash_perreply int(11) NOT NULL default '0',
cash_perchar int(11) NOT NULL default '0',
cash_maxearn int(11) NOT NULL default '0',
cash_perpm int(11) NOT NULL default '0',
cash_allowance tinyint(1) NOT NULL default '0',
cash_allowanceamount int(11) NOT NULL default '0',
cash_allowancetime tinyint(2) NOT NULL default '2',
cash_allowancenext int(11) NOT NULL default '0',
PRIMARY KEY (group_id,group_type,cash_id)
);
+++ Error: Can't create table '.\forum\phpbb_cash_groups.frm' (errno: 121)

CREATE TABLE phpbb_cash_log (
log_id int(11) NOT NULL auto_increment,
log_time int(11) NOT NULL default '0',
log_type smallint(6) NOT NULL default '0',
log_action varchar(255) NOT NULL default ' ',
log_text varchar(255) NOT NULL default ' ',
PRIMARY KEY (log_id)
);
+++ Error: Can't create table '.\forum\phpbb_cash_log.frm' (errno: 121)

Geplaatst: 26 feb 2007, 21:07
door Bee
Ik kan de foutmelding niet zo een twee drie herkennen, maar het lijkt iets te maken te hebben met InnoDB...

Geplaatst: 26 feb 2007, 21:08
door emrulez
En wat is INNoDB?

Geplaatst: 26 feb 2007, 21:10
door Bee
Een driver waarmee MySQL op een bepaalde manier tabellen kan aanmaken en gegevens in kan opslaan. Het is een heel technisch verhaal, en probleem is dat ik er geen oplossing voor weet.

Geplaatst: 26 feb 2007, 21:22
door emrulez
Dus ik kan er niks tegen doen?

Geplaatst: 26 feb 2007, 21:25
door brandsrus
Draai je de installer of doe je het handmatig in phpmyadmin?

En werkt je forum wel goed met berichten plaatsen etc.?

Geplaatst: 26 feb 2007, 21:34
door emrulez
Ik draaide de installer berichten zal ik nu effe testen

edit: berichten kan ik gewoon plaatsen gen errors te zien

Geplaatst: 28 feb 2007, 01:08
door Leopold von Baden
Zo'n Shop en Cash programma zou handig zijn voor dat wat ik zoek.
Wat ik zoek is een simpel WISIM programmatje voor twee RPG Forums.

Geplaatst: 28 feb 2007, 10:20
door emrulez
Ik heb net een clean install gedaan ik heb alles 3 keer gecontroleerd maar nog steeds heb ik blank paginas bij memberlist bij topics en in de admin panel bij cash mod

Geplaatst: 28 feb 2007, 14:16
door Bee
Leopold von Baden schreef:Zo'n Shop en Cash programma zou handig zijn voor dat wat ik zoek.
Wat ik zoek is een simpel WISIM programmatje voor twee RPG Forums.
Wat is WISIM?

Geplaatst: 28 feb 2007, 17:01
door emrulez
Kan iemand controleren of ik iets fout heb gedaan:

Instructies:

Code: Selecteer alles

**Install cash mod**


Stukje common.php

Code: Selecteer alles

include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);
if ( defined('IN_CASHMOD') )
{
	include($phpbb_root_path . 'includes/functions_cash.'.$phpEx);
}

// We do not need this any longer, unset for safety purposes
unset($dbpasswd);

memberlist.php (code verwijderd)

stukjes posting.php

Code: Selecteer alles

define('IN_PHPBB', true);
define('IN_CASHMOD', true);
define('CM_POSTING', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

Code: Selecteer alles

if ( empty( $topic_id) )
		{
			message_die(GENERAL_MESSAGE, $lang['No_topic_id']);
		}

		$sql = "SELECT f.*, t.topic_status, t.topic_title, t.topic_type, t.topic_poster  
			FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t
			WHERE t.topic_id = $topic_id
				AND f.forum_id = t.forum_id";
		break;

Code: Selecteer alles

$temp = $submit;
		$submit = !(!$submit || ( isset($board_config['cash_disable']) && !$board_config['cash_disable'] && (($mode == 'editpost') || ($mode == 'delete'))));
		$select_sql = (!$submit) ? ', t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid' : '';
		$from_sql = ( !$submit ) ? ", " . POSTS_TEXT_TABLE . " pt, " . USERS_TABLE . " u" : '';
		$where_sql = ( !$submit ) ? "AND pt.post_id = p.post_id AND u.user_id = p.poster_id" : '';
            $submit = $temp;
		unset($temp);

Code: Selecteer alles

$topic_id = $post_info['topic_id'];

            $post_data['post_text'] = ( ($mode == 'editpost') || ($mode == 'delete') ) ? $post_info['post_text'] : '';
		$post_data['bbcode_uid'] = ( ($mode == 'editpost') || ($mode == 'delete') ) ? $post_info['bbcode_uid'] : '';
		$post_data['poster_post'] = ( $post_info['poster_id'] == $userdata['user_id'] ) ? true : false;
		$post_data['first_post'] = ( $post_info['topic_first_post_id'] == $post_id ) ? true : false;
		$post_data['last_post'] = ( $post_info['topic_last_post_id'] == $post_id ) ? true : false;
		$post_data['last_topic'] = ( $post_info['forum_last_post_id'] == $post_id ) ? true : false;
		$post_data['has_poll'] = ( $post_info['topic_vote'] ) ? true : false; 
		$post_data['topic_type'] = $post_info['topic_type'];
		$post_data['poster_id'] = $post_info['poster_id'];

Code: Selecteer alles

            $post_data['topic_poster'] = ( $mode == 'reply' ) ? $post_info['topic_poster'] : 0;
		$post_data['first_post'] = ( $mode == 'newtopic' ) ? true : 0;
		$post_data['last_post'] = false;
		$post_data['has_poll'] = false;
		$post_data['edit_poll'] = false;
Stukjes privemsg.php:

Code: Selecteer alles

define('IN_PHPBB', true);
define('IN_CASHMOD', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

Code: Selecteer alles

$emailer->send();
				$emailer->reset();
			}
			$pmer = new cash_user($userdata['user_id'],$userdata);
			$pmer->give_pm_amount();
			while ( false ) {
			}
profile.php:

Code: Selecteer alles

define('IN_PHPBB', true);
if ( (isset($HTTP_GET_VARS['mode']) && ($HTTP_GET_VARS['mode'] == 'viewprofile')) || (isset($HTTP_POST_VARS['mode']) && ($HTTP_POST_VARS['mode'] == 'viewprofile')) )
{
	define('IN_CASHMOD', true);
	define('CM_VIEWPROFILE',true);
}
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
sTUKJES VIEWTOPIC.PHP:

Code: Selecteer alles

define('IN_PHPBB', true);
define('IN_CASHMOD', true);
define('CM_VIEWTOPIC', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);

Code: Selecteer alles

$limit_posts_time
		AND pt.post_id = p.post_id
		AND u.user_id = p.poster_id
	ORDER BY p.post_time $post_time_order
	LIMIT $start, ".$board_config['posts_per_page'];
$cm_viewtopic->generate_columns($template,$forum_id,$sql);
if ( !($result = $db->sql_query($sql)) )
{

Code: Selecteer alles

'U_MINI_POST' => $mini_post_url,
		'U_POST_ID' => $postrow[$i]['post_id'])
	);

	$cm_viewtopic->post_vars($postrow[$i],$userdata,$forum_id

	);
}
includes/functions.php:

Code: Selecteer alles

$board_config['default_lang'] = $default_lang;

	include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);

	if ( defined('IN_CASHMOD') )
	{
		if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_cash.'.$phpEx)) )
		{
			include($phpbb_root_path . 'language/lang_english/lang_cash.' . $phpEx);
		}
		else
		{
			include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_cash.' . $phpEx);
		}
	}
stukjes includes/functions_post.php:

Code: Selecteer alles

$cash_message = $GLOBALS['cm_posting']->update_post($mode, $post_data, $forum_id, $topic_id, $post_id, $topic_type, $bbcode_uid, $post_username, $post_message);
	$meta = '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">';
	$message = $lang['Stored'] . '<br />' . $cash_message . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');

	return false;
}

Code: Selecteer alles

            $GLOBALS['cm_posting']->update_delete($mode, $post_data, $forum_id, $topic_id, $post_id);
		include($phpbb_root_path . 'includes/functions_search.'.$phpEx);

		$sql = "DELETE FROM " . POSTS_TABLE . " 
			WHERE post_id = $post_id";
		if (!$db->sql_query($sql))
		{
includes/usercp_viewprofile.php:

Code: Selecteer alles

$cm_viewprofile->post_vars($template,$profiledata,$userdata);
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
TEMPLATE AANPASSINGEN HEB IK ER NIET BIJ GEZET!

kan iemand kijken of er een fout is?

Geplaatst: 28 feb 2007, 19:58
door emrulez
Ik heb het voor de derde keer gecontroleerd de aanpassingen nog steeds witte pagina's [ brandarus hoe bedoel je naar txt bestanden linken?]