Please do This Little Optimize On Sp Page Core Code To Can Create Third Party On It (Developer Need That) - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Please do This Little Optimize On Sp Page Core Code To Can Create Third Party On It (Developer Need That)

S

saman

SP Page Builder 7 months ago

please show this post to any sp page builder developer: Hello I created an addon as a joomla plugin that works as an Ajax, but I noticed that in line 415 of controller file in components/com_sppagebuilder/controller.php (sp ver5.5.2), no condition was considered to manage Ajax requests from plugins. Please manage Ajax requests received through SP plugins by placing a suitable condition. For example, if the plugin parameter was present in the sent request, it would include the site.php file from the path /plugins/sppagebuilder/PluginName/addons/AddonName/site.php

https://prnt.sc/61rPqYYlN8Dz

0
14 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 7 months ago #187709

Hi

Thanks for contacting us. I will inform our DEV team about it. Allow me some time please.

-Regards.

0
S
saman
Accepted Answer
7 months ago #188539

hi thank you @Mehtaz but it is not resolved in the new sppb 5.5.2 is it any hope to resolve in 5.5.3 ?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 7 months ago #188632

Hi

I have already informed our DEV team about it. Only management decides what they implament when. That's why I am unable to say it. I will inform our DEV team again, so that they can implement it soon.

0
S
saman
Accepted Answer
5 months ago #191483

Hi Mehtaz I have been waiting for a long time for your developers to make a simple change to the sppb core so that we can have Ajax processing in the plugin. But unfortunately, since my message, two new versions have been released so far but we do not see any changes. This ability to develop sppb as a standard and not need to modify the core is important to my team. The only thing that needs to be done by your developers is to replace the old code with the following code.

old code: components/com_sppagebuilder/controller.php line 418

require_once JPATH_ROOT . '/components/com_sppagebuilder/parser/addon-parser.php';

            $core_path      = JPATH_ROOT . '/components/com_sppagebuilder/addons/' . $input->get('addon') . '/site.php';
            $template_path  = JPATH_ROOT . '/templates/' . SppagebuilderHelperSite::getTemplateName() . '/sppagebuilder/addons/' . $input->get('addon') . '/site.php';

            if (file_exists($template_path))
            {
                require_once $template_path;
            }
            else
            {
                require_once $core_path;
            }

new code:

        $plugin_name=$input->get('plugin', 'get', 'STRING');
            require_once JPATH_ROOT . '/components/com_sppagebuilder/parser/addon-parser.php';

            $core_path      = JPATH_ROOT . '/components/com_sppagebuilder/addons/' . $input->get('addon') . '/site.php';
            $plugin_path    = JPATH_ROOT . '/plugins/sppagebuilder/'.$plugin_name.'/addons/' . $input->get('addon') . '/site.php';
            $template_path  = JPATH_ROOT . '/templates/' . SppagebuilderHelperSite::getTemplateName() . '/sppagebuilder/addons/' . $input->get('addon') . '/site.php';

            if (file_exists($template_path))
            {
                require_once $template_path;
            }
            elseif(file_exists($plugin_path))
            {
                require_once $plugin_path;
            }
            else{
                require_once $core_path;
            }

say to developer and please use new code.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #191513

Hi

I am really sorry on behalf of my team. I have already informed our DEV team about it. I will again inform them as a higher priority so that they can add it ASAP.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #191641

Hi

We have added it in backlog, we will update it soon. Allow us some time please.

0
S
saman
Accepted Answer
5 months ago #191643

thankyou and i'm still for that

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 5 months ago #191646

You are welcome.

0
S
saman
Accepted Answer
3 months ago #197710

sppb 5.7 released but this capability not added.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 months ago #197715

HI saman,

Sorry for this inconvenience. I will inform our team about it.

0
S
saman
Accepted Answer
3 months ago #199534

now this code go to line 487. Do you care about our developers' problem? The problem I needed to be solved is still not solved in SPPB 5.7.1 This is the third time I have requested a fix.

the problem in the : https://www.joomshaper.com/forum/question/38476#qa-answer-191483 go s to: old code: components/com_sppagebuilder/controller.php line 487

from line 418

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 months ago #199991

Hi saman,

Sorry for this inconvenience. I have talked with our DEV team. They said "we will try to add this on our next update".

0
S
saman
Accepted Answer
2 months ago #200447

Hello. the new sppb 5.7.2 released but, Again, this need of ours has not been considered. I really think I am following up in vain. only 2 line need to modify. one of that : code: components/com_sppagebuilder/controller.php line 487

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 months ago #200454

Hi saman,

Sorry for this inconvenience. Its already in our list. Our DEV team will add it soon. I am really sorry on behalf of them. I will again inform them about it.

0