$settings = fusion_get_settings();
$inf_adminpanel[] = array(
"rights" => "DEMO",
"page" => 5,
"language" => LANGUAGE
ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
$formaction = "".INFUSIONS."yourinfusion/target.php";
echo openform('inputform', 'post', $formaction, array('enctype' => 1,'class' => 'm-t-20'));
// Token data
$options['form_id'] = "12345678";
$options['max_tokens'] = "1";
$options['remote_url'] = fusion_get_settings('site_path').'infusions/myinfusion/post.php';
$token = \Defender\Token::generate_token($options['form_id'], $options['max_tokens'], $options['remote_url']);
// Begin Form
echo "<form id='".$options['form_id']."' name='postform' method='POST' action='".$options['remote_url']."'>\n";
echo "<input type='hidden' name='fusion_token' value='".$token."' />\n";
echo "<input type='hidden' name='form_id' value='".$options['form_id']."' />\n";
// Form content as usual
echo "</form>\n";
Quote
In infusion.php you will need to add ,Code Download source$settings = fusion_get_settings();
This might also be required in other places depending on the complexity of your infusion.
What other files may this need to be placed in?
In this section ,Code Download source$inf_adminpanel[] = array(
Add, under rights page 5 as follows. Do not miss the , on the rights line.Code Download source
"rights" => "DEMO",
"page" => 5
page 5 means that it will be listed under Infusions, 1-4 is the other tabs.
I know this is for Infusions that include Admin Panels but what file does this code go in? What are the files for Infusions with Admin Panels typically called? Also, is DEMO what goes inand what is each of the pages 1-4 if you do not mind explaining a bit more.Code Download source"rights" => "DEMO",
$inf_newtable[1] etc can all be striped of the number , like :
$inf_newtable[] row1;
$inf_newtable[] row2;
etc
The system will enumrate automatically.
TYPE = MyIsam should always be ENGINE = MyISAM,
preferably like,Code Download sourceENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Since we use UTF-8mb4 in 9.
You need to replace all <form> with openform(); and all </form> with closeform();
Since many old infusions use formaction, this is how you would make it work with openform();Code Download source$formaction = "".INFUSIONS."yourinfusion/target.php";
echo openform('inputform', 'post', $formaction, array('enctype' => 1,'class' => 'm-t-20'));
What file(s) can this code typically be found in?
If you do not want to use the new form system you can manually insert tokens like,Code Download source// Token data
$options['form_id'] = "12345678";
$options['max_tokens'] = "1";
$options['remote_url'] = fusion_get_settings('site_path').'infusions/myinfusion/post.php';
$token = \Defender\Token::generate_token($options['form_id'], $options['max_tokens'], $options['remote_url']);
// Begin Form
echo "<form id='".$options['form_id']."' name='postform' method='POST' action='".$options['remote_url']."'>\n";
echo "<input type='hidden' name='fusion_token' value='".$token."' />\n";
echo "<input type='hidden' name='form_id' value='".$options['form_id']."' />\n";
// Form content as usual
echo "</form>\n";
What file(s) is this code in typically also?
Please note that any MySQL errors will halt the Infuse as a whole, generic upgrade lines that fail or generic table modification attempts on non existing tables will result in a failure.
Quote
What other files may this need to be placed in?
I know this is for Infusions that include Admin Panels but what file does this code go in? What are the files for Infusions with Admin Panels typically called? Also, is DEMO what goes in
Quote
I know this is for Infusions that include Admin Panels but what file does this code go in? What are the files for Infusions with Admin Panels typically called? Also, is DEMO what goes in
Quote
what is each of the pages 1-4 if you do not mind explaining a bit more.
Quote
What file(s) can this code typically be found in?
Quote
What file(s) is this code in typically also?
Category Forum
Panels and InfusionsLabels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions