mirciogu Posted December 11, 2008 Share Posted December 11, 2008 I have this code: "; if($settings[special_homepage] == 1) $includes[content].= advspecial(); if(($settings[popupon] == 1) && (($freshvisit == 1) || ($settings[popuponce] != 1))) { $sql=$Db1->query("SELECT * FROM popups WHERE credits >=1 ORDER BY RAND() LIMIT 1"); if($Db1->num_rows() != 0) { $includes[content].= " <script type=\"text/javascript\"> var force=0 function setwinfocus() { window.focus() } window.open('loadpopup.php?ref=$ref','PaidToPromote','width=790,height=500,left=10,top=10,toolbar=yes,menubar=no,scrollbars=yes,status=yes,resizable=yes,location=yes'); setTimeout(\"setwinfocus()\",1500); </script> "; The pages displaying on opens a popup. Since this is very annoying popup I want to change it with a popup like this: http://www.dynamicdrive.com/dynamicindex11/abox2.htm or, http://www.dynamicdrive.com/dynamicindex11/dhtmlad.htm or to open an iframe like this: http://clixncash.com/index.php?p=1&ref=ptmonitor What should I change the code to make it so? Link to comment https://forums.phpfreaks.com/topic/136533-i-need-to-change-a-php-code/ Share on other sites More sharing options...
gevans Posted December 11, 2008 Share Posted December 11, 2008 Well, you need to use one of your chosen codes and replace the javascript **not a php question** Link to comment https://forums.phpfreaks.com/topic/136533-i-need-to-change-a-php-code/#findComment-712682 Share on other sites More sharing options...
mirciogu Posted December 11, 2008 Author Share Posted December 11, 2008 I posted here because any change would do to that script fails after page and need someone to know php. And those examples are for Html on my page, I don't have <body> <head> tag. Link to comment https://forums.phpfreaks.com/topic/136533-i-need-to-change-a-php-code/#findComment-712689 Share on other sites More sharing options...
gamesmstr Posted December 11, 2008 Share Posted December 11, 2008 how are you calling $includes[content]? Are you using something like echo"$includes[content]"; ? Link to comment https://forums.phpfreaks.com/topic/136533-i-need-to-change-a-php-code/#findComment-712696 Share on other sites More sharing options...
mirciogu Posted December 11, 2008 Author Share Posted December 11, 2008 I don't use echo. Link to comment https://forums.phpfreaks.com/topic/136533-i-need-to-change-a-php-code/#findComment-712710 Share on other sites More sharing options...
gamesmstr Posted December 11, 2008 Share Posted December 11, 2008 then let me repeat my question. How are you calling it? Link to comment https://forums.phpfreaks.com/topic/136533-i-need-to-change-a-php-code/#findComment-712795 Share on other sites More sharing options...
mirciogu Posted December 11, 2008 Author Share Posted December 11, 2008 Do not ask me , I do not write this code, this I found him. I want to change it but I do not know. Link to comment https://forums.phpfreaks.com/topic/136533-i-need-to-change-a-php-code/#findComment-713061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.