Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> POP UNDER
Pyksel
post 6.06.2004, 17:53:35
Post #1





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 27.11.2003
Skąd: Bytom

Ostrzeżenie: (0%)
-----


:? Cześć !
Mam problem , chce do swojej strony wstawić POP UNDER i mam kod ( podam tutaj bez danych )
Cytat
<SCRIPT LANGUAGE="JavaScript"><!--function (){window.open("","","'toolbars=false,location=false,width=,height=,directories=false,status=false,menu
ar=false,scrollbars=false'");}//--></SCRIPT>


I nie wiedziałem gdzie go wkleic to wkleiłem go do THEME.php

Cytat
<?php

$bgcolor1 = "#555555";
$bgcolor2 = "#666666";
$bgcolor3 = "#333333";
$bgcolor4 = "#444444";
$textcolor1 = "#FFFFFF";
$textcolor2 = "#FFFFFF";

include("themes/Ti2k/tables.php");

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/

function themeheader() {
   global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi, $module_name;
   cookiedecode($user);
   $username = $cookie[1];
   if ($username == "") {
       $username = "Anonymous";
   }
   echo "<body onmouseover="window.status=' $sitename ';return true" bgcolor="#4F4F4F" ONLOAD="preloadImages();" text="#FFFFFF" link="#009999" vlink="#009999" alink="#FF6600" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">";
   if ($banners == 1) {
       include("banners.php");
   }
   $topics_list = "<select style="width: 100px; height: 15px; border-width: 0px;" name="new_topic" onChange='submit()'>n";
   $topics_list .= "<option value="">All Topics</option>n";
   $toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
   while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
   if ($topicid==$topic) { $sel = "selected "; }
       $topics_list .= "<option $sel value="$topicid">$topics</option>n";
       $sel = "";
   }
   if ($username == "Anonymous") {
       $theuser = "&nbsp;&nbsp; <a href="modules.php?name=Your_Account&op=new_user" class="nav">Witaj! Kliknij tutaj aby załozyć konto";
   } else {
       $theuser = "&nbsp;&nbsp;Witaj $username ! na Stronie";
   }
   $public_msg = public_message();
   $tmpl_file = "themes/Ti2k/header.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = "$r_file="".$thefile."";";
   eval($thefile);
   print $r_file;
   if ($module_name != "Forums")
   {
   blocks(left);
   }
   $tmpl_file = "themes/Ti2k/left_center.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "$r_file="".$thefile."";";
   eval($thefile);
   print $r_file;
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
   global $index, $foot1, $foot2, $foot3, $copyright, $totaltime;
   if ($index == 1) {
       $tmpl_file = "themes/Ti2k/center_right.html";
       $thefile = implode("", file($tmpl_file));
       $thefile = addslashes($thefile);
       $thefile = "$r_file="".$thefile."";";
       eval($thefile);
       print $r_file;
       blocks(right);
   }
   $footer_message = "$foot1<br>$foot2<br>$foot3<br>$copyright<br>$totaltime";
   $tmpl_file = "themes/Ti2k/footer.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = "$r_file="".$thefile."";";
   eval($thefile);
   print $r_file;
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
   global $anonymous, $tipath;
   $ThemeSel = get_theme();
   if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
       $t_image = "themes/$ThemeSel/images/topics/$topicimage";
   } else {
       $t_image = "$tipath$topicimage";
   }
   if ($notes != "") {
       $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>n";
   } else {
       $notes = "";
   }
   if ("$aid" == "$informant") {
       $content = "$thetext$notesn";
   } else {
       if($informant != "") {
           $content = "<a class="nav" href="modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant">$informant</a> ";
       } else {
           $content = "$anonymous ";
       }
       $content .= ""._WRITES." <i>"$thetext"</i>$notesn";
   }
   $posted = ""._POSTEDBY." ";
   $posted .= get_author($aid);
   $posted .= " "._ON." $time";
   $tmpl_file = "themes/Ti2k/story_home.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "$r_file="".$thefile."";";
   eval($thefile);
   print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
   global $admin, $sid, $tipath;
   $ThemeSel = get_theme();
   if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
       $t_image = "themes/$ThemeSel/images/topics/$topicimage";
   } else {
       $t_image = "$tipath$topicimage";
   }
   $posted = ""._POSTEDON." $datetime "._BY." ";
   $posted .= get_author($aid);
   if ($notes != "") {
       $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>n";
   } else {
       $notes = "";
   }
   if ("$aid" == "$informant") {
       $content = "$thetext$notesn";
   } else {
       if($informant != "") {
           $content = "<a class="nav" href="modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant">$informant</a> ";
       } else {
           $content = "$anonymous ";
       }
       $content .= ""._WRITES." <i>"$thetext"</i>$notesn";
   }
   $tmpl_file = "themes/Ti2k/story_page.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "$r_file="".$thefile."";";
   eval($thefile);
   print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
   $tmpl_file = "themes/Ti2k/blocks.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "$r_file="".$thefile."";";
   eval($thefile);
   print $r_file;
}

