Using cmsMadeSiple as a CMS for Flash - ideas

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
madsny
Forum Members
Forum Members
Posts: 31
Joined: Mon Jul 14, 2008 2:46 pm

Using cmsMadeSiple as a CMS for Flash - ideas

Post by madsny »

Hello exited people

First of all since this is my first post, i want to send out a big respect for the developers of CMSmadeSimple, it's a really comprehensive and scaleable system with the usability intact, those elements are VERY hard to fine in other free CMS system, trust me :D, this is also the reason i think it's important to make CMSmadeSmple usable for full flash based websites.

I have been playing around with the CMS for a while now and drawn down a few potentials on how to use CMSmadeSimple as a CMS for flash websites, the main idea is to use the already made modules, pages, news system to use for flash and mainly just port the date to flash via XML. Only think it really takes is these few steps:

- php script that create a structured XML with data
- strategy on how the user should use the page function to create galleries, text/image content pages, media galleries (for this i've come up with a lot of nice and user friendly ideas)

That's all, but since im not a genius on PHP or Mysql i need someone to build the PHP script.

THE IDEA:
A long time ago i hacked wordpress to work as a CMS for flash, but sinde it's a blog system it' really was a impossible to make any use of the system in this sense, there i've been hunting a CMS with a high user friendly approach when it comes to creating/editing pages. I found it :D.

The idea is pretty simple, until now i've come up with 3 main editing ideas.
Pages, gallery, media gallery.

PAGES:
(test, html, images)
When the user want to create a new page in flash, they only have to create a normal page in the CMS, watch in the browser and then flash loads the hole html content into a dynamic textcomponent in flash which takes html tags (since not all tag are allowed some conversion must be done, a little work here).
I look at the mysql database i found that all the main content HTML is stored nice and clean in a table field, just to port to flash, this should be very easy.

GALLERY:
(images, text)
An easy way of going a gallery "flash module" would be to create a normal page, add a photo, write some text underneath, place a new photo, some text and so forth, then when porting to readable XML for flash, all the image links are sorted out of the html text and another xml entry holds the text that are between the two images so these two elements are "hold" together, very easy.

Then from flash you just have to pre load all photos and make a dynamic text field to past the html formatted text.

MEDIA GALLERY:
(videos, flv, text)
Again by using the standard pages in CMSmadeSimple you can easily create a video gallery, a page with linkt to x amount of videos you wish to see, you could even have a thumb if you desire.
The idea is to use the "add media" in tinyMCE and use quicktime as the embedder, then the user physical sees an element for the video, can write some text underneath and everything it ported to XML like in the image gallery (some calculation/sorting on the html code need to be done)

The nice idea of using the Quicktime objectembedmend on the page is, this one have a popup with a lot of setting posibilities like, name, width, height, id, loop, start, end, ect. These could again be used to send data into to flash to tell it how it should use the avi/flv file.

NEWS/ARTICLES:
This module should also be used since it's a very straightforward and nice feature as a news or blog element inside flash, AND this module opens up for user feedback send into the CMS system from flash without creating some extra odd PHP/sql trick.


OTHER FEATURES:
Telling flash what template to use is also very easy, in CMSmadeSimple just duplicate your standard template, call it something like "FlashGallery" and assign it to the Page where you hold all the photos for your gallery, then from within flash you look in the XML where the template type or name is portet to let flash know how to deal with the data and what page structure/build you want it to use.

Alot of other features like this could be portet over time, it's just up to the flash programmer to create a program to handle them correct.




So as you can see i've given it quite a bit of thought, just by using the elements that's already in CMSmadeSimple, without adding or changing anything but just thinking a little different, you could actually make CMSmadeSiple into a VERY powerfull CMS for flash.

XML:
The only thing we need is to convert the menu structure from the CMS into a structured and userfriendly XML output.

The best structure for this from a flash viewpoint is something like this.


   
       
            ... Here goes all the content from the page.
       
       

            //// this structure can be repeated forever
         
              ... Here goes all the content from the page.
         
         
         


       
   
   
        ///// same as menuNode1
   


So the structure is basically the same as the menu structure, you can have a menunode that have a landing page to it, but also sub-pages connected to it.
Then within the the page data or news/article data is plotted, data within here will change according to the type of "template" you are using, therefor the firste node within the should tell flash what type of teplate this is and how the program should handle the data, else we just end up with some type or boring hardcode system.

Ideas on how to structure the Pages, Gallery, News and so on.

GALLERY
--------------------


   
   


   


PAGE
-------------------






Im not sure what is neede yet, therefor the 's, but one thing that need to be addressed here is the pageContent, either you would plot the html data directly into here within an CDDATA (after a safe html conversion for flash), or you could create a small PHP script and link to this telling it to fetch the html content data from the server and then output it as a text file, so flash would load this by its amazing command loadVars.. :D



Anyway. These are y ideas on how to make CMSmadeSimple into a very comprehensive CMS for flash, it's very easy for a skilled PHP/mysql since you basically just need to plot the menu structure as an XML file and add content from all the pages, but it does demand an understanding for look up tables and mysql mastering.

So this is where i need all you skilled people out there, anyone interrested in helping on this project, ill try to make an example in flash an make a more detailed description of what neede to be ported from the CMS plus later on some tut's for Flash people on how to use this new amazing "hack"/feature.

Kind regards.
Mads ny larsen

www.madeofdots.com
viebig

Re: Using cmsMadeSiple as a CMS for Flash - ideas

Post by viebig »

Well, I´m currently doing something like that with content blocks and the Object Tag.

Check http://www.restaurantekinoshita.com.br
madsny
Forum Members
Forum Members
Posts: 31
Joined: Mon Jul 14, 2008 2:46 pm

Re: Using cmsMadeSiple as a CMS for Flash - ideas

Post by madsny »

Nice site.
One of the Major thing in creating this hack is to make it very user friendly so non admins can set up new pages in flash without any special code here and there..

while looking at the Mysql server it came to my mind, that you would have to make a php function for each "flash module" you want (a page, gallery, media and so on). you could use the template name to call the correct PHP function to convert the data, BUT this means you then loos the ability to pick diffrent page template layout for you flash site, since this drop down field MUST be call by a static name to hit the correct php function.

Thou while brainstorming, you could make a simpel analysis of the name, like this.
FlashPage_PageName
FlashGallery_GalleryName
...

where PHP is most concerned about the string before the "_" as an static indicator for which function and approche to handle the content data and structuring it... hmmm DAMN where is my PHP nerd i got so many ideas..
playerhater
New Member
New Member
Posts: 7
Joined: Thu Jun 12, 2008 1:19 pm

Re: Using cmsMadeSiple as a CMS for Flash - ideas

Post by playerhater »

Hi,

Interesting idea, i once had the opposite idea - building html pages in a flash based backend.

What you might be interested in is flex. Flex is basically a framework for action script and it can interact with php(and much more).
Currently my company is developing a flash/flex program which interacts with redmine (task tracker on ruby) and loads tasks into flash and posts task from the flash into redmine. Ive seen similar projects on the net. Try googling flex cms, you might find just what you need. There is something called zoomcms or shadowcms or zoomflex or whatever which enables you to publish in flash. Allthough its commercial.

--
If somebody is interested in flex, ive made a 200 pages research on its possibilities, most of the document are examples. If you are really up to serious developing it could help you a lot, however if you are looking for something lighter/smarter its maybe better to stick with standart flash and php.
cyberman

Re: Using cmsMadeSiple as a CMS for Flash - ideas

Post by cyberman »

madsny wrote: So this is where i need all you skilled people out there, anyone interrested in helping on this project, ill try to make an example in flash an make a more detailed description of what neede to be ported from the CMS plus later on some tut's for Flash people on how to use this new amazing "hack"/feature.
Sounds great - like to see it 8).
madsny
Forum Members
Forum Members
Posts: 31
Joined: Mon Jul 14, 2008 2:46 pm

