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.
Sign In
Not a member yet? Click here to register.

Panels and Infusions

Help and support for problems with infusions and panels
3,801 posts | Last Activity on 08-12-2019 05:59 by atsmod
A
atsmod 08-12-2019 05:59, 5 days ago
Re: Ads Manager and sitemap infusion Ok. Is clear for me. Thanks man
Falk
Falk 07-12-2019 20:56, 6 days ago
Re: Ads Manager and sitemap infusion

Quote

1. Exist and other infusions in other places?
2. Why some infusions (like admanager, sitemap) doesn't work?
3. Why do not are more infusion avaible for 9.03?


1, You can google for PHP-Fusion mods, Russians and Germans do have some mod sites for 8 and 9.
2, They are not updated from 7 or 8 to work with 9. Most 7 and 8 Addons will not work on 9.
3, PHP-Fusion 9 is fairly new. Authors / Community have not update many of their older Infusions / Themes.
PHP-Fusion do include most standard ones with the Core Pack.
These Infusions are often in other CMSes community based and not included default.
We have a broad range of content handlers included. Such as Downloads, Forum, FaQ, Articles, News, Photo Gallery, Blog maintained by the Core Developers.
A
atsmod 07-12-2019 15:18, 6 days ago
Re: Ads Manager and sitemap infusion thanks man. sitemap infusion by Robin is fantastic...
Z
zizub 07-12-2019 12:54, 6 days ago
Re: Ads Manager and sitemap infusion 1. Some other infusions can be found at this address: https://github.com/RobiNN1
2. Have you tried this sitemap? https://github.com/RobiNN1/PHP-Fusion...emap_panel
3. I think, this is due to the fact that the new PHP-Fusion 9.xx, still continues to go through the testing phase.

Quote

After many years with wordpress, with many plugins, this portal script is pretty limited in "infusions"

I think, this is due to the fact that the new PHP-Fusion 9.xx, still continues to go through the testing phase. Often the code functions change. I, like you, do not know how to code php code, and I am dependent on ready-made infusion. Now, I need a tag system, but I do not want to use the obsolete infusion from HobbyMan, made in 2011 year. The author no longer supports this infusion. And such a situation with many other infusion.

For you, more specific answers should be expected from the developers.
A
atsmod 07-12-2019 06:10, 6 days ago
Re: Ads Manager and sitemap infusion Hello.
Like i say in other post i'm pretty new with php fusion.
Some days ago i install phpfusion 9 in godaddy hosting, and i add content...
After many years with wordpress, with many plugins, this portal script is pretty limited in "infusions"
I saw some infusion in Marketplace https://www.php-fusion.co.uk/infusions/marketplace/ .

But i have some questions:
1. Exist and other infusions in other places?
2. Why some infusions (like admanager, sitemap) doesn't work?
3. Why do not are more infusion avaible for 9.03?
A
atsmod 07-12-2019 05:42, 6 days ago
Re: Html codes in different parts of the website this is my theme.php
i don't know where to add
i've tried in many spots but give me crach page
Code
if (!defined('IN_FUSION')) {
 die('Access Denied');
}

require_once INCLUDES.'theme_functions_include.php';
require_once 'theme_autoloader.php';

define('THEME_BULLET', '·');
define('BOOTSTRAP', TRUE);
define('FONTAWESOME', TRUE);

if (!defined('ATOM9_LOCALE')) {
 if (file_exists(THEME.'locale/'.LANGUAGE.'.php')) {
 define('ATOM9_LOCALE', THEME.'locale/'.LANGUAGE.'.php');
 } else {
 define('ATOM9_LOCALE', THEME.'locale/English.php');
 }
}

function render_page(){
 Atom9Theme\Producer::GetInstance()->render_page();
}

function opentable($title = '', $class = '') {
 echo '
';
 echo $title ? '
'.$title.'
' : '';
 echo '
';
}

function closetable() {
 echo '
';
 echo '
';
}

function openside($title = '') {
 echo '
';
 echo $title ? '
'.$title.'
' : '';
 echo '
';
}

function closeside() {
 echo '
';
 echo '
';
}

$theme_settings = get_theme_settings('Atom9');
$ignition_pack = !empty($theme_settings['ignition_pack']) ? $theme_settings['ignition_pack'] : 'DefaultPack';
define('IGNITION_PACK', THEME.'IgnitionPacks/'.$ignition_pack.'/');

Atom9Theme\Core::GetInstance()->GetIgnitionPacks($ignition_pack);

Chan
Chan 06-12-2019 13:54, 7 days ago
Re: Html codes in different parts of the website In your current theme - theme.php file, find, render_poge() function. Do it there.

Code

function render_page() {
?>
html code here.
echo CONTENT; // this is the CMS output.
}

A
atsmod 03-12-2019 01:54, 11 days ago
Re: Html codes in different parts of the website Hello.
I'm very new with phpfusion, and i have a question. how it's possible to add some html codes in different parts of the website, like: under header, in footer, in download page, after the first post in forums...
thanks.
I tried ad manager infusion but do not appear in admin panel
Chan
Chan 03-11-2019 15:00, 1 month ago
Re: ci-Downloads Always use the "master" branch on these.

We will offer no support will be given for the rest of the branches here.

