I have to place an ad into my youtubescript and need help.
It is a php file and has to execute to display a link that changes on each page.
I cant seem to get the template to bring in a php file include. Can anyone help?
Printable View
I have to place an ad into my youtubescript and need help.
It is a php file and has to execute to display a link that changes on each page.
I cant seem to get the template to bring in a php file include. Can anyone help?
i dont think you can.
could try iframe?
Boxerman you are a thinker. Thank you. That is a kludge and works but I am hoping to do thisin a better way.
The iframe also seems to blow the design out no matter what height I put it at unless the iframe is on the bottom of the sidebar. But it works for the moment.
I hope someone can help with how to do a php file include in this stuf cause it will make it work better for adverts.
I tried the smarty include_php but that did not work. I don't know if I have to assign the output to a variable and call it later maybe? I think the php has to be called in the main files and executed as a variable in the output or the smarty will not allow outside include (even though I have tried both local and remote file includes and moved them to different directories to experiment - with no success).
So Boxerman you have the first solution but it is kludge and I am still requesting anyone that might be able to get this done as a real include?
Thanks again Boxerman you did give me the breathing space to find the program solution (if it exists).
CHEERS! :D
Smarty is a real pain in the ass when it comes to includes and PHP.
The only way I found to do it was like this:
{include_php file="/home/http/yoursite.com/yourfile.php"}
So, you use the path to the file, and you make whatever you want to include into its own separate file.
We found that we had to do this because we were just trying to get ordinary php stuff to work, and it wouldn't.
to inculde a php it is
<?php
include 'vars.php';
?>
i havnt seen this work...
smarty i think... not 100 percent...
{include file="FILENAME.php"}
but thats them.. i dont think there is any other way
I still could not get it to work. Apparently the frameset is not a good working solution either regretably.
I am still trying. I would like to do one in the vshare also and wonder if anyone has been able to do a php include?
See my message above. It works perfectly.Quote:
Originally Posted by musictvblogger
Guys, please please please search the forums, this topic has been posted many times.
http://www.google.com/custom?domains=fo ... %3A1&hl=en
i think this topic will help you.
viewtopic.php?f=8&t=1155