I replied to your PM it sounds to me like your using on the fly watermarks with imagemagick which is a no no
zarzaL
1) do you include the header as .php or .htm ?
PHP
2)
PPPRINT;
echo <<<PPPRINT
this surround any php function in the header?
YES
3) what should I do with $tbopen and $tbclose?
THEY BECOME $ppopen and $ppclose or you just place the html equivelent in there
I posted a mock header in my old thread on the integration that I use.
As far as php switch's to see if a user is an admin or to show which buttons whether logged in or out I use the Photopost equivelent things like this
if ( $User['adminedit'] == 1 ) {
blah blah
}
if ( $User['userid'] > 0 ) {
blah blah
}