For any issues, you need to report on Github issues directly.
Falk
Falk 03-11-2019 14:49, 1 month ago
Re: ci-Downloads You would have to provide us with more information on what is happening, error messages etc.
Just a heads up, ci-downloads folder should go to /infusions/downloads ( rename it to downloads and place it under infusions ).
J_K_NIELSEN
J_K_NIELSEN 03-11-2019 12:41, 1 month ago
Re: ci-Downloads I just want to ask why I can't install it when I've installed it where it should be?

mvh J_K_NIELSEN
Falk
Falk 03-11-2019 12:18, 1 month ago
Re: ci-Downloads Yes it is for 9.
J_K_NIELSEN
J_K_NIELSEN 02-11-2019 20:50, 1 month ago
Re: ci-Downloads hey found it here it can run on php fusion v9.03

https://github.com/php-fusion/ci-Down...03475fb742


mvh J_K_NIELSEN
RobiNN
RobiNN 22-10-2019 11:58, 2 months ago
Re: Infusions latest_videos_panel Update https://github.com/RobiNN1/PHP-Fusion...-Infusions
J_K_NIELSEN
J_K_NIELSEN 21-10-2019 22:21, 2 months ago
Re: Infusions latest_videos_panel hejsa has an error in this latest_videos_panel.
I have only one error

is it a language file



latest_videos_panel.php
/php/home.php
Linje: 34
3 minutter siden

Vigtighed : Der blev genereret advarsler af Run-time
Undefined index: VID_latest



Code
 $result = dbquery("SELECT v.*, vc.video_cat_id, vc.video_cat_name, u.user_id, u.user_name, u.user_status, u.user_avatar, u.user_level,
 u.user_joined
25     FROM ".DB_VIDEOS." v
26     INNER JOIN ".DB_VIDEO_CATS." vc on v.video_cat = vc.video_cat_id
27     LEFT JOIN ".DB_USERS." u ON v.video_user=u.user_id
28     ORDER BY v.video_datestamp LIMIT 6
29     ");
30    
31     $locale = fusion_get_locale('', VID_LOCALE);
32    
33     if (dbrows($result)) {
34     openside($locale['VID_latest']);

Line 34 -- 5 minutter siden
Undefined index: VID_latest

35     echo '
';
36    
37     while ($data = dbarray($result)) {
38     if ($data['video_type'] == 'youtube') {
39     if (!empty($data['video_image']) && file_exists(VIDEOS.'../../images/'.$data['video_image'])) {
40     $thumbnail = VIDEOS.'../../images/'.$data['video_image'];
41     } else {
42     $thumbnail = 'https://img.youtube.com/vi/'.$data['video_url'].'/maxresdefault.jpg';
43     }
44     } else if (!empty($data['video_image']) && file_exists(VIDEOS.'../../images/'.$data['video_image'])) {



mvh J_K_NIELSEN
SkeeredOfMyMind
SkeeredOfMyMind 21-10-2019 13:51, 2 months ago
Re: Upgrading v7 Infusions to v9

Quote

In infusion.php you will need to add ,
Code
$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
$inf_adminpanel[] = array(


Add, under rights page 5 as follows. Do not miss the , on the rights line.
Code
   
"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 in
Code
"rights" => "DEMO",

and what is each of the pages 1-4 if you do not mind explaining a bit more.


$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
ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


Since we use UTF-8mb4 in 9.

You need to replace all
with openform(); and all
with closeform();
Since many old infusions use formaction, this is how you would make it work with openform();

Code
$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
               // 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 "
\n";
               echo "\n";
               echo "\n";
               
               // Form content as usual
               
               echo "
\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.


I'd greatly appreciate answers to my questions, if you will, please. I am just learning how to update the Infusions so I am a little confused on a few things but would like to update them myself instead of paying someone to do it! It will save me tons of money and make me happy. I will definitely donate some money to the PHP-Fusion Project if I can figure this out and update all the Infusions I want to use and not have to pay others to do it.
SkeeredOfMyMind
SkeeredOfMyMind 21-10-2019 13:30, 2 months ago
Re: Upgrading v7 Infusions to v9 I have been searching for something like this, this is JUST what I needed. I was going to hire someone to update Infusions for me and now I do not have to if this works. Thank you for sharing this Falk!

Now, if we only had this for Themes! Is there a tutorial like this for updating Themes too?
Grimloch
Grimloch 21-10-2019 03:23, 2 months ago
Re: Help With Undefined Variable: settings in infusion.php file Send it to me and I'll fix it for you.
SkeeredOfMyMind
Re: Help With Undefined Variable: settings in infusion.php file

Quote

Easy. After this line:
if (!defined("IN_FUSION")) { die("Access Denied"); }

Add this:
$settings = fusion_get_settings();

Also on lines 25 and 27 you need to change this:
".$settings['locale']."

To this:
".LANGUAGE."


After I changed those lines of code, it threw all types of errors. I am likely going to have to update the entire script so it will work. I will likely have to hire someone to update it for me since I am not familiar with all the changes in Infusions in PHP-Fusion 9.
Grimloch
Grimloch 19-10-2019 16:56, 2 months ago
Re: Help With Undefined Variable: settings in infusion.php file Easy. After this line:
if (!defined("IN_FUSION")) { die("Access Denied"); }

Add this:
$settings = fusion_get_settings();

Also on lines 25 and 27 you need to change this:
".$settings['locale']."

To this:
".LANGUAGE."
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.