Vítejte na BLASSENweb

BLASSENweb - the future of your web !

Jste anonymní uživatel. Můžete se zdarma zaregistrovat zde

Hlavní nabídka

 · Intro
 · Úvod
 · Podmínky užívání serveru
Služby od nás pro vás

 · Kontaktujte nás
 · FAQ
(nejčastější dotazy)

 · Novinky-Aktuality
Vyhledávání

 · Doporučit nás
 · Novinky e-mailem
 · Ankety

 · Diskuzní fórum
 · Kniha návštěv
 · Chat

Pro volné chvíle

Něco na čtení

Tvorba www

Odkazy

 ·  Top-List
 ·  Dobré weby

Ke stažení

Možnosti pro Vás

Přidat sidebarPřidat na GooglePřidat na SeznamPřidat na BloglinesWAP verzeRSS 0.91RSS 0.92RSS 2.0Atom 0.3 Bookmark using any bookmark manager!
Mapa Stránek

Budík / Hodiny / Kalendář

O dnešku

Den: Neděle
Datum: 12. října
Rok: 2008

Svátek má:

Dnes: Marcel
Zítra: Renáta
Pozítří: Agáta

Reklama

Doporučujeme vám:

Diskuzní fórum

Vzbuřte se proti hrubkám na internetu
Pamatujte si, kde jste byli, když jste Vy začínali.
To změní Váš pohled na lidi, jenž začínají teď!
FAQHledatSeznam uživatelůUživatelské skupinyRegistrace
Osobní nastaveníPřihlásit se pro kontrolu soukromých zprávPřihlášení
Už máš šprušle ??

Byl bych rád pokud by se nám společnými silami podařilo zatraktivnit tyto stránky. K tomu je však zapotřebí vzájemná spolupráce, ať už se jedná o zajímavé články či ankety. Pokuste se podělit o své názory, dojmy a myšlenky. -- BLASSENweb -tým

 

Login headri


Zobrazit následující téma
Zobrazit předchozí téma
Přidat nové témaZaslat odpověď
Autor Zpráva
Bekso
Svobodník
Svobodník


Registrace: 22.4. 2007
Příspěvky: 14

PříspěvekZaslal: ne 22. duben, 2007 20:13  Předmět: Login headri CitovatNávrat nahoru

no blassene moc diki za ten navodik ale mne to nejak nefunguje Smutný ten kod som dal do theme.php a potom do header.html som dal $bwlogin a nezobrazuje sa mi nic
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu
Inzerce
Sponsor
Inzerce
No Avatar

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


Registrace: 1.1. 1970
Příspěvky: 2105

PříspěvekZaslal: po 23. duben, 2007 19:49  Předmět: Re: Login v headri CitovatNávrat nahoru

1/ Kód do theme.php
2/ pak do funkce header()
a) pro vzhled s html soubory: $bwlogin = bw_login();
b) pro vzhled bez html souborů: bw_login();

3/ pro vzhled s html soubory: $bwlogin

pokud to nefunguje a zároveň to nehlásí chybu, vyzkoušejte ještě přidat do globals ještě: $bwlogin

_________________
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 Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail Zobrazit uživatelovy WWW stránky
Bekso
Svobodník
Svobodník


Registrace: 22.4. 2007
Příspěvky: 14

PříspěvekZaslal: po 23. duben, 2007 21:41  Předmět: CitovatNávrat nahoru

to $bwlogin = bw_login(); moezm vlozit hockde do Function themeheader() ?
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu
Blassen
Armádní generál (Admin)
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2105

PříspěvekZaslal: po 23. duben, 2007 21:47  Předmět: CitovatNávrat nahoru

Bekso napsal:

to $bwlogin = bw_login(); moezm vlozit hockde do Function themeheader() ?


Osobně když jsem to zkoušel jsem to dal pod $showbanners

_________________
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 Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail Zobrazit uživatelovy WWW stránky
Blassen
Armádní generál (Admin)
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2105

PříspěvekZaslal: po 23. duben, 2007 21:52  Předmět: CitovatNávrat nahoru

Příklad na vzhledu iCGstation
theme.php

{Kód}:

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

