| Autor |
Zpráva |
Blassen
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2127
|
 Zaslal:
st 24. srpen, 2005 21:42 Předmět: Úprava reklamy pro systém 4.2.xxms2 (skin iCGstation) |
  |
tady vám ve skratce popíšu, jak si upravit vzhled tak aby v něm fungovali vaše bannery i ve verzi 4.2.xxms2
ve vašem vzhledu najděte tento kód:
a nahraďte jej tímto kódem:
{Kód}:  echo ads(0);
důležitá je tato část:
{Kód}:  ads(0);
uložte a mělo by to fungovat  |
_________________ 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 ?
Naposledy upravil Blassen dne so 26. listopad, 2005 17:05, celkově upraveno 1 krát. |
|
| Návrat nahoru |
|
 |
Inzerce
Sponsor


Registrace: 4.1. 2007 Příspěvky: 143
|
|
 |
Kernell
Anonymní
|
 Zaslal:
so 26. listopad, 2005 14:59 Předmět: |
  |
Ale tenhle kod ja tam vubec nemam. |
|
|
| Návrat nahoru |
|
 |
Blassen
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2127
|
 Zaslal:
so 26. listopad, 2005 16:22 Předmět: |
  |
tak je tam jinej, ale minimálně toto tam je:
{Kód}:  include("banners.php"); |
_________________ 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 |
|
 |
Kernell
Anonymní
|
 Zaslal:
so 26. listopad, 2005 16:25 Předmět: |
  |
Nemohu to najit. Pouzivam skin iCGstation. |
|
|
| Návrat nahoru |
|
 |
Blassen
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2127
|
 Zaslal:
so 26. listopad, 2005 16:58 Předmět: |
  |
Kernell napsal:
Nemohu to najit. Pouzivam skin iCGstation.
v souboru theme.php najděte:
{Kód}:  $showbanners
a dejte před to dvě lomítka
{Kód}:  // $showbanners
o řádek níž dejte:
{Kód}:  echo 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 |
|
 |
Kernell
Anonymní
|
 Zaslal:
so 26. listopad, 2005 17:09 Předmět: |
  |
To uz jsem zkousel, ale nefunguje to. Uz nevim co s tim. Asi budu muset pouzit jiny skin. |
|
|
| Návrat nahoru |
|
 |
Anonymní
|
 Zaslal:
so 26. listopad, 2005 18:07 Předmět: |
  |
priblizne na riadku 54 mas {Kód}:  if ($banners == 1) {
nahrad ho tymto:
{Kód}:  echo ads(0); {
funguje to urcite, len si to mozno musisi graficky vyladit  |
|
|
| Návrat nahoru |
|
 |
Inzerce
Sponsor


Registrace: 4.1. 2007 Příspěvky: 143
|
|
 |
Kernell
Anonymní
|
 Zaslal:
so 26. listopad, 2005 18:16 Předmět: |
  |
To funguje, ale neukazuje se to tam kde ma, ale uplne nahore nad celou grafikou. Tim je cela grafika posunuta dolu pod tim bannerem. Neco jako na wz.cz |
|
|
| Návrat nahoru |
|
 |
Blassen
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2127
|
 Zaslal:
so 26. listopad, 2005 18:27 Předmět: |
  |
Tak měl bych mít opravu.
tento řádek:
{Kód}:  $showbanners = "<a href="banners.php?op=cl......
nahradit tímto:
{Kód}:  $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 |
|
 |
Kernell
Anonymní
|
 Zaslal:
so 26. listopad, 2005 18:38 Předmět: |
  |
Bohuzel to taky nefunguje.  |
|
|
| Návrat nahoru |
|
 |
Blassen
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2127
|
 Zaslal:
so 26. listopad, 2005 19:06 Předmět: |
  |
Kernell napsal:
Bohuzel to taky nefunguje. 
Nová funkce themeheader, tím nahradte tu co je v souboru theme.php
{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 themeheader() {
 global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $showbanners;
 
 cookiedecode($user);
 $username = $cookie[1];
 if ($username == "") {
 $username = "Anonymous";
 }
 
 $showbanners = ads(0);
 
 echo "<body bgcolor="#FFFFFF" text="#000000">";

 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!";
 }

 $datetime = "<script type="text/javascript">
 
 "
 ."<!-- // Array ofmonth Names
 "
 ."var monthNames = new Array( ""._JANUARY."",""._FEBRUARY."",""._MARCH."",""._APRIL."",""._MAY."",""._JUNE."",""._JULY."",""._AUGUST."",""._SEPTEMBER."",""._OCTOBER."",""._NOVEMBER."",""._DECEMBER."");
 "
 ."var now = new Date();
 "
 ."thisYear = now.getYear();
 "
 ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
 "
 ."document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + thisYear);
 "
 ."// -->
 
 "
 ."</script>";

 $public_msg = public_message();
 $tmpl_file = "themes/iCGstation/header.html";
 $thefile = implode("", file($tmpl_file));
 $thefile = addslashes($thefile);
 $thefile = "$r_file="".$thefile."";";
 eval($thefile);
 print $r_file;
 blocks(left);
 $tmpl_file = "themes/iCGstation/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 |
|
 |
Kernell
Anonymní
|
 Zaslal:
ne 27. listopad, 2005 14:49 Předmět: |
  |
Díky moc, to už funguje jak má. Děkuji Vám za Vaše rychle jednání a přeji Vám hezký den. |
|
|
| Návrat nahoru |
|
 |
Barganda
Svobodník


Registrace: 1.2. 2006
Příspěvky: 21
|
 Zaslal:
čt 09. únor, 2006 23:26 Předmět: |
  |
píše mi to chybu na 83 a na 90 řádku
to je můj 83 řádek
{Kód}:  $thefile = implode("" , file($tmpl_file));
tohle je 90
{Kód}:  $thefile = implode("", file($tmpl_file));
Něco tomu chybí, ale co ??? Poradí někdo Pls
Jo a mam theme notebored... |
|
|
| Návrat nahoru |
|
 |
Blassen
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2127
|
 Zaslal:
čt 09. únor, 2006 23:37 Předmět: |
  |
Barganda napsal:
píše mi to chybu na 83 a na 90 řádku
to je můj 83 řádek
{Kód}:  $thefile = implode("" , file($tmpl_file));
tohle je 90
{Kód}:  $thefile = implode("", file($tmpl_file));
Něco tomu chybí, ale co ??? Poradí někdo Pls
Jo a mam theme notebored...
asi nikdo není vševěd, pošli alespoň 5 řádků nad a pět pod + co se s tím má dělat pokud nejde o reklamu. |
_________________ 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 |
|
 |
Inzerce
Sponsor


Registrace: 4.1. 2007 Příspěvky: 143
|
|
 |
Barganda
Svobodník


Registrace: 1.2. 2006
Příspěvky: 21
|
 Zaslal:
pá 10. únor, 2006 0:20 Předmět: |
  |
promiň mohl jsem se vyjádřit trochu líp nahrál jse si tam ten kód co je uveden o něco níže themeheader a v tom kódu je to řádek 40 a 47
Chtěl jsem si vedle loga udělat banner. Jako je to tady na tom webu  |
|
|
| Návrat nahoru |
|
 |
|
|