?>


I dodalem tam na koncu :
Cytat
/************************************************************/
/* POP UNDERY I POPUP ()                                                                 */
/*                                                                                                     */
/* .                                                                                                   */
/************************************************************/

}
   echo "KOD POPUNDERA"

}

?>

I NIE DZIAŁA sad.gif CO JESYT GRANE WIE KTOS ?
JEST TO php-NUKE THEMES


--------------------
**************************************
WWW.CS.CONDITIONZERO.GLT.PL
Linknij ^ :) ^ Zobacz
**************************************
Go to the top of the page
+Quote Post
tsharek
post 6.06.2004, 20:03:37
Post #2





Grupa: Zarejestrowani
Postów: 300
Pomógł: 1
Dołączył: 22.09.2003
Skąd: Czeladź

Ostrzeżenie: (0%)
-----


niestety nie pomogę - nie używam phpnuka, ale zwrucę uwagę tylko na fajnie zredagowany post:) nie ma to jak kod pszedstawiać jako cytat:)
Go to the top of the page
+Quote Post
Paul
post 6.06.2004, 20:07:07
Post #3





Grupa: Zarejestrowani
Postów: 636
Pomógł: 0
Dołączył: 22.10.2003
Skąd: Katowice

Ostrzeżenie: (0%)
-----


cytat bo to nie jego kod winksmiley.jpg
Go to the top of the page
+Quote Post
Pyksel
post 6.06.2004, 20:50:02
Post #4





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 27.11.2003
Skąd: Bytom

Ostrzeżenie: (0%)
-----


Poco ta gadka??
Chce tylko zeby mi ktos pomógl !!


--------------------
**************************************
WWW.CS.CONDITIONZERO.GLT.PL
Linknij ^ :) ^ Zobacz
**************************************
Go to the top of the page
+Quote Post
Paul
post 6.06.2004, 21:39:53
Post #5





Grupa: Zarejestrowani
Postów: 636
Pomógł: 0
Dołączył: 22.10.2003
Skąd: Katowice

Ostrzeżenie: (0%)
-----


[php:1:82202e04f8]<?php
echo "<body onmouseover="window.status=' $sitename ';return true" bgcolor="#4F4F4F" text="#FFFFFF" link="#009999" vlink="#009999" alink="#FF6600" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="preloadImages(); ---- nazwy funkcji np: funkcja();">

------ tu skrypt popundera -------

";
?>[/php:1:82202e04f8]
Go to the top of the page
+Quote Post
Pyksel
post 7.06.2004, 12:01:00
Post #6





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 27.11.2003
Skąd: Bytom

Ostrzeżenie: (0%)
-----


Twoj sposob niestety nie działa sad.gif


--------------------
**************************************
WWW.CS.CONDITIONZERO.GLT.PL
Linknij ^ :) ^ Zobacz
**************************************
Go to the top of the page
+Quote Post
Paul
post 7.06.2004, 16:35:09
Post #7





Grupa: Zarejestrowani
Postów: 636
Pomógł: 0
Dołączył: 22.10.2003
Skąd: Katowice

Ostrzeżenie: (0%)
-----


Ciekawe snitch.gif To inaczej - to jest moja funkcja popundera (w tym wypadku swojej nie musisz):
[xml:1:e937e34be9]<html>
<body>
<script type="text/javascript">
function popunder(adres,szer,wys) {
okno = window.open(adres,'', 'width='+szer+',height='+wys);
okno.blur();
}
popunder('jakis_adres.htm',350,350)
</script>
</body>
</html>
[/xml:1:e937e34be9]


A tu jej zastosowanie:
[php:1:e937e34be9]<?php
echo "<body onmouseover="window.status=' $sitename ';return true" bgcolor="#4F4F4F" ONLOAD="preloadImages();" text="#FFFFFF" link="#009999" vlink="#009999" alink="#FF6600" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script type="text/javascript">