/************************************************************/
/* Function bw_login()                                      */
/*                                                          */
/************************************************************/
function bw_login() {
global 
$admin$user$sitekey$gfx_chk$cookie;

mt_srand ((double)microtime()*1000000);
$maxran 1000000;
$random_num mt_rand(0$maxran);
$datekey date("F j");
$rcode hexdec(md5($_SERVER['HTTP_USER_AGENT'] . $sitekey $random_num $datekey));
$code substr($rcode26);

$bwlogin_text "<form action=\"modules.php?name=Your_Account\" method=\"post\">";
$bwlogin_text .= _NICKNAME.": ";
$bwlogin_text .= "<input type=\"text\" name=\"username\" size=\"10\" maxlength=\"25\" /> ";
$bwlogin_text .= _PASSWORD.": ";
$bwlogin_text .= "<input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\" /> ";
if (
extension_loaded("gd") AND ($gfx_chk == OR $gfx_chk == OR $gfx_chk == OR $gfx_chk == 7)) {
    
$bwlogin_text .= _SECURITYCODE.": <img src=\"?gfx=gfx&amp;random_num=".$random_num."\" border=\"1\" style=\"width: 77px; height: 20px\" alt=\""._SECURITYCODE."\" title=\""._SECURITYCODE."\" /> \n";
    
$bwlogin_text .= "Opsat: <input type=\"text\" name=\"gfx_check\" size=\"7\" maxlength=\"6\" />\n";
    
$bwlogin_text .= "<input type=\"hidden\" name=\"random_num\" value=\"".$random_num."\" />\n";
} else {
    
$bwlogin_text .= "<input type=\"hidden\" name=\"random_num\" value=\"".$random_num."\" />";
    
$bwlogin_text .= "<input type=\"hidden\" name=\"gfx_check\" value=\"".$code."\" />";
}
$bwlogin_text .= "<input type=\"hidden\" name=\"op\" value=\"login\" />";
$bwlogin_text .= " <input type=\"submit\" value=\""._LOGIN."\" /></form>";

if (
is_user($user)) {
    
cookiedecode($user);
    
$username $cookie[1];
    
$bwlogin_text _WELCOMEBACKU." : <strong>$username</strong> ! [ <a href=\"modules.php?name=Your_Account\"><strong>"._ACCOUNT."</strong></a> | <a href=\"modules.php?name=Your_Account&op=logout\"><strong>"._ODHLASIT."</strong></a> ]";
}
return 
$bwlogin_text;
}
// 1/ pouziti:
// $bwlogin = bw_login();
// echo $bwlogin;

// 2/ pouziti:
// bw_login();


