ACP error

Download and support for PhpBB3 Paypal Donation Mod
artikkk
BBCoder II
BBCoder II
Posts: 42
Joined: 02 May 2010, 18:33

ACP error

Post by artikkk »

Code: Select all

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/admin/domains/pronosky.com/public_html/forum/includes/acp/info/acp_donation.php on line 30
i have this error on acp..
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

ACP error

Post by Stoker »

Ooopsie...
Open that file and find: 'ts_version' => '1.0.2'
Replace with: 'ts_version' => '1.0.2',
Board rules! No PM support
artikkk
BBCoder II
BBCoder II
Posts: 42
Joined: 02 May 2010, 18:33

ACP error

Post by artikkk »

Now

Code: Select all

Parse error: syntax error, unexpected ',' in /home/admin/domains/pronosky.com/public_html/forum/includes/acp/info/acp_donation.php on line 31
LOL
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

ACP error

Post by Stoker »

That line should look like this: 'adjust_topstats' => array('title' => 'DONATION_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('ACP_DONATION_MOD')),
How does yours look like?
Board rules! No PM support
artikkk
BBCoder II
BBCoder II
Posts: 42
Joined: 02 May 2010, 18:33

ACP error

Post by artikkk »

Code: Select all

'adjust_topstats'	=> array('title' => 'DONATION_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('ACP_DONATION_MOD')),
it's same.. how do it possible?
this is your code (now online on my board)

Code: Select all

<?php
/**
*
* @author Stoker 4.0
* @package Donation MOD
* @version $Id: acp_donation.php, v1.0.2 20011/20/11 07:19:43 Exp $
* @copyright (c) 2011 Stoker 4.0 
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package module_install
*/
class acp_donation_info
{
	function module()
	{
		return array(
			'filename'			=> 'acp_donation',
			'title'				=> 'ACP_DONATION_MOD',
			'ts_version'		=> '1.0.2',
			'adjust_topstats'	=> array('title' => 'DONATION_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('ACP_DONATION_MOD')),
			),
		);
	}
}

?>
:|
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

ACP error

Post by Stoker »

I now have installed this mod on 3 different sites, 2 different servers.
I am just not able to reproduce the error you have.

2 solutions:
Check you have the correct files
or
PM me ftp and admin access to your board and I will have a look.
Board rules! No PM support
artikkk
BBCoder II
BBCoder II
Posts: 42
Joined: 02 May 2010, 18:33

ACP error

Post by artikkk »

Stoker wrote:I now have installed this mod on 3 different sites, 2 different servers.
I am just not able to reproduce the error you have.

2 solutions:
Check you have the correct files
or
PM me ftp and admin access to your board and I will have a look.
i have redownload your pack, and reup all files.. but it doesn't work :x
i can't send you ftp and admic access.. it's my live board

aaaaaargh.. :mcqueer:

edit:
if i edit code like this

Code: Select all

/**
* @package module_install
*/
class acp_donation_info
{
	function module()
	{
		return array(
			'filename'			=> 'acp_donation',
			'title'				=> 'ACP_DONATION_MOD',
			'ts_version'		=> '1.0.2',
			'adjust_topstats'	=> array('title' => 'DONATION_CONFIG', 
			'auth' => 'acl_a_board', 
			'cat' => array('ACP_DONATION_MOD')),
			);
	
	}
}
page work :oops:
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

ACP error

Post by Stoker »

Please do me a favour and try this too and then tell me if it works:

Code: Select all

<?php
/**
*
* @author Stoker 4.0
* @package Donation MOD
* @version $Id: acp_donation.php, v1.0.2 20011/20/11 07:19:43 Exp $
* @copyright (c) 2011 Stoker 4.0 
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

/**
* @package module_install
*/
class acp_donation_info
{
	function module()
	{
		return array(
			'filename'			=> 'acp_donation',
			'title'				=> 'ACP_DONATION_MOD',
			'ts_version'		=> '1.0.2',
			'modes'		=> array(
				'configuration'	=> array('title' => 'DONATION_CONFIG', 'auth' => 'acl_a_board', 'cat' => array('ACP_DONATION_MOD')),
			),
		);
	}
	
	function install()
	{
	}

	function uninstall()
	{
	}
}

?>
Board rules! No PM support
User avatar
Arnevb
BBCoder III
BBCoder III
Posts: 98
Joined: 08 Oct 2011, 18:23
BBCodes: 8
Location: Belgium
Contact:

ACP error

Post by Arnevb »

Where exactly do I have to put the code?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

ACP error

Post by Stoker »

Its the code of the includes/acp/info/acp_donation.php file.
Just replace the entire code with the one posted.

Or you can use this files instead, just upload them to the correct folders
includes.zip
(2.36 KiB) Downloaded 101 times
Board rules! No PM support
Locked