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?

Duplicate infusion

Asked Modified Viewed 2,822 times
T
tomaszowiaktv
T
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Junior Member

How can I install infusion again whitch i have already installed? I want duplicate infusion Events Managment System.

Here is my calendar called "rezerwacja_panel" (http://get-away.pl/infusions/rezerwacja_panel/calendar.php).
I want install this infusion again (ex. http://get-away.pl/infusions/rezerwacja_panel2/calendar.php).

Which files should i modify and how to make this action?

Ofcorse i changed names from "rezerwacja_panel" to "rezeracja_panel2" in all files of infusion. But this is not work. I can't install.

[size=8]sorry for ma english...[/size]
0 replies

12 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

New DB_TABLE_NAME also.
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Maybe adapt infusion.php for separate rights?
0 replies
T
tomaszowiaktv
T
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

New DB_TABLE_NAME also.
- by Craig


I changed name table, but still not work.
infusin_db.php
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (!defined("DB_EVENTS")) {
   define("DB_EVENTS", DB_PREFIX."ems_events2");
}


This is file infusion.php. Can you help me?
if (!defined("IN_FUSION")) { die("Access Denied"); }

include INFUSIONS."rezerwacja_panel2/infusion_db.php";

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

// Infusion general information
$inf_title = "Rezerwacja panel 2";
$inf_description = $locale['inf_description'];
$inf_version = "1.00";
$inf_developer = "Ankur Thakur";
$inf_email = "admin@phpfusionmods.co.uk";
$inf_weburl = "http://www.phpfusionmods.co.uk";

$inf_folder = "rezerwacja_panel2";
 
$inf_newtable[1] = DB_EVENTS." (
event_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
event_title VARCHAR(100) NOT NULL DEFAULT '',
event_author MEDIUMINT(8) UNSIGNED NOT NULL,
event_startdate INT(10) UNSIGNED DEFAULT '0',
event_enddate INT(10) UNSIGNED DEFAULT '0',
event_text TEXT NOT NULL,
event_visibility INT(3) UNSIGNED DEFAULT '0',
event_image VARCHAR(100) NOT NULL DEFAULT '',
event_thumb_image VARCHAR(100) NOT NULL DEFAULT '',
event_allow_comments TINYINT(1) UNSIGNED DEFAULT '0',
event_allow_ratings TINYINT(1) UNSIGNED DEFAULT '0',
event_hidden TINYINT(1) UNSIGNED DEFAULT '0',
PRIMARY KEY (event_id)
) ENGINE=MyISAM;";

// Infusion Settings
$inf_insertdbrow[1] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_member_post_allow', '0', '".$inf_folder."')";
$inf_insertdbrow[2] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_post_admin_moderate', '1', '".$inf_folder."')";
$inf_insertdbrow[3] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_show_birthdays_calendar', '1', '".$inf_folder."')";
$inf_insertdbrow[4] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_width', '1800', '".$inf_folder."')";
$inf_insertdbrow[5] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_height', '1600', '".$inf_folder."')";
$inf_insertdbrow[6] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_width', '200', '".$inf_folder."')";
$inf_insertdbrow[7] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_height', '200', '".$inf_folder."')";
$inf_insertdbrow[8] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_size', '300000', '".$inf_folder."')";
$inf_insertdbrow[9] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_calendar_tip_direction', 'up', '".$inf_folder."')";
$inf_insertdbrow[10] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_panel_tip_direction', 'left', '".$inf_folder."')";
// Style CSS
// BG Color
$inf_insertdbrow[11] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_currentdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[12] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_eventdate', '00FF00', '".$inf_folder."')";
$inf_insertdbrow[13] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_dates', 'FFFFFF', '".$inf_folder."')";
// Text Color
$inf_insertdbrow[14] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_currentdate', 'FFFFFF', '".$inf_folder."')";
$inf_insertdbrow[15] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_eventdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[16] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_dates', '000000', '".$inf_folder."')";
// Days Colors
$inf_insertdbrow[17] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_days', '333333', '".$inf_folder."')";
$inf_insertdbrow[18] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_days', 'FFFFFF', '".$inf_folder."')";

// Add Site Link - Events
$inf_sitelink[1]['title'] = $locale['event_view'];
$inf_sitelink[1]['url'] = "events.php";
$inf_sitelink[1]['visibility'] = "0";

// Delete Infusion Settings
$inf_deldbrow[1] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'";

// Delete Comments on Events
$inf_deldbrow[2] = DB_COMMENTS." WHERE comment_type='EM'";

// Delete Ratings on Events
$inf_deldbrow[3] = DB_RATINGS." WHERE rating_type='E'";

// Drop Table Events
$inf_droptable[1] = DB_EVENTS;

$inf_adminpanel[1] = array(
   "title" => $locale['inf_title'],
   "image" => "ems.png",
   "panel" => "rezerwacja_panel2_admin.php",
   "rights" => "EMS"
);
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

In all files of the infusion change DB_EVENTS to DB_EVENTS2 (in capitals)
0 replies
T
tomaszowiaktv
T
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

I changed what You say, but still not work..

infusion.php
if (!defined("IN_FUSION")) { die("Access Denied"); }

include INFUSIONS."rezerwacja_panel2/infusion_db.php";

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

// Infusion general information
$inf_title = $locale['inf_title'];
$inf_description = $locale['inf_description'];
$inf_version = "1.00";
$inf_developer = "Ankur Thakur";
$inf_email = "admin@phpfusionmods.co.uk";
$inf_weburl = "http://www.phpfusionmods.co.uk";

$inf_folder = "rezerwacja_panel2";

$inf_newtable[1] = DB_EVENTS2." (
event_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
event_title VARCHAR(100) NOT NULL DEFAULT '',
event_author MEDIUMINT(8) UNSIGNED NOT NULL,
event_startdate INT(10) UNSIGNED DEFAULT '0',
event_enddate INT(10) UNSIGNED DEFAULT '0',
event_text TEXT NOT NULL,
event_visibility INT(3) UNSIGNED DEFAULT '0',
event_image VARCHAR(100) NOT NULL DEFAULT '',
event_thumb_image VARCHAR(100) NOT NULL DEFAULT '',
event_allow_comments TINYINT(1) UNSIGNED DEFAULT '0',
event_allow_ratings TINYINT(1) UNSIGNED DEFAULT '0',
event_hidden TINYINT(1) UNSIGNED DEFAULT '0',
PRIMARY KEY (event_id)
) ENGINE=MyISAM;";