/************************************************************/
/* 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);
$bwlogin bw_login();
    echo 
"<body bgcolor=\"#FFFFFF\" text=\"#000000\">";
    
    if (
$username == "Anonymous") {
    
$theuser "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">"._LOGIN."</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
    } else {
    
$theuser "&nbsp;&nbsp;"._BWEL." $username!";
    }
    
                        
$datetime "<script type=\"text/javascript\">\n\n"
            
."<!--   // Array ofmonth Names\n"
            
."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
            
."var now = new Date();\n"
            
."thisYear = now.getYear();\n"
            
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
            
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
            
."// -->\n\n"
            
."</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;
}


header.html
{Kód}:

<table width="95%" cellpadding="0" cellspacing="0" border="0" align="center">
  <
tr
    <
td width="10" nowrap="nowrap" class="lefttd"></td>
    <
td width="100%">
        <
table width="100%" cellpadding="0" cellspacing="1" border="0" class="forumline">
            <
tr
                <
td class="row2" width="20%" align="center"><img src="themes/iCGstation/forums/images/icon/icon_faq.gif" border="0" alt="Home" align="absmiddle" /><br /><a href="index.php" class="mainmenu">Home</a></td>
                <
td class="row2" width="20%" align="center"><img src="themes/iCGstation/forums/images/icon/icon_search.gif" border="0" alt="Downloads" align="absmiddle" /><br /><a href="modules.php?name=Downloads" class="mainmenu">Downloads</a></td>
                <
td class="row2" width="20%" align="center"><img src="themes/iCGstation/forums/images/icon/icon_memberlist.gif" border="0" alt="Forums" align="absmiddle" /><br /><a href="modules.php?name=Forums" class="mainmenu">Forums</a></td>
                <
td class="row2" width="20%" align="center"><img src="themes/iCGstation/forums/images/icon/icon_profile.gif" border="0" alt="Your Account" align="absmiddle" /><br /><a href="modules.php?name=Your_Account" class="mainmenu">Your Account</a></td>
            </
tr>
        </
table>
        <
table width="100%" cellspacing="0" cellpadding="0" border="0">
            <
tr
                <
td background="themes/iCGstation/forums/images/bg.jpg" width="60%" valign="middle"><a href="index.php"><img src="themes/iCGstation/forums/images/banner.jpg" border="0"></a></td>
                <
td background="themes/iCGstation/forums/images/bg.jpg" width="40%" valign="middle">$showbanners<br>$bwlogin</td>                
            </
tr>
            </
table>
                    <
table width="100%" cellspacing="0" cellpadding="0" border="0">

            <
tr
          <
td class="navpic" width="170" nowrap><div align="left"><font class="content">$theuser</font></div></td>
              <
td width="100%" align="center" class="navpic" nowrap></td>
              <
td class="navpic" width="170" nowrap><div align="right"><font class="content">$datetime&nbsp;</font></div></td>
            </
tr>
        </
table>
<
table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
      <
tr valign="top">
        <
td>$public_msg<img src="themes/iCGstation/images/7px.gif" width="1" height="1" border="0" alt=""></td>
</
tr></table>
<
table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<
tr valign="top">
  <
td valign="top" width="1" background="themes/iCGstation/images/7px.gif">


_________________
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 Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail Zobrazit uživatelovy WWW stránky
Bekso
Svobodník
Svobodník


Registrace: 22.4. 2007
Příspěvky: 14

PříspěvekZaslal: po 23. duben, 2007 22:04  Předmět: CitovatNávrat nahoru

tu su moje subory:
theme.php
www.beks.wz.sk/theme.txt

header.html
www.beks.wz.sk/header.html

temu pouzivam PH2 a nefunguje mi to Smutný
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu
Blassen
Armádní generál (Admin)
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2105

PříspěvekZaslal: po 23. duben, 2007 22:19  Předmět: CitovatNávrat nahoru

Bekso napsal:

tu su moje subory:
theme.php
www.beks.wz.sk/theme.txt



Přesunte ten
{Kód}:

$bwlogin bw_login();


nad:
{Kód}:

echo "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";



protože tak jak je umístěněj momentálně, tak je na místě kde se čtou bannery. Prostě tak jak jste to umístil to být nesmí.
Nesmí to být mezi jinými složenými závorkami {}
{Kód}:

      $subject "$sitename: "._BANNERSFINNISHED."";
      
mail($to$subject$message"From: $from\nX-Mailer: PHP/" phpversion());
       }
   }
    
$showbanners "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";
    
$bwlogin bw_login();
    }
}
    
cookiedecode($user);


_________________
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 Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail Zobrazit uživatelovy WWW stránky
Inzerce
Sponsor
Inzerce
No Avatar

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


Registrace: 22.4. 2007
Příspěvky: 14

PříspěvekZaslal: út 24. duben, 2007 15:46  Předmět: CitovatNávrat nahoru

thx very much uz to slape este si to poprekladam aby to zobrazovalo v slovnecine a bude to este az dik
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu
Blassen
Armádní generál (Admin)
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2105

PříspěvekZaslal: st 25. duben, 2007 23:04  Předmět: login header v slovnecine CitovatNávrat nahoru

Bekso napsal:

thx very much uz to slape este si to poprekladam aby to zobrazovalo v slovnecine a bude to este az dik


To nebylo automaticky ?

_________________
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 Zobrazit informace o uživateli Odeslat soukromou zprávu Odeslat e-mail Zobrazit uživatelovy WWW stránky
Tucnak
Rotmistr
Rotmistr


Registrace: 21.5. 2006
Příspěvky: 136

PříspěvekZaslal: út 04. prosinec, 2007 9:55  Předmět: CitovatNávrat nahoru

Nefunguje mi to Smutný a to primo v iCGstation .. nekde jsem udelal chybu .. nic se mi nezobrazi Smutný mozna ze ten navod neplati pro novy iCGstation nebo ja nvm ...
http://animatori.savana.cz/test/theme.txt
http://animatori.savana.cz/test/header.html
Návrat nahoru Zobrazit informace o uživateli Odeslat soukromou zprávu Zobrazit uživatelovy WWW stránky
Blassen
Armádní generál (Admin)
Armádní generál (Admin)


Registrace: 1.1. 1970
Příspěvky: 2105

PříspěvekZaslal: út 04. prosinec, 2007 15:00  Předmět: CitovatNávrat nahoru

Ještě je potřeba přidat do funkce themeheader toto:
{Kód}:


$bwlogin 
bw_login();


Přibližně tak:
{Kód}:


function themeheader() {
    global  
$admin$user$banners$sitename$slogan$cookie$prefix$db$nukeurl$anonymous$showbanners;

$bwlogin bw_login();



good luck Mrkající

_________________
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 Zobrazit informace o uživateli