Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Problem with my Infusion

Locked Asked Modified Viewed 4,505 times
D
DH24 - Manuel
D
cool Official Supporter and Developer on PHP-Fusion cool
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Hello Community,

i create a Infusion for my Customer.

I have a Problem with the Install with this Infusion.

The Code from infusion.php and infusion_db.php

The infusion.php


<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| Author: Manuel Wensierski
+--------------------------------------------------------+
| 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"); }

include INFUSIONS."member_search/infusion_db.php";

if (file_exists(INFUSIONS."member_search/locale/".$settings['locale'].".php")) {

include INFUSIONS."member_search/locale/".$settings['locale'].".php";
} else {

include INFUSIONS."member_search/locale/German.php";
}

// Infusion Information
$inf_title = $locale['msp_title'];
$inf_description = $locale['msp_desc'];
$inf_version = $locale['msp_ver'];
$inf_developer = "Manuel Wensierski";
$inf_email = "manuel.wensierski@hotmail.de";
$inf_weburl = "http://facebook.com/BlizzMusic1";

$inf_folder = "member_search";
$inf_panel_folder = "member_search_panel";

// Delete any items not required below.
$inf_newtable[1] = DB_msp_settings." (
  msp_id MEDIUMINT(8) UNSIGNED NOT NULL auto_increment,
  msp_name VARCHAR(50) NOT NULL,
  msp_visible INT(1) NOT NULL default '1',
  PRIMARY KEY  (msp_id)
) ENGINE=MyISAM;";

$inf_insertdbrow[1] = DB_msp_settings." SET msp_id='', msp_name='gender', msp_visible='1'";
$inf_insertdbrow[2] = DB_PANELS." SET panel_name='".$locale['msp_name']."', panel_filename='".$inf_panel_folder."', panel_side=1, panel_order='75', panel_type='file', panel_access='0', panel_display='0', panel_status='1' ";

$inf_droptable[1] = DB_msp_settings;

$inf_deldbrow[1] = DB_PANELS." WHERE panel_filename='".$inf_panel_folder."'";

$inf_adminpanel[1] = array(
   "title" => $locale['msp_admin'],
   "image" => "msp.png",
   "panel" => "msp_admin.php",
   "rights" => "msp"
);
?>


The infusion_db.php


<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion_db.php
| Author: Manuel Wensierski
+--------------------------------------------------------+
| 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 (!defined("DB_msp")) {
   define("DB_msp", DB_PREFIX."msp");
}

if (!defined("DB_msp_settings")) {
   define("DB_msp_settings", DB_PREFIX."msp_settings");
}
?>



The image code come from the bbcode "Code Highlighter".. Pleas Ignore or Edit this Post for correct display my code :)

Thank at all from help.

Greetings

DH24 - Manuel

PS: Sorry but my English is not good.... (Germany my Location)
Edited by N/A on 22-11-2013 00:10,
0 replies

10 posts

T
Tyler
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

Hi, for one, you mention a customer... I don't know too many people wanting to help others make money.

Your first issue is trying to encode your email in the $inf_email variable.

The next issue is with $inf_insertdbrow

You are misusing that.

(For future posts don't use the code highlighter. just use CODE)

It should look something like this however there is a shorter way but I'd like you to understand.

$inf_insertdbrow[1] = DB_msp_settings." (msp_id, msp_name, msp_visible) VALUES ('', 'gender', '1')";
 


As you see it lists the db columns and then values....
If you List the values by themselves in order of the database structure you don't need to list the column names.
Edited by Tyler on 22-11-2013 00:11,
0 replies
D
DH24 - Manuel
D
cool Official Supporter and Developer on PHP-Fusion cool
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Thank you for the fast help... but i have edit my code with your sample code and not reaction the installation failed.

my new code

infusion.php

<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| Author: Manuel Wensierski
+--------------------------------------------------------+
| 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"); }

include INFUSIONS."member_search/infusion_db.php";

if (file_exists(INFUSIONS."member_search/locale/".$settings['locale'].".php")) {

include INFUSIONS."member_search/locale/".$settings['locale'].".php";
} else {

include INFUSIONS."member_search/locale/German.php";
}

// Infusion Information
$inf_title = $locale['msp_title'];
$inf_description = $locale['msp_desc'];
$inf_version = $locale['msp_ver'];
$inf_developer = "Manuel Wensierski";
$inf_email = "manuel.wensierski@hotmail.de";
$inf_weburl = "http://facebook.com/BlizzMusic1";

$inf_folder = "member_search";
$inf_panel_folder = "member_search_panel";

// Delete any items not required below.
$inf_newtable[1] = DB_msp_settings." (
  msp_id MEDIUMINT(8) UNSIGNED NOT NULL auto_increment,
  msp_name VARCHAR(50) NOT NULL,
  msp_visible INT(1) NOT NULL default '1',
  PRIMARY KEY  (msp_id)
) ENGINE=MyISAM;";

