Use Serendipity as a wrapper?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
kmccann
Regular
Posts: 6
Joined: Thu Oct 05, 2006 3:48 pm
Location: Ottawa, Canada

Use Serendipity as a wrapper?

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Use Serendipity as a wrapper?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
kmccann
Regular
Posts: 6
Joined: Thu Oct 05, 2006 3:48 pm
Location: Ottawa, Canada

Post 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
Post Reply