Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 18h 53m 47s
Claim 50% off
Staff replied SP Page Builder

please do this little optimize on sp page core code to can create third party on it (Developer need that)

Asked by saman 1 year ago Last activity 1 year 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

12 replies

Mehtaz Afsana Borsha Staff

Hi

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

-Regards.

saman Asked this

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 ?

Mehtaz Afsana Borsha Staff

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.

saman Asked this
1 year ago · edited

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.

Mehtaz Afsana Borsha Staff

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.

Mehtaz Afsana Borsha Staff

Hi

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

saman Asked this

thankyou and i'm still for that

Mehtaz Afsana Borsha Staff

You are welcome.

saman Asked this

sppb 5.7 released but this capability not added.

Mehtaz Afsana Borsha Staff

HI saman,

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

saman Asked this

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

Mehtaz Afsana Borsha Staff

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".

Log in to reply.