1
Audiobuzz
UID protected, php rendered png image. Anyone done one?
  • 2005/9/22 4:23

  • Audiobuzz

  • Just popping in

  • Posts: 2

  • Since: 2005/9/22


I'm developing a custom module and want to be able to generate a png image using php and xoops. The image generated is dependent on the user logged in and also a few other GET options. it therefore needs access to the XOOPS API but allowing the module to set the http header to png and not outputing the normal header and footer of the page.

I know you can do a : $xoopsOption['output_type'] = plain; in 2.2 but this doesn't seem to work in 2.0.x.

Has anyone done anything similar to this? I've spent days googling for the answer and it seems that it hasn't been done before.

I'm running out of options.

AB

2
Audiobuzz
Re: UID protected, php rendered png image. Anyone done one?
  • 2005/9/22 6:17

  • Audiobuzz

  • Just popping in

  • Posts: 2

  • Since: 2005/9/22


Don't worry, it was as simple as not doing a

include XOOPS_ROOT_PATH.'/header.php';

and

include XOOPS_ROOT_PATH.'/footer.php';

I know this means it won't be cached but I don't want it to be anyway as the images are generated based on live data.

AB

Login

Who's Online

642 user(s) are online (185 user(s) are browsing Support Forums)


Members: 0


Guests: 642


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits