Page 1 of 1

Use Serendipity as a wrapper?

Posted: Tue Oct 10, 2006 9:29 pm
by kmccann
Hi,

Is it possible to use Serendipity as a wrapper for another app? The goal is to have an existing application run in the "display area" of s9y, and maybe also be modified to be able to access variable info such as user name.

So I might have myapp.php that does this:

- sets up the s9y environment
- executes myapp stuff
- closes the s9y environment

So if I have, say, a stats program of some sort, I could have a URL like

www.s9ysite.com/myapp.php?op=showstats&player_id=12

and it would show all of the regular Serendipity stuff on top and in the side menus, but the display area would contain my stats application content; no articles or comments would be shown.

I can dig into the code to see if it's possible, but I was hoping someone more intimate with the software could let me know if I'm barking up the wrong tree or not.

- Kevin

Re: Use Serendipity as a wrapper?

Posted: Tue Oct 10, 2006 9:42 pm
by garvinhicking
Hi!

Did you try out the "Wrap URL" spartacus plugin? This can embed foreign content as an iframe. If you are PHP-savy, youcould use that plugin as a base for embeding any other PHP code instead of an iframe?

So actually, yes - everything can be solved using the s9y plugin API :)

Best regards,
Garvin

Posted: Tue Oct 10, 2006 9:51 pm
by kmccann
I would definitely want to avoid using iframe. I'll dig in and see if I can make it work in the way you suggested. I'll try to remember to report back, just in case there is interest.

Thanks,

Kevin