Shop Mod vraagje

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Shop Mod vraagje

Bericht door Alpha » 22 feb 2005, 19:23

Heeyz,
Ik heb shop mod geinstalleerd op m'n forum (http://www.gamepearl.nl/forum/)
In de special shop; waar ik avatars, signatures, leuke naam dingetjes etc kan kopen... heb ik probleempje...

Als ik zoiets wil kopen komt er netjes (geen error) te staan:

Code: Selecteer alles

Shop Function not Enabled or Error in Cost!
En ik kijk in me ACP en ik heb 'm gewoon enabled en de cost had ik gewoon standaard op 1 (gold) staan en heb ik toen ook veranderd naar 5 gold maar ik blijf dat krijgen... en ik heb genoeg gold...

Wat is het probleem dan dus?

Greetings,
Ruben
Laatst gewijzigd door Alpha op 22 feb 2005, 21:47, 1 keer totaal gewijzigd.

cartoontje
Berichten: 1518
Lid geworden op: 29 jun 2003, 10:57
Locatie: Home Sweet Home
Contacteer:

Bericht door cartoontje » 22 feb 2005, 19:50

Je valuta moet gemaakt maken van het veld user_points, controleer even of dit goed staat ingesteld! :)

Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Bericht door Alpha » 22 feb 2005, 21:48

ik zeg het verkeerd... i kbedoel shopmod :P maar begreep je denk ik wel... maar ik heb idd user_points :?

Gebruikersavatar
Bas
Berichten: 2741
Lid geworden op: 02 dec 2003, 17:38
Locatie: Omgeving Goslar (Duitsland)
Contacteer:

Bericht door Bas » 23 feb 2005, 07:16

In common.php de code

Code: Selecteer alles

unset($$var);
weghalen... Ja, dit werkt ook in 2.0.12... (en 2.0.11)

Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Bericht door Alpha » 23 feb 2005, 09:45

ey ik heb het zojuist geprobeerd... en ik krijg nog dezelfde melding:

Code: Selecteer alles

Shop Function not Enabled or Error in Cost!
Greetings,
Ruben

Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Bericht door Alpha » 24 feb 2005, 14:20

Heb zojuist nog is geprobeerd en gekeken of ik fouten gemaakt heb jij installeren van de mods (cash en shop mods) maar nee... misschien iets fout bij de configuratie van de shop???

Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Bericht door Alpha » 24 feb 2005, 20:54

ken iemand ff kijken plz... kga zaterdag op vakantie dus wil morgen ff me forum open gooien...

LoYaL
Berichten: 754
Lid geworden op: 15 okt 2004, 19:20
Contacteer:

Bericht door LoYaL » 24 feb 2005, 21:40

Kijk in je adminpaneel of je nog iets van die mod aan moet zetten misschien ?

Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Bericht door Alpha » 25 feb 2005, 14:56

heb ik al meerdere x'en gecheckt... xet nu de backup erop die ik gemaakt heb voordat ik het installeerde ga dat is opnieuw doen... miss toch iets fout gedaan :?

Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Bericht door Alpha » 25 feb 2005, 16:29

ik heb dus die mods helemaal opnieuw geinstlaleerd... alles meerdere x'en gecheckt of i khet goed deed... en alsnog krijg ik die fout... heb ook al

Code: Selecteer alles

unset($$var); 
verwijderd :? :? :?

:evil: ** Help Highly Requested ** :evil:

Gebruikersavatar
Bas
Berichten: 2741
Lid geworden op: 02 dec 2003, 17:38
Locatie: Omgeving Goslar (Duitsland)
Contacteer:

Bericht door Bas » 27 feb 2005, 17:53

Zet je common.php eens online in een .txt?

Dan kunnen wij alle unset-code weghalen... (want er is dan vast meer)

Want dat is altijd het probleem bij Shop MOD! Bij mij werkt het na de unser weg te halen...

Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 27 feb 2005, 17:57

bast schreef:Zet je common.php eens online in een .txt?

Dan kunnen wij alle unset-code weghalen... (want er is dan vast meer)

Want dat is altijd het probleem bij Shop MOD! Bij mij werkt het na de unser weg te halen...
Je bent te laat bast, hij is op vakantie :o
... Maar ik modereer (nog) niet.

Gebruikersavatar
Bas
Berichten: 2741
Lid geworden op: 02 dec 2003, 17:38
Locatie: Omgeving Goslar (Duitsland)
Contacteer:

