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
please do this little optimize on sp page core code to can create third party on it (Developer need that)
12 replies
Hi
Thanks for contacting us. I will inform our DEV team about it. Allow me some time please.
-Regards.
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 ?
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.
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.
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.
Hi
We have added it in backlog, we will update it soon. Allow us some time please.
thankyou and i'm still for that
You are welcome.
sppb 5.7 released but this capability not added.
HI saman,
Sorry for this inconvenience. I will inform our team about it.
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
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".
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
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.
Hello, I have been waiting for over 7 months and have a very small work request, but this small change has not been added yet.... I know what the answer is: Sorry, it will be done.
Hi
I have already informed our team. However, its core file changes, so while it will add or not, only management decides. I will again inform our team that this is a higher priority so that they can review it.
-Regards.