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?

Help with infusion.php

Asked Modified Viewed 1,647 times
M
Mordak@US
M
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Junior Member

I am making a infusion, and i can't get the infusion.php file correct. Any help is greatly received.
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Sticky Note System
| Copyright (c) 2005-2011 Frank Pearson
| Version: 1.00
| Author: Frank Pearson
| Develpers: Mordak
| Site: http://extremefusion.co.uk
+--------------------------------------------------------+
| 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."sticky_note_system/infusion_db.php";
// Infusion general information
$inf_title = "Sticky Note System";
$inf_version = "1.0";
$inf_developer = "Mordak";
$inf_weburl = "http://extremefusion.co.uk";
$inf_email = "mordak@extremefusion.co.uk";
$inf_folder = "sticky_note_system";
$inf_description = "A Place to add notes";

$inf_newtable[1] = DB_NOTES." (
   note_id int(10) unsigned NOT NULL auto_increment,
   note_text varchar(128) collate utf8_unicode_ci NOT NULL default '',
   note_author_id int(10) collate utf8_unicode_ci NOT NULL default '',
   note_color enum('yellow','blue','green') collate utf8_unicode_ci NOT NULL default 'yellow',
   note_xyz varchar(20) collate utf8_unicode_ci NOT NULL default '',
   note_dt timestamp NOT NULL default CURRENT_TIMESTAMP,
   PRIMARY KEY (note_id)
) TYPE=MyISAM;";


$inf_insertdbrow[1] = DB_NOTES." (note_id, note_text, note_author_id, note_color, note_xyz, note_dt) VALUES('1', 'Thank you for using my infusion.', '1', '1', '478x0x1', '2010-01-17 06:30:14')";

$inf_sitelink[1] = array(
   "title" => "Notes",
   "url" => "index.php",
   "visibility" => "101"
);

?>


Thanks
Mordak
0 replies

5 posts

N
NetriX
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
answered
Senior Member

Hey Mordak,

I would advise downloading the official standard development kit for infusions.

http://www.php-fusion.co.uk/downloads.php?cat_id=17&download_id=204

It provides detailed instructions as to what the code should look like.

I would also like to point out that this is a support site for PHPFusion only. I noticed your infusion was built for Extreme-Fusion which is not of official relation with PHPFusion.

Perhaps you should seek support on there website?

Best,
NetriX
0 replies
M
Mordak@US
M
  • Junior Member, joined since
  • Contributed 19 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

This is for php-fusion.

I have looked though the documents and still can't fix it.

Anyone else help ?

Mordak
Edited by Mordak@US on 02-06-2011 11:02,
0 replies
A
Ankur
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
answered
Veteran Member

Here is an Example of my Infusion which works OK :

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

// Defining Database File
include INFUSIONS."my_infusion_panel/infusion_db.php";

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

// Infusion general information
$inf_title = $locale['ds_title'];
$inf_description = $locale['ds_desc'];
$inf_version = "1.0";
$inf_developer = "Ankur Thakur";
$inf_email = "thakurboyz2007@gmail.com";
$inf_weburl = "http://ankurthakur.in";

// Defining the name of folder of my infusion
$inf_folder = "my_infusion_panel";

// Creating a table
$inf_newtable[1] = DB_DEV_ADDONS_SITES." (
site_id SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
site_title VARCHAR(100) NOT NULL DEFAULT '',
site_url VARCHAR(200) NOT NULL DEFAULT '',
PRIMARY KEY (site_id)
) ENGINE=MyISAM;";

// Creating an other table
$inf_newtable[2] = DB_DEV_MYADDONS." (
addon_id SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
addon_name TEXT NOT NULL DEFAULT '',
addon_type TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
addon_version VARCHAR(10) NOT NULL DEFAULT '',
addon_thumb TEXT NOT NULL DEFAULT '',
addon_screenshot TEXT NOT NULL DEFAULT '',
addon_desc TEXT NOT NULL DEFAULT '',
addon_link TEXT NOT NULL DEFAULT '',
addon_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (addon_id)
) ENGINE=MyISAM;";

// Inserting Rows into existing tables if required
$inf_insertdbrow[1] = DB_DEV_ADDONS_SITES." (site_id, site_title, site_url) VALUES('0', 'Ankur Thakur E-Stand', 'http://ankurthakur.in/infusions/my_infusion_panel/addons.xml')";
$inf_insertdbrow[2] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('showcasefilename', 'addons', '".$inf_folder."')";
$inf_insertdbrow[3] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('showcasedevname', 'My Addons', '".$inf_folder."')";

// These rows will be dropped when Defused
$inf_deldbrow[1] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'";

// These tables will be dropped when Defused
$inf_droptable[1] = DB_DEV_ADDONS_SITES;
$inf_droptable[2] = DB_DEV_MYADDONS;

// Adding Links for Infusion in Admin Panel
$inf_adminpanel[1] = array(
   "title" => $locale['ds_title'],
   "image" => "my_infusion_panel.png",
   "panel" => "my_infusion_panel_admin.php",
   "rights" => "DS"
);

// Adding Extra Links for other file of Infusion in Admin Panel
$inf_adminpanel[2] = array(
   "title" => $locale['ms_title'],
   "image" => "my_infusion_panel.png",
   "panel" => "anyother_file_admin.php",
   "rights" => "MS"
);

?>
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Thread moved due to wrong forum
0 replies
— 6 months later —
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
answered
Senior Member

you should change:

) TYPE=MyISAM;";

to

) ENGINE=MyISAM;";
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 5 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,247 posts on the community forums.
  • Started 108 threads in the forums
A
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
N
N
NetriX 10
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Mon-Thurs. Send me a PM if urgent.
  • Senior Member, joined since
  • Contributed 566 posts on the community forums.
  • Started 93 threads in the forums
A
A
Ankur 10
Hi! Its me, Ankur Thakur! smile
  • Veteran Member, joined since
  • Contributed 1,277 posts on the community forums.
  • Started 60 threads in the forums
M
M
  • Junior Member, joined since
  • Contributed 19 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