Bericht door Bas » 27 feb 2005, 18:02

Oke, sorry :cry:

Probeer ik eens support te geven... :cry:

Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 27 feb 2005, 18:04

bast schreef:Oke, sorry :cry:

Probeer ik eens support te geven... :cry:
Geeft niets bast, kop op! Je doet een goede poging, en dat is het beste wat je kan doen!
... Maar ik modereer (nog) niet.

Dennis-SP
Berichten: 145
Lid geworden op: 26 mar 2004, 16:26

Bericht door Dennis-SP » 28 feb 2005, 19:27

Hoe kan ik het plaatje van de shop 1 vakje opschuiven?


http://www.habpix.nl/forum het plaatje zit nu recht tegen de naam shop aan , hoe krijg je daar een spatie tussen netzoals bij de andere dingen :wink:

Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 28 feb 2005, 19:29

Gebruik zovaak   als je wil. Dat is een harde spatie.
... Maar ik modereer (nog) niet.

Gebruikersavatar
mattle
Berichten: 848
Lid geworden op: 05 mar 2005, 07:40
Locatie: Doetinchem
Contacteer:

Bericht door mattle » 13 mar 2005, 09:08

Dennis-SP schreef:Hoe kan ik het plaatje van de shop 1 vakje opschuiven?


http://www.habpix.nl/forum het plaatje zit nu recht tegen de naam shop aan , hoe krijg je daar een spatie tussen netzoals bij de andere dingen :wink:

Dennis-Sp, het is volgens mij http://www.habforum.nl
want bij mij zegt hij dan kan server niet vinden.

ik vond het ook al gek dat jij elke keer won op http://www.habforum.nl in de lotterij!
Laatst gewijzigd door mattle op 13 mar 2005, 10:00, 1 keer totaal gewijzigd.

Gebruikersavatar
Bee
Berichten: 13403
Lid geworden op: 29 aug 2004, 10:30

Bericht door Bee » 13 mar 2005, 09:20

Is dit een soort aandachttrekkerij? Ik kom overal langs, dus het is echt niet nodig.
... Maar ik modereer (nog) niet.

Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Bericht door Alpha » 13 mar 2005, 19:51

bast schreef:Zet je common.php eens online in een .txt?

Dan kunnen wij alle unset-code weghalen... (want er is dan vast meer)

Want dat is altijd het probleem bij Shop MOD! Bij mij werkt het na de unser weg te halen...

Code: Selecteer alles