// Infusion Settings
$inf_insertdbrow[1] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_member_post_allow', '0', '".$inf_folder."')";
$inf_insertdbrow[2] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_post_admin_moderate', '1', '".$inf_folder."')";
$inf_insertdbrow[3] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_show_birthdays_calendar', '1', '".$inf_folder."')";
$inf_insertdbrow[4] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_width', '1800', '".$inf_folder."')";
$inf_insertdbrow[5] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_height', '1600', '".$inf_folder."')";
$inf_insertdbrow[6] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_width', '200', '".$inf_folder."')";
$inf_insertdbrow[7] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_height', '200', '".$inf_folder."')";
$inf_insertdbrow[8] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_size', '300000', '".$inf_folder."')";
$inf_insertdbrow[9] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_calendar_tip_direction', 'up', '".$inf_folder."')";
$inf_insertdbrow[10] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_panel_tip_direction', 'left', '".$inf_folder."')";
// Style CSS
// BG Color
$inf_insertdbrow[11] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_currentdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[12] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_eventdate', '00FF00', '".$inf_folder."')";
$inf_insertdbrow[13] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_dates', 'FFFFFF', '".$inf_folder."')";
// Text Color
$inf_insertdbrow[14] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_currentdate', 'FFFFFF', '".$inf_folder."')";
$inf_insertdbrow[15] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_eventdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[16] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_dates', '000000', '".$inf_folder."')";
// Days Colors
$inf_insertdbrow[17] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_days', '333333', '".$inf_folder."')";
$inf_insertdbrow[18] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_days', 'FFFFFF', '".$inf_folder."')";

