raidplaner icon indicating copy to clipboard operation
raidplaner copied to clipboard

Wordpress Integration - Ideas

Open smb opened this issue 10 years ago • 3 comments

at the moment it's "only" possible to set portal mode and include as iframe.

what are your thoughts? is some sort of wordpress integration on your list (plugin? other ideas?)?

played around a bit (custom index.php as wordpress plugin) and had some issues:

  • session management ("headers already sent")
  • jquery noconflict mode (need to redeclare jquery as $jq, because $ isn't allowed)
  • static inclusion of css/js files (needs to be done with wp_enqueue_ functions)
  • absolute/non-configurable paths in js
  • css conflicts (e.g. duplicate "logo" element - easy fix)
  • some more... (dont have it up and running by now)

good thing is that in theory it should be enough to replace the index.php because everything else is handled by javascript/ajax.

still looking for a better way to do this without touching too much code to allow updates.

any suggestions?

smb avatar Jan 20 '14 17:01 smb

An inline integration to a site will be very difficult with the current state of the raidplaner. You already found several problems, another one would be the login form, which triggers a page reload. I can tackle several of these problems (and many things are already on my todo) but you will still have to do modifications as the raidplaner was originally built as standalone module.

Making the raidplaner inline integratable would be a major shift of focus and affect all files. Doing this in a clean and sustainable (!) way will probably take me at least a month at my current pace.

So - with everything that's currently on my list - I don't see this change happen in the near future. The best solution for now is to use an iframe. WIth this you can be sure that the raidplaner does not affect anything outside its borders and updating wob't require you to merge changes.

arnecls avatar Jan 20 '14 18:01 arnecls

I would recomment to integrate it in one CMS you like. I would switch my current CMS only because of this great raidplaner. I dont think site refreshs are much of a problem. I feel like making it responsible is more important!

Im more like a front end coder, but I would help you with it as much as I can. Also make use of modernizr or atleast use css classes from it when its already placed in a cms template

awmv avatar Mar 08 '14 15:03 awmv

Version 1.1.0 should have improved several of the problems mentioned in this post:

  • The main page should not start a session anymore
  • there is now only one css and one javascript file that needs to be included
  • css "subclassing" has been improved a lot
  • No page reloads anymore

The remaining problems are

  • jquery is still using "$" but a simple search and replace may fix this
  • paths are still static
  • layout is still pretty much static although a theme css can fix this

As 1.1.0 uses jquery 2.x which drops the support for older browsers anyway, I don't really see the need to use modernizr at the moment. At least nobody complained, yet ;)

I would like to see the raidplaner to be integratable in any kind of cms some time in the future, but I probably won't do an e.g. wordpress plugin myself. So if you want to create one and share your experiences, I can probably modify the raidplaner in a way that will make it easier to create such a plugin.

arnecls avatar Mar 09 '14 09:03 arnecls