function popunder(adres,szer,wys) {
okno = window.open(adres,'', 'width='+szer+',height='+wys);
okno.blur();
}
popunder('jakis_adres.htm',350,350)
</script>";
?>[/php:1:e937e34be9]
Go to the top of the page
+Quote Post
Pyksel
post 8.06.2004, 16:35:47
Post #8





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 27.11.2003
Skąd: Bytom

Ostrzeżenie: (0%)
-----


Dzieki ale nie działa :
Zrobiłem to tak:
[php:1:d818b71af2]<?php

$bgcolor1 = "#555555";
$bgcolor2 = "#666666";
$bgcolor3 = "#333333";
$bgcolor4 = "#444444";
$textcolor1 = "#FFFFFF";
$textcolor2 = "#FFFFFF";

include("themes/Ti2k/tables.php");

/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/

function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi, $module_name;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body onmouseover="window.status=' $sitename ';return true" bgcolor="#4F4F4F" ONLOAD="preloadImages();" text="#FFFFFF" link="#009999" vlink="#009999" alink="#FF6600" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script type="text/javascript">
function popunder(adres,szer,wys) {
okno = window.open(adres,'http://www.wp.pl', 'width='600',height='500');
okno.blur();
}
popunder('http://www.wp.pl',350,350)
</script>";
?>
if ($banners == 1) {
include("banners.php");
}

[/php:1:d818b71af2]

Pop up poprostu nie wyskakuje !! ( nie wyswietla sie )


--------------------
**************************************
WWW.CS.CONDITIONZERO.GLT.PL
Linknij ^ :) ^ Zobacz
**************************************
Go to the top of the page
+Quote Post
Paul
post 8.06.2004, 16:48:14
Post #9





Grupa: Zarejestrowani
Postów: 636
Pomógł: 0
Dołączył: 22.10.2003
Skąd: Katowice

Ostrzeżenie: (0%)
-----


Co ty z tym zrobiles :? ...

[php:1:460756553b]<?php
echo "<body onmouseover="window.status=' $sitename ';return true"
bgcolor="#4F4F4F" ONLOAD="preloadImages();" text="#FFFFFF" link="#009999"
vlink="#009999" alink="#FF6600" leftmargin="0" topmargin="0"
marginwidth="0" marginheight="0">
<script type="text/javascript">

function popunder(adres,szer,wys) {
okno = window.open(adres,'', 'width='+szer+',height='+wys);
okno.blur();
}
popunder('jakis_adres.htm',350,350);
</script>";
// zmieniasz tylko i wylacznie tutaj (linia 12) i nigdzie wiecej - adres, szerokosc, wysokosc - taka kolejnosc snitch.gif
?>[/php:1:460756553b]
Go to the top of the page
+Quote Post
Pyksel
post 9.06.2004, 21:06:09
Post #10





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 27.11.2003
Skąd: Bytom

Ostrzeżenie: (0%)
-----


mam takie pytanie raczej poza tematem.
Czy jest mozliwosc takiego czegos zeby pop up danej strony dla jednego IP dziennie wyswietlal sie tylko RAZ.
chodzi oto ze: jesli np. dziisaj wejde na strone to wyskoczy mi pop up a punziej za 5 godzin znowu wejde to juz mi nie wykoczy.

istnieje cos takiego?


--------------------
**************************************
WWW.CS.CONDITIONZERO.GLT.PL
Linknij ^ :) ^ Zobacz
**************************************
Go to the top of the page
+Quote Post
Paul
post 9.06.2004, 21:08:17
Post #11





Grupa: Zarejestrowani
Postów: 636
Pomógł: 0
Dołączył: 22.10.2003
Skąd: Katowice

Ostrzeżenie: (0%)
-----


Najprosciej bedzie zrobic to ciastkiem:

:arrow: Wyswietlasz popup i wysylasz ciasteczko
:arrow: Jesli ciasteczko jest to nic nie robisz, jak nie ma po pkt 1 smile.gif
Go to the top of the page
+Quote Post
zielar
post 10.06.2004, 20:31:35
Post #12





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 19.12.2003
Skąd: Racibórz

Ostrzeżenie: (0%)
-----


Dodaj sobie pop under w pliku index.php i po prostu zawsze przy wejściu na stronę będzie się on pojawiał