// Add Site Link - Events
$inf_sitelink[1]['title'] = $locale['event_view'];
$inf_sitelink[1]['url'] = "events.php";
$inf_sitelink[1]['visibility'] = "0";

// Delete Infusion Settings
$inf_deldbrow[1] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'";

// Delete Comments on Events
$inf_deldbrow[2] = DB_COMMENTS." WHERE comment_type='EM'";

// Delete Ratings on Events
$inf_deldbrow[3] = DB_RATINGS." WHERE rating_type='E'";

// Drop Table Events
$inf_droptable[1] = DB_EVENTS2;

$inf_adminpanel[1] = array(
   "title" => $locale['inf_title'],
   "image" => "ems.png",
   "panel" => "rezerwacja_panel2_admin.php",
   "rights" => "EMS"
);
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Can you tell me if the table is created in the database after infusion?
0 replies
T
tomaszowiaktv
T
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

No, table isn't created after infusion. When I try install this, webrowser is refreshed and name of infusion is still red (in administration panel). So it is not insalled and table is not created.
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Can you sent me the complete modified infusion, so I can take a look at it
0 replies
T
tomaszowiaktv
T
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Ok, I upload in attachment my infusions.
rezerwacja_panel is working infusion.

Thank you a lot.
tomaszowiaktv attached the following file:
get.rar [No information available / 275 Downloads]
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Ok, It took mij head off, but you have to change 2 more things:

1 - Change rights of the duplicated infusion, rights may (of course) not be duplicated.
2 - Change the title of the infusion in the locale file. Title can't be (of course) be duplicated.

Then the infusion wil infuse.

One remark: in the infusion.php settings are added to the table settings_inf.
The key names of these settings are the same for both infusions. I could be the case existing settings are overwritten when infusing the copied infusion.

$inf_insertdbrow[1] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_member_post_allow', '0', '".$inf_folder."')";
$inf_insertdbrow[2] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_post_admin_moderate', '1', '".$inf_folder."')";
$inf_insertdbrow[3] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_show_birthdays_calendar', '1', '".$inf_folder."')";
$inf_insertdbrow[4] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_width', '1800', '".$inf_folder."')";
$inf_insertdbrow[5] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_height', '1600', '".$inf_folder."')";
$inf_insertdbrow[6] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_width', '200', '".$inf_folder."')";
$inf_insertdbrow[7] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_thumb_max_height', '200', '".$inf_folder."')";
$inf_insertdbrow[8] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_image_max_size', '300000', '".$inf_folder."')";
$inf_insertdbrow[9] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_calendar_tip_direction', 'up', '".$inf_folder."')";
$inf_insertdbrow[10] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_panel_tip_direction', 'left', '".$inf_folder."')";
// Style CSS
// BG Color
$inf_insertdbrow[11] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_currentdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[12] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_eventdate', '00FF00', '".$inf_folder."')";
$inf_insertdbrow[13] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_dates', 'FFFFFF', '".$inf_folder."')";
// Text Color
$inf_insertdbrow[14] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_currentdate', 'FFFFFF', '".$inf_folder."')";
$inf_insertdbrow[15] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_eventdate', 'FF0000', '".$inf_folder."')";
$inf_insertdbrow[16] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_dates', '000000', '".$inf_folder."')";
// Days Colors
$inf_insertdbrow[17] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_bgcolor_days', '333333', '".$inf_folder."')";
$inf_insertdbrow[18] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('ems_color_days', 'FFFFFF', '".$inf_folder."')";


If this is the case, rename them, but also rename them anywhere in the infusion.
0 replies
T
tomaszowiaktv
T
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
answered
Junior Member

Yeah! Its working now!
Thank You again my friend!
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
answered
Senior Member

Your welcome and good luck.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Answered 1 question
T
T
  • Junior Member, joined since
  • Contributed 10 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