Quote:
Originally Posted by funnytimecpl
it works on a blank page , but cant manage to make it only on first page 
|
I just took a quick look at what you posted and the page...
If you can live with your "Hey Perv...." being above your embed then what might work is to put your embed in the tpl_home function. I am assuming that the tpl_home only gets called for the home page and that home page is your first page.
I dould be wrong, I often am. ;p
Code:
function tpl_home()
{
The code to embed your cam....
get_cams ( AFFID, TRACK, $gender='', 28 );
}
See what that does for you.
If you can't live with that and must have the "Hey Perv..." below the embed then in the header you will have to check what page is being called for and only present it on pages you want.
The page being called is in $_SERVER['REQUEST_URI']; so you would have to interrogate that to see if you are on the first page or not before doing the presentation of the embed.
Also, if you use the code we have been doing here you will be pulling the xml feed multiple times needlessly. Somewhere in your stuff you are already pulling the xml feed. best would be to modify that piece to give you an online indicator to call on later.
.