How to use XMLRPC in Joomla 3.X - joomla3.0

I am lost with this and I need help. A point where start. I have been reading other stackoverflow questions but they are all about Joomla 1.5 whose XMLRPC is deprecated. i am working with Joomla! 3.45
I have also read this but it does not explain a thing about how to deal with the request. I have download the example at the end of the page but when I try to install it and see how it works, I get a JInstaller: :Install: Can't find Joomla XML setup file expection.
Could somebody help me? Thanks

Search extensions.joomla.org there is an an extension already for this. you can read the PHP code for that

Related

Datatable Plugin for CakePHP 4

I have been upgrading my application from cakephp 3 to cakephp 4. I was using fheider/cakephp-datatables and I have come across ypnos-web/cakephp-datatables where both support cakephp 3.
I am currently looking for a cakephp-datatable plugin which supports cakephp 4.
If anybody has an idea, I would be happy.
Thanks in Advance.
Isn't the built-in pagination is what you are looking for ? you can do advanced dynamic database links with your HTML tables.
I successfully use ypnos-web/cakephp-datatables on CakePHP 4.2.7. It works very well for me.
You might have to play around a bit to get it working correctly. Read some of the issues (open and closed) on the ypnos-web/cakephp-datatables github repository and you can likely get it working.
Good Luck!

How can I develop a plugin for Kibana?

I am really a beginner in ELK stack. I want to learn a plugin building for Kibana. I see their documentation for plugin building (https://www.elastic.co/guide/en/kibana/current/development-plugin-resources.html)
But the thing is, it's not enough for me or I can't understand it properly. I want to customize the Kibana dashboard with some other functionalities I want. I want to build the plugin by ReactJs in front-end. If anybody has any resource or any example codes to share it would be a great help for me. I am using Kibana and ElasticSearch both version 7.4.2
This might be an old question, but since I am facing the same issue, so maybe someone else could use this answer.
I found this presentation by Elastic for how to build you own Kibana plugin, it is an old one, they are working on Kibana 5 I guess, but could be a good starting point for someone.
https://www.elastic.co/elasticon/conf/2016/sf/how-to-build-your-own-kibana-plugins
I have also found this article that is more recent and the author uses ELK 7
https://chunkbytes.com/how-to-create-a-plugin-for-kibana/

Codename one Dropbox plugin?

is there any plugin to read and write to Dropbox? I have seen an other post about dropbox but was posted 2 years ago. Is there any change so the plugin can write to Dropbox? Or an other solution like dropbox for example google drive or something else? I ask because I need a solution for an application to backup its data.
Thanks in advance!
The same library is still there although I haven't personally tested that it still works. I know some developers ported it to OAuth 2.x but they didn't contribute the code back so if it doesn't work that might be a problem.
I'm not aware of a similar integration at this time.

How can create pdf file in cakephp 2.x

I am using "tcpdf" vendor file in cakephp 2.X but it is not looking good view. I want every html tag convert properly in pdf file. Please help.
I have found the a blog for you. its will be help you to find your problem.
Read the following blog
Generating PDFs with CakePHP
You will be find a link for demostration of different PDF file generator.
May be I help you.
I have built my own plugins in the past using MPDF, they worked for years, kinda slow on some environments. Recently, I switched to WkHtmlToPdf and love it. I built my own plugin then a few weeks later realized that one already existed. I would recommend using this plugin by Friends of Cake: https://github.com/FriendsOfCake/CakePdf
A lot of the contributor for Friends of Cake are also Core CakePHP developers, so its usually very well coded, tested & documented.
This plugin also works with several PDF generation engines, which is a nice touch!
I am using wkhtmltopdf for few years and it's working very good, quality of PDF you can get from a html is very good, I am also using the cakephp for PDF generation.
I am running this command from cakephp controller
shell_exec("/usr/bin/wkhtmltopdf < SOURCE_HTML_PATH/URL > < DESTINATION_PDF_PATH> ");
You can install stable version wkhtmltopdf for your linux distribution from this link
http://wkhtmltopdf.org/downloads.html#stable

CakePHP 3 and ACL plug in

I am trying to make a simple ACL using CakePHP 3, and there are no tutorials for it in the cook book (only for cakephp 2 and now acl doesn't exist in cakephp3)
Question 1
I am trying to install the acl plugin from https://github.com/cakephp/acl, how may I do that?
Question 2
Is there any comprehensive and beginner friendly tutorial on how to make an ACL on CakePHP3? I've trying searching everywhere, but found nothing. If anyone could guide me on how to do a simple one it would be much appreciated.
Many thanks
USE cakephp-3acl-example project to creating permission and granding permission for users
https://github.com/mattmemmesheimer/cakephp-3-acl-example
Question 1 I am trying to install the acl plugin from https://github.com/cakephp/acl, how may I do that?
Like any other plugin? See the documentation.
The readme.md itself contains instructions as well but also a warning:
Note: This is a non-stable plugin for CakePHP 3.0 at this time. It is
currently under development and should be considered experimental.
Maybe try it and provide feedback to the developers?
Question 2 Is there any comprehensive and beginner friendly tutorial on how to make an ACL on CakePHP3? I've trying searching everywhere, but found nothing.
If anyone could guide me on how to do a simple one it would be much appreciated.
ACL is always the same, if you know how ACL works you can implement it in any language and framework. If you don't know how, read about how ACL in general works.
But a better idea might to simply use the plugin you already found and help testing and completing it if you encounter issues.
burzum is correct that the installation instructions and documentation are available at https://github.com/cakephp/acl .
I am cutting over from a 1.3 implementation so have not gone through setting up a new acl database.
I have not seen a comprehensive doc on how to setup ACL, the 'short' version I have in my notes is:
1) setup 'Auth' as per the blog example (yes Auth is not ACL but this is what I am using it for)
2) install ACL using composer
3) override 'isAuthorized' in AppController with a check like:
...
use Acl\Controller\Component\AclComponent;
use Cake\Controller\ComponentRegistry;
...
public function isAuthorized($user){
$Collection = new ComponentRegistry();
$acl= new AclComponent($Collection);
$username=$user['username'];
$controller=$this->request->controller;
$action=$this->request->action;
$check=$acl->check($user['username'],"$controller/$action");
return $check;
}
You can follow this plugin.
CakePhp3-AclManager
And the tutorial (step by step) here
If you don't know Japan language, use google translate.
Good luck.

Resources