$inf_insertdbrow[1] = DB_msp_settings." (msp_id, msp_name, msp_visible) VALUES ('', 'gender', '1')";
$inf_insertdbrow[2] = DB_PANELS." (panel_name, panel_filename, panel_side, panel_order, panel_type, panel_access, panel_display, panel_status) VALUES ('".$locale['msp_name']."', '".$inf_panel_folder."', '1', '75', 'file', '0', '0', '1')";

$inf_droptable[1] = DB_msp_settings;

$inf_deldbrow[1] = DB_PANELS." WHERE panel_filename='".$inf_panel_folder."'";

$inf_adminpanel[1] = array(
   "title" => $locale['msp_admin'],
   "image" => "msp.png",
   "panel" => "msp_admin.php",
   "rights" => "msp"
);
?>


$inf_email hide the email for privacy from bbcode... in my source code i can see my own mail.

Greetings

DH24 - Manuel

PS: Sorry for my English but i come from Germany :)
0 replies
T
Tyler
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

Have you checked your error logs?
0 replies
D
DH24 - Manuel
D
cool Official Supporter and Developer on PHP-Fusion cool
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Hello Tyler,

that is the Problem my error log and error.log from the server display not infusion errors.

i confused a normaly panel without databse function i can create... is my first infusion & panel that use database functions.

And i look other infusions and learning from there but one day the infusion have installed i have editted my source code and the infusion can´t installed. i have return my edit and have clear the databse section from my infusion and i can´t install again.

My File Structure

member_search
- locale
- German.php
- index.php (0 kbs)
- images
- icons
- index.php (0 kbs)
//Member Search Directory (Files)
- index.php (0 kbs)
- infusion.php
- infusion_db.php
- member_search.php
- msp_admin.php

member_search_panel
- member_search_panel.php
- index.php (0 kbs)

I hope that can help you for a usefull Tipp.

Greetings

DH24 - Manuel

PS: Sorry but my English ist not so good (Germany :) )
Edited by DH24 - Manuel on 23-11-2013 00:59,
0 replies
T
Tyler
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
answered
Member

*face palm* - just try changing
ENGINE=MyISAM

to
TYPE=MyISAM
in the infusion.php file
0 replies
D
DH24 - Manuel
D
cool Official Supporter and Developer on PHP-Fusion cool
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Hello Tyler,

many thanks for your help but ENGINE=MyISAM is 100% correct.

I have many Addons Installed with TYPE=MyISAM and become an error then the new version of mysql worked with ENGINE=MyISAM

The error for TYPE=MyISAM is Table xyz dosen´t exist...
With ENGINE=MyISAM is the Addon correct and work fine.

Back to my Problem...

My Problem is that i can´t Installed the Infusion i have look other Addons to learn it but the first install have worked but the second or thirt installation dosen´t work.

Greetings

DH24 - Manuel

PS: Sorry but my English is not so good (Germany :) )

Merged on Nov 25 2013 at 02:30:31:
#Pushed :)

Merged on Nov 29 2013 at 16:26:17:
#PUSHED
Edited by DH24 - Manuel on 29-11-2013 17:26,
0 replies
M
matze45
M
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 2 threads in the forums
answered
Junior Member

best you write it again ........ since you do not even see the error ...... but why sol to tell you the error ...I agree tayler right...............:(
0 replies
G
Gillette
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Please stop bumping the thread.:x
0 replies
D
DH24 - Manuel
D
cool Official Supporter and Developer on PHP-Fusion cool
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Newbie

Ok, then i must write again my source code or i write a non.fusion compatible source with a engine for fusion.

i try it.

Thanks and please close.
0 replies
G
Gillette
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Ok.locked
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

T
T
Tyler 10
Helping, would be pointing you in the right direction, not doing it all for you.
  • Member, joined since
  • Contributed 198 posts on the community forums.
  • Started 3 threads in the forums
G
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums
M
M
  • Junior Member, joined since
  • Contributed 24 posts on the community forums.
  • Started 2 threads in the forums
D
D
cool Official Supporter and Developer on PHP-Fusion cool
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet