Thread subject: pHpFusion Nederlands (BE|NL) » Ondersteuning, Themas, Infusies, Modificaties en Installatie :: market_place_v1.2

Posted by Steff on 18 februari 2009, 13:02
#8

Ik kan al raden wat het probleem is. Door infusions van v6 naar v7 te brengen vergeten ze meestal een paar dingen
zoals bijvoorbeeld
in v6:
is het artikel id gelijk aan :
$id
in v7:
gaat het alsvolgt:
if(isset($_GET['id']) && isNum($_GET['id'])) $id = $_GET['id']; else redirect(FUSION_SELF);

Zo kan het zijn dat je nog enkele variabelen moet aanpassen.


Ik heb het even bekeken..
Om te beginnen, Locales vermist:
voeg
Code

include INFUSIONS."marketplace_panel/infusion_db.php";
   if (file_exists ( INFUSIONS . "marketplace_panel/locale/" . $settings ['locale'] . ".php" )) {
      include INFUSIONS . "marketplace_panel/locale/" . $settings ['locale'] . ".php";
   } else {
      include INFUSIONS . "marketplace_panel/locale/English.php";
   }

toe na
Code

include INFUSIONS."marketplace_panel/infusion_db.php";


in infusion_db.php is hetvolgende fout:

Code

if (!defined("DB_MARKETPLACE_BIDDING")) {
   define("DB_MARKETPLACE_BIDDING", DB_PREFIX."marketplace_biddings");

(Bidding ipv Biddings)


En voor dat id probleempje

Code

$mplace_id = $_GET['mplace_id'];
$action = $_GET['action'];
$rowstart = $_GET['rowstart'];

Toevoegen vòòr
Code

if (isset($mplace_id) && !isNum($mplace_id)) redirect(FUSION_SELF);


En ik zie dat mplace_message nog een probleem is maar daar kijk ik zo ff heen
Zoek naar
Code

   $place_message = $_POST['mplace_message'];

Verander dat naar
Code

   $mplace_message = $_POST['mplace_message'];


---- Edit ----
- Rowstart
- Mplace message

Het zou nu bugvrij moetten zijn, zo niet -> reactiee :D
--- 2nd Edit ---

In Infusion.php moet er nog het een en ander worden aangepast:
infusion.php:
Code


/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| CVS Version: 1.00
| Author: Peter Bruggink
| Email: p.bruggink@zonnet.nl
+--------------------------------------------------------+
| v7 By Diemux
| www.phpfusion-mods.net
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (file_exists(INFUSIONS."marketplace_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."marketplace_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."marketplace_panel/locale/English.php";
}

include INFUSIONS."marketplace_panel/infusion_db.php";

$inf_title = $locale['MPL100'];
$inf_description = $locale['MPL101'];
$inf_version = "1.2";
$inf_developer = "Peter Bruggink, v7 by Diemux";
$inf_email = "p.bruggink@zonnet.nl";
$inf_weburl = "http://www.surena.nl";

$inf_folder = "marketplace_panel";

// Delete any items not required here.
$inf_newtable[1] = DB_MARKETPLACE." (
           mplace_id smallint(5) UNSIGNED NOT NULL auto_increment,
           mplace_owner smallint(5) UNSIGNED NOT NULL DEFAULT '0',
           mplace_article varchar(25) NOT NULL DEFAULT '',
           mplace_message text NOT NULL,
         mplace_price varchar(6) NOT NULL DEFAULT '0',
           mplace_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
           mplace_sold smallint(5) UNSIGNED NOT NULL DEFAULT '0',
         PRIMARY KEY  (mplace_id)
         ) TYPE=MyISAM;";

$inf_newtable[2] = DB_MARKETPLACE_BIDDING." (
           mplace_id smallint(5) UNSIGNED NOT NULL DEFAULT '0',
           bidding_owner smallint(5) UNSIGNED NOT NULL DEFAULT '0',
         bidding_price varchar(6) NOT NULL DEFAULT '0',
           bidding_date INT(10) UNSIGNED NOT NULL DEFAULT '0',
         PRIMARY KEY  (mplace_id, bidding_owner)
         ) TYPE=MyISAM;";
/*
$inf_adminpanel[1] = array(
   "title" => "",
   "image" => "",
   "panel" => "",
   "rights" => "MAR"
);
*/   

$inf_droptable[1] = DB_MARKETPLACE;
$inf_droptable[2] = DB_MARKETPLACE_BIDDING;

?>


/*
$inf_adminpanel[1] = array(
"title" => "",
"image" => "",
"panel" => "",
"rights" => "MAR"
);
*/

Mag je weglaten of tussen /* & */ laten staan. Heb het laten staan om aan te tonen dat het fout is.

Edited by Steff on 18 februari 2009, 13:24