wordpress java xml rpc library and/or client - wordpress

Can anyone recommend an xml rpc library or client for wordpress using java?
I've run into migration hell moving a joomla install to wordpress.
Main reason for wanting to use rpc now is because i will be using it as my primary way of posting to the blog so i'm putting a simple client together and it needs to be configurable enough to allow me to port my joomla posts.
Some posts in future will just be reports generated from a java program as well so, its kinda essential i get something now if possible.
BTW if anyone understands the current wordpress table structure and can advise on how to do direct mysql inserts then i'm open to that too.
thanks in advance.

Have a look at http://code.google.com/p/wordpress-java , I've just added a few features.

I've just posted this link on a different WordPress question:
Database Description from WordPress Codex. That will help you understand WordPress' table structure.
Your project sounds pretty interesting. A quick google search shows some info on Java and XML-RPC: 1, 2 (javax.xml.rpc ).
Second link belongs to Apache XML-RPC, probably a good option for your project.

Related

Use API on a WordPress site

Hello stackoverflow friends 🙂
I want to make a portal in wordpress with the Zabbix API. Can I do it in the WordPress platform itself or do I have to write the code elsewhere?
Is this possible?
Does anyone ever tried to do this kind of stuff?
Is there a plugin to call APIs?
I really need an answer to know if it is possible to do this type of things or if I need to look for another type of CMS’s.
Thanks and good work!
Yes it is possible to use that API in WordPress. You can create it as a plugin. Here's more details on how to create a plugin, from the official documentation : https://developer.wordpress.org/plugins/
To make the API calls, have a look at the HTTP API : https://developer.wordpress.org/plugins/http-api/
To do database interactions(like saving the data to your db or fetching it), have a look at the wpdb class : https://developer.wordpress.org/reference/classes/wpdb/
If you want to run cron jobs (scheduled tasks), please have a look at the WP-Cron: https://developer.wordpress.org/plugins/cron/
There are several built functions, hooks and classes in WordPress that will aid you. Just go through the developer documentation provided by WordPress.

Building a website for a hotel - is WordPress the best idea?

I'm researching to see if building a full website for a hotel be a good idea to do on WordPress.
I read that wordpress is okay but there are better options.
I want to design and code my own front end look to the website, but have the backend on a stable platform that can take all the reservations seamlessly.
My main concern is to be able to have a backup of all the files and easily switch to another server in case something goes wrong.
I can host the website on my server or host with the service you suggest that comes with the platform all together.
Any ideas and/or suggestions are greatly appreciated!
There are other options, no doubt, but yes, it can and is really possible to build it using WordPress as CMS.
If you want to design and code your own theme, you'll need to study the WordPress Theme Structure and, since you'll build it by yourself, you'll also need to develop plugins to create custom post types (aka CPT) to make the hotel management easier on the WP back-end.
About the theme structure, files, child themes and everything, I'd recommend you to read https://codex.wordpress.org/Theme_Development
About the plugins development: https://developer.wordpress.org/plugins/
About Custom Post Types: https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/
About the backup: it's super easy and you can even make a full backup using free plugins via back-end. But if the site goes down you can easily do it via FTP downloading only wp-content folder and the database. It's really simple to migrate from one WordPress to another, or from host to host.
About the hosting, you'll need to use a server if you want to build this project. There's a difference between wordpress.com and wordpress.org
The .com is simpler, you are not able to build everything you want. The .org is the open source project, which you get the files, upload to your server and connect to database (MariaDB or MySQL). Most hosts offer automatic installation for WordPress and, from there, you can change whatever you want and need.
Note: many developers create CPTs INSIDE the theme's code, but this is not recommended by WP as you can see in We recommend that you put custom post types in a plugin rather than a theme. This ensures that user content remains portable even if they change their theme.
WP is not really hard, after 1 week studying you'll see yourself getting over most difficulties. Even if it takes longer, don't give up. There's a huge community to help you with WP questions.
Hope it helps and I'm sorry my bad writing, I'm not an english native speaker.
C ya

ezpublish backend pushing to wordpress frontend

I have this problem that our primary news site is already running on wordpress. Due to the editorial workflows and some new projects, i am checking ezpublish. But I want to keep wordpress frontend and want to attach it to ezpublush. So content that gets generated in ezpub can be published live into wordpress. I find extensions are very limited so wondering has anything been worked upon this direction.
If you really want to keep on using Wordpress for your frontend, what about using the REST API to retrieve content from its content repository ?
The REST API provided by the eZ Engineering is just awesome so most of your work will be to develop something on the Wordpress side which will be able to get connected to this API (I don't know WP enough to say if it's something easy or not).
Another solution if you don't want to use the REST API, is to use an XML template in place of the default HTML one. This way, eZ Publish will expose its contents over XML which is more usable than pure HTML...
Pro for the REST API : very fast (in comparison of using the XML solution)
Cons for the REST API : need to develop something dedicated to this WP/eZ bridge on the WP side
Pro for the XML solution : maybe more simple since I'm pretty sure that there are some extension on the WP side which are able to import contents based on XML
Cons : see REST API's Pro
Sorry if it's obvious, but I'd suggest that you do an estimate of moving the design and content to ez so as to establish how much work you can afford to sink into this push idea.
I think that you should look at the workflow support in ez and the onpublish trigger. This will let you hook the content as it's being published in ez and push into wp. The model is going to have some edge cases since the content structure in ez is quite flexible. For example, you're going to need to make some choices about related content, embedded content and images.
The easiest option would be to configure an rss export from eZ and import that rss into WP objects. However I agree with Doug that you would be best using this as a temporary solution with the plan being to replace the Wordpress front end with an eZ front end.

