| Autor |
Zpráva |
igormajan
Vojín


Registrace: 20.3. 2008
Příspěvky: 3
|
 Zaslal:
pá 21. březen, 2008 0:04 Předmět: Banner |
  |
Dobrý deň potreboval by som dat banner na veb do loga hore cez modul Advertising vsetko nastavim ale baner sa mi v mojom vzhlade neobjavi cital som navod
http://blassenweb.net/forum/tema/uprava-reklamy-pro-system-4-2-xxms2-207
ja tu ale v mojom vzhlade v theme.php nemozem ten kod najst nemem ho tu nasiel som tu iba kod
{Kód}:  if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
je to to iste? lebo ja uz naozaj nevie prosim poradit dakujem |
|
|
| Návrat nahoru |
|
 |
Inzerce
Sponsor


Registrace: 4.1. 2007 Příspěvky: 143
|
|
 |
Blassen
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2127
|
 Zaslal:
pá 21. březen, 2008 15:43 Předmět: Re: Banner |
  |
igormajan napsal:
Dobrý deň potreboval by som dat banner na veb do loga hore cez modul Advertising vsetko nastavim ale baner sa mi v mojom vzhlade neobjavi cital som navod
http://blassenweb.net/forum/tema/uprava-reklamy-pro-system-4-2-xxms2-207
ja tu ale v mojom vzhlade v theme.php nemozem ten kod najst nemem ho tu nasiel som tu iba kod
{Kód}:  if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
je to to iste? lebo ja uz naozaj nevie prosim poradit dakujem
Nó to je přímo výpis, taky je to tu někde popsaný pro IcgStation nebo jak se ten vzhled jmenoval.
Napiš název vzhledu nebo sem dej kód.
Klíčová je proměnná $showbanners která ve výsledku má vypadat $showbanners = ads(0); |
_________________ Blassen,
Altruista, Redaktor, Programátor, Designér a Majitel
Hello IT. Have you tried turning it off and on again ? Are you sure it's plugged in ? |
|
| Návrat nahoru |
|
 |
joey261166
Svobodník


Registrace: 11.3. 2008
Příspěvky: 11
|
 Zaslal:
pá 21. březen, 2008 22:08 Předmět: |
  |
|
| Návrat nahoru |
|
 |
Blassen
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2127
|
 Zaslal:
pá 21. březen, 2008 22:47 Předmět: úprava reklamy pro vzhled fiapplegreen |
  |
joey261166 napsal:
nazov vzhladu je fiapplegreen
Tady je nová funkce themeheader, tou je potřeba nahradit v souboru theme.php tu co už tam je:
{Kód}:  
 /************************************************************/
 /* 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 edit: http://blassenweb.net/ */
 /************************************************************/
 
 function themeheader() {
 global $admin, $user, $banners, $showbanners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $name;
 
 $showbanners = ads(0);
 
 cookiedecode($user);
 $username = $cookie[1];
 if ($username == "") {
 $username = "Anonymous";
 }
 echo "<body leftmargin=\"1\" topmargin=\"1\" marginwidth=\"1\" marginheight=\"1\">";
 
 if ($username == "Anonymous") {
 $theuser = " <a href=\"modules.php?name=Your_Account\">"._LOGIN."</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
 } else {
 $theuser = " "._BWEL." $username!";
 }
 $public_msg = public_message();
 $tmpl_file = "themes/fiapplegreen/header.html";
 $thefile = implode("", file($tmpl_file));
 $thefile = addslashes($thefile);
 $thefile = "\$r_file=\"".$thefile."\";";
 eval($thefile);
 print $r_file;
 blocks(left);
 $tmpl_file = "themes/fiapplegreen/left_center.html";
 $thefile = implode("", file($tmpl_file));
 $thefile = addslashes($thefile);
 $thefile = "\$r_file=\"".$thefile."\";";
 eval($thefile);
 print $r_file;
 }
  |
_________________ Blassen,
Altruista, Redaktor, Programátor, Designér a Majitel
Hello IT. Have you tried turning it off and on again ? Are you sure it's plugged in ? |
|
| Návrat nahoru |
|
 |
joey261166
Svobodník


Registrace: 11.3. 2008
Příspěvky: 11
|
 Zaslal:
so 22. březen, 2008 0:20 Předmět: |
  |
|
| Návrat nahoru |
|
 |
|
|