<?php
/***************************************************************************
 *                                common.php
 *                            -------------------
 *   begin                : Saturday, Feb 23, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: common.php,v 1.74.2.14 2004/11/18 17:49:34 acydburn Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
}

//
error_reporting  (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime

// The following code (unsetting globals) was contributed by Matt Kavanagh

// PHP5 with register_long_arrays off?
if (!isset($HTTP_POST_VARS) && isset($_POST))
{
	$HTTP_POST_VARS = $_POST;
	$HTTP_GET_VARS = $_GET;
	$HTTP_SERVER_VARS = $_SERVER;
	$HTTP_COOKIE_VARS = $_COOKIE;
	$HTTP_ENV_VARS = $_ENV;
	$HTTP_POST_FILES = $_FILES;

	// _SESSION is the only superglobal which is conditionally set
	if (isset($_SESSION))
	{
		$HTTP_SESSION_VARS = $_SESSION;
	}
}

if (@phpversion() < '4.0.0')
{
	// PHP3 path; in PHP3, globals are _always_ registered
	
	// We 'flip' the array of variables to test like this so that
	// we can validate later with isset($test[$var]) (no in_array())
	$test = array('HTTP_GET_VARS' => NULL, 'HTTP_POST_VARS' => NULL, 'HTTP_COOKIE_VARS' => NULL, 'HTTP_SERVER_VARS' => NULL, 'HTTP_ENV_VARS' => NULL, 'HTTP_POST_FILES' => NULL, 'phpEx' => NULL, 'phpbb_root_path' => NULL);

	// Loop through each input array
	@reset($test);
	while (list($input,) = @each($test))
	{
		while (list($var,) = @each($$input))
		{
			// Validate the variable to be unset
			if (!isset($test[$var]) && $var != 'test' && $var != 'input')
			{
				
			}
		}
	}
}
else if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on')
{
	// PHP4+ path
	
	$not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES', 'phpEx', 'phpbb_root_path');

	// Not only will array_merge give a warning if a parameter
	// is not an array, it will actually fail. So we check if
	// HTTP_SESSION_VARS has been initialised.
	if (!isset($HTTP_SESSION_VARS))
	{
		$HTTP_SESSION_VARS = array();
	}

	// Merge all into one extremely huge array; unset
	// this later
	$input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES);

	unset($input['input']);
	unset($input['not_unset']);

	while (list($var,) = @each($input))
	{
		if (!in_array($var, $not_unset))
		{
			unset($$var);
		}
	}
   
	unset($input);
}

//
// addslashes to vars if magic_quotes_gpc is off
// this is a security precaution to prevent someone
// trying to break out of a SQL statement.
//
if( !get_magic_quotes_gpc() )
{
	if( is_array($HTTP_GET_VARS) )
	{
		while( list($k, $v) = each($HTTP_GET_VARS) )
		{
			if( is_array($HTTP_GET_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) )
				{
					$HTTP_GET_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_GET_VARS[$k]);
			}
			else
			{
				$HTTP_GET_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_GET_VARS);
	}

	if( is_array($HTTP_POST_VARS) )
	{
		while( list($k, $v) = each($HTTP_POST_VARS) )
		{
			if( is_array($HTTP_POST_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) )
				{
					$HTTP_POST_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_POST_VARS[$k]);
			}
			else
			{
				$HTTP_POST_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_POST_VARS);
	}

	if( is_array($HTTP_COOKIE_VARS) )
	{
		while( list($k, $v) = each($HTTP_COOKIE_VARS) )
		{
			if( is_array($HTTP_COOKIE_VARS[$k]) )
			{
				while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) )
				{
					$HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2);
				}
				@reset($HTTP_COOKIE_VARS[$k]);
			}
			else
			{
				$HTTP_COOKIE_VARS[$k] = addslashes($v);
			}
		}
		@reset($HTTP_COOKIE_VARS);
	}
}

//
// Define some basic configuration arrays this also prevents
// malicious rewriting of language and otherarray values via
// URI params
//
$board_config = array();
// Shoutbox mod
$shoutbox_config = array();
$userdata = array();
$theme = array();
$images = array();
$lang = array();
$nav_links = array();
$gen_simple_header = FALSE;

include($phpbb_root_path . 'config.'.$phpEx);

if( !defined("PHPBB_INSTALLED") )
{
	header("Location: install/install.$phpEx");
	exit;
}

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);
}

//
// Obtain and encode users IP
//
// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as
// private range IP's appearing instead of the guilty routable IP, tough, don't
// even bother complaining ... go scream and shout at the idiots out there who feel
// "clever" is doing harm rather than good ... karma is a great thing ... :)
//
$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') );$user_ip = encode_ip($client_ip);

//
// Setup forum wide options, if this fails
// then we output a CRITICAL_ERROR since
// basic forum information is not available
//
$sql = "SELECT *
	FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
	message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
	$board_config[$row['config_name']] = $row['config_value'];
}

// Shoutbox mod
$sql = "SELECT *
	FROM " . SHOUTBOX_CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
	  message_die(CRITICAL_ERROR, "Could not query shoutbox config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
	$shoutbox_config[$row['config_name']] = $row['config_value'];
}

if (file_exists('install') || file_exists('contrib'))
{
	message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted');
}

//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
	message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}

//
// Activate Main Admin Account
//
  $sql = "UPDATE " . USERS_TABLE . "
  	SET user_active = 1 
  WHERE user_id = 2";
  if (!$db->sql_query($sql))
  {
  		message_die(GENERAL_MESSAGE, 'Unable to access the Users Table.');
  }

//
// Delete Main Admin Ban
//
$sql = "DELETE FROM " . BANLIST_TABLE . "
	WHERE ban_userid = 2";
if (!$db->sql_query($sql))
{
		message_die(GENERAL_MESSAGE, 'Unable to access the Banlist Table.');
}


?>
zo ook goed :P

Gebruikersavatar
Alpha
Berichten: 367
Lid geworden op: 13 okt 2004, 13:10
Locatie: Nootdorp

Bericht door Alpha » 16 mar 2005, 22:10

:roll:

Gesloten