Etherpad and Wordpress, possible?

I recently stumbled upon Etherpad, it's a collaborative writing tool
http://code.google.com/p/etherpad/ - main project page
online Examples:
http://piratepad.net/
http://ietherpad.com/
http://typewith.me/
I want to add this engine somehow to my wordpress and let people collaborate their posts,
I'm wondering if it has been done before and/or does it take more than
shared hosting (that is what I have) to do it [server capabilities or what-not] ?
In general, I think this is a complicated way to go about it. Also, Etherpad allows some very basic font formatting but no images and such things you might want to include in a blog. Instead I suggest looking for some Wordpress plugin for collaborative writing, and you might find something less "real-timey" but perhaps good enough.
Or if you really want to try with Etherpad:
Etherpad needs lots of memory (RAM) to run. A typical configuration is 1 GB, but it might be possible to get by on 128MB dedicated to Etherpad. This means you'll need at least 256MB in total for a first attempt. Your shared host also needs to have a Java server installed (typically Jetty) and some proxying server (typically nginx). All in all, you have some work ahead of you in just getting Etherpad up and running. After that, integrating into the Wordpress blog editor. If/how this can be done, I don't know. I'd probably do a client-side javascript-hack to get the Wordpress textarea or richtext editarea to update from the Etherpad readonly view, which is the only place where you can get the contents of a pad as more-or-less raw source text.
A simpler solution would be to just add an Etherpad page through an iFrame. See this post for example - http://www.knowledgepolicy.com/2010/02/embed-etherpad-into-blogpost-or-on-any.html
In theory it's possible to replace Wordpress' editor with an Etherpad Lite iFrame. Etherpad now allows image/font editing and table support as plugins.
Java is no longer required for Etherpad, NodeJS however is.
Here is a plugin that is in development that does what you want - however development seemed to stop in early 2012.
http://participad.org/ seems to be the best solution in this space to date. I haven't tested it on my own site, but they have an at least partially-working demo online.
Yes! It is possible. WordPress now has a plugin. The plugin has three modules which enables an Editor in dashboard and let you edit via front-end.
You can find more details on their FAQ page.

Joomla Blog/Wordpress Integration

I'm looking for a wordpress-like blog interface to put inside a Joomla hosted site. The admin interface of Joomla is quirky enough and hard enough to use that daily updates are infeasible.
What I am looking for is an easy-to-use posting interface that supports multiple users with different accounts/names, a tagging scheme, and easy find by date/user/tag functionality.
In particular I'm looking for a relatively easy-to-deploy, out-of-the-box solution, and would prefer not to hack rss feeds together or write too much custom code. I know there are several extensions out there but they all receive largely mixed reviews... Has anyone used any of these? Or has anyone had experience putting something like this together?
Well you could do this - have a wordpress installation. Get the users to post there and then use the RSS feed from it (or the XML RPC Blogging API) to update the Joomla installation. You will have to write the update piece once, but then all the headache is gone.
I'm not trying to be smart here, but if the admin interface of Joomla isn't working for you, aren't you doing yourself a disservice by trying to patch their UI instead of spending your time looking for a CMS that is easier to manage/a better fit for your user base?
Edit: All of the CMS's I've dealt with in ASP.NET are homegrown. However I'm looking into checking out Umbraco based on the recommendations of two well-respected friends. In the case you presented where you already have content in Joomla and a migration out to another CMS is going to be overkill, I think that vaibhav has got it right. You should look into setting up Wordpress or some other blogging engine and then simply have Joomla consume the content and display it in the Joomla site. I've not done it, but from what I remember of Joomla when I was looking at it, I believe that it would support this.
After doing a bit more research I decided to go with the open source MojoBlog. It was quite easy to install and configure and after a few stalls and hang ups that were resolved via perusal of their forums I was up and running. The edit interface is not ideal but it much better than Joomla admin, and it has multi-user-support, tag categorization, modules for viewing by tag, date, etc. Think it will suffice for my needs in the short term.
We at 'corePHP' have successfully integrated the WordPress and WordPress Multi-User blogging platforms into Joomla!. Please visit us to see what these feature-rich components have to offer you. https://www.corephp.com/wordpress/wordpress-integration-for-joomla-1.5.html
Happy Blogging,
Michael Pignataro
VP of Operations
www.corephp.com

Resources