Re: Using cmsMadeSiple as a CMS for Flash - ideas

Post by madsny »

Yes i know Flex, it's a nice platform, but for this post i really want to focus on using CMS made simple as a CMS for flash since all the hard work in creating a nice userfriendly CMS :D.

Well im a flasher and not a php'er, but i played around with some code yesterday i got this out of it.
http://emotionalobjects.com/cms5/hack/output03.php

it ain't much yet, but if you "view source" you'll notice that the menu from
http://emotionalobjects.com/cms5/
and it's content are now placed into an structured array, from here on it's basically just to create am XML build script and converting some of the html tags to fit the language of flash.

ohh naturally you then need to build templates and such within flash, nothing comes easi, but hey, you have a nice CMS hehe.
Im aiming to make a working port-script this week, that enables to port pages and a Page-gallery.

please join in the process if you like.
yorgi63
Forum Members
Forum Members
Posts: 108
Joined: Fri Aug 25, 2006 4:35 pm

Re: Using cmsMadeSiple as a CMS for Flash - ideas

Post by yorgi63 »

Although I cannot help this is one of the great ideas I have heard in a long time. PLease keep us in the loop on this project.

Cheers,
Yorgi
User avatar
FantomCircuit
Forum Members
Forum Members
Posts: 75
Joined: Fri Nov 10, 2006 1:34 am
Location: Gold Coast, Australia

Re: Using cmsMadeSiple as a CMS for Flash - ideas

Post by FantomCircuit »

I have seen this done very well before, but not with CMS Made Simple.

I have seen it done with Symphony CMS.

http://21degrees.com.au/products/symphony/

Symphony is built on php, and inputs and outputs XML data as its default. You can use XSLT (on the server side) to then convert it into HTML, OR, you can just send something the XML instead. The storage engine behind it all is MySQL still as well.

It is a lovely CMS and is perfect for integrating with flash simply because of it's clean inputs and outputs (all valid XML)
robbedoes
Forum Members
Forum Members
Posts: 75
Joined: Wed Aug 20, 2008 2:08 pm
Location: Nijmegen, the Netherlands

Re: Using cmsMadeSiple as a CMS for Flash - ideas

Post by robbedoes »

Interesting idea though I'm just building a module using flash and cmsms for a kind of frontpage ads.
The text and the images to use in the flash ad are handled by cmsms.
The frontpages embeds a flash movie calling a service. The service is calling mysql and returns the data to be used in the movie.

I use amfphp for amf. For those interested in this have a look at:

http://www.amfphp.org/
Post Reply

Return to “Developers Discussion”