--------------------
PHP ma w zasadzie tylko jedną zaletę - DZIAŁA :)
Go to the top of the page
+Quote Post
Paul
post 10.06.2004, 22:08:48
Post #13





Grupa: Zarejestrowani
Postów: 636
Pomógł: 0
Dołączył: 22.10.2003
Skąd: Katowice

Ostrzeżenie: (0%)
-----


Cytat
po prostu zawsze przy wejściu na stronę będzie się on pojawiał

Cytat
dziennie wyswietlal sie tylko RAZ

...
Go to the top of the page
+Quote Post
Pyksel
post 12.06.2004, 20:17:10
Post #14





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 27.11.2003
Skąd: Bytom

Ostrzeżenie: (0%)
-----


A jak zrobic takie cos?? ( z cisteczkiem ) smile.gif


--------------------
**************************************
WWW.CS.CONDITIONZERO.GLT.PL
Linknij ^ :) ^ Zobacz
**************************************
Go to the top of the page
+Quote Post
Paul
post 12.06.2004, 20:34:32
Post #15





Grupa: Zarejestrowani
Postów: 636
Pomógł: 0
Dołączył: 22.10.2003
Skąd: Katowice

Ostrzeżenie: (0%)
-----


Poszukaj w sieci i na forum. Zaloze sie, ze bylo smile.gif ... W ostatecznosci ci napisze.
Go to the top of the page
+Quote Post
XeqtR
post 12.06.2004, 23:29:51
Post #16





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 28.05.2004
Skąd: Zawiercie / Katowice

Ostrzeżenie: (0%)
-----


tak jak poprzednicy lub ew. na bazie danych zrobic tabele do której zostaną wpisane adresy odwiedzających a następnie poprzez odpowiednie zapytanie do bazy pop sie pojawi albo nie. Najlepiej zastosować to i to, bo niektorzy maja wylaczona obsluge cookies
Go to the top of the page
+Quote Post
Pyksel
post 15.06.2004, 16:50:50
Post #17





Grupa: Zarejestrowani
Postów: 81
Pomógł: 0
Dołączył: 27.11.2003
Skąd: Bytom

Ostrzeżenie: (0%)
-----


czesc ! aarambo.gif

znalazlem :

  1. <script language="javascript" type="text/javascript">
  2. <!--
  3. var tresc="pop=1"; // tresc ciasteczka
  4. var godzin=24; // czas waznosci
  5.  
  6. if (document.cookie.indexOf(tresc,0)<0) {
  7. var wygasa=new Date();
  8. wygasa=new Date(wygasa.getTime()+60*60*1000*godzin);
  9. document.cookie=tresc+"; expires="+wygasa.toGMTString();
  10.  
  11. okienko=open("reklama.html","okno",
  12. "width=300,height=300,scrollbars=no,menubar=no");
  13.  
  14. }
  15. // -->


I znalezlem tez inny sposob aby zrobic to w index.php , ale to dziala tylko ze stary kodem pop upa a z tym nowym co podalem o gury to niestety nie działa sad.gif.
KOD:

  1. <?php
  2. echo &#092;"<script language=\"javascript\" type=\"text/javascript\">
  3. <!--
  4. var tresc=&#092;"pop=1\"; // tresc ciasteczka
  5. var godzin=25;      // czas waznosci
  6.  
  7. if (document.cookie.indexOf(tresc,0)<0) {
  8.   var wygasa=new Date();
  9.   wygasa=new Date(wygasa.getTime()+60*60*1000*godzin);
  10.   document.cookie=tresc+&#092;"; expires=\"+wygasa.toGMTString();
  11.  
  12.   okienko=open(&#092;"http://www.WWW.pl\",\"okno\",
  13.   &#092;"width=600,height=600,scrollbars=yes,menubar=yes\");
  14. }
  15. // --> 
  16. </script>\";
  17.  
  18. ?>


I dalej nie bede calego podawal smile.gif. Noi cos nie dziala wyskakuje blad ze cos jest nie tak w 14 LINI i cos tam mu chodzi o " ' "

probowalem to dac tez w theme.php ale to samo.
Prosze pomozcie sad.gif tiredsmiley.gif

Ten post edytował Pyksel 16.06.2004, 21:07:40


--------------------
**************************************
WWW.CS.CONDITIONZERO.GLT.PL
Linknij ^ :) ^ Zobacz
**************************************
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 8.07.2025 - 01:49