PDA

View Full Version : Problems with my hack?


Thurft
06-03-2003, 11:55 PM
My first hack :banana:

Well, i'm wanting to make a script for put pop up's in some zones of my web, but im realy lose. if some one can help me.
I havent to much experience in php&java.

$popupjava ="
<SCRIPT LANGUAGE=\"JavaScript\">
newwindow=window.open("http://www.helbreatharg.com","","width=1,height=1")
window.setTimeout ("newwindow.close();", 5000);
</script>"

My first question, ?Is that right?

I made a template and puted it in there ( popup_java, that's the name of the template) and then i went to the forumhome template and puted $popupjava in there, but when i load the page it doesnt load.
My second question, If the code is right, ?Why it isnt load?, ?Must i give some orden to the VB db for load first the template?
?anyone can advice me?
Thanke =)

noppid
06-08-2003, 05:30 PM
You have to load the variable $popupjava with the code from the popup_java template with an eval statement. Do this just before the "eval dooutput" statement that loads the forumhome template.

eval("\$popupjava = \"".gettemplate('popup_java')."\";");
eval("dooutput(\"".gettemplate('forumhome')."\");");

That should do it for ya.