Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Loginas headeryje.

Parašė masck· 2008 Rugs. 17 13:09:27
#1

http://www.ipix.lt/images/359377...
Kur tie pingvinai yra noriu ikist user info panele.
themos folderi yra header.php stai jis :
<?php
global $theme_width,$settings,$aidlink,$locale,$userdata;
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."images/header_01.jpg' height='299' style='background-repeat: no-repeat;'>
      <tr>
     
      <td width='235' style='padding-right: 0px; padding-left: 700px; padding-bottom: 50px; padding-top:10px;' valign='middle'>";
      if (iMEMBER) {
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px solid #999999'></center>\n";
   } else {
   echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
   }
   echo "</td>
    <td valign='top'><a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profil&#225;</a><br>
 <a href='".BASEDIR."messages.php' class='side'>&#222;inut&#235;s [naujø: <b><span style='color:#990000'>".sprintf($msg_count)."</span></b>]</a><br>
 <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo " <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
   }
   echo " <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>
   <b><span class='ip'>IP: </span></b>";
   $userip = $_SERVER['REMOTE_ADDR'];
      $host = gethostbyaddr($userip);
      echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
   } else {
   echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
  <tr>
    <td align='right' class='ip'>Vardas: </td>
    <td> <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right' class='ip'>".$locale['062'].": </td>
    <td> <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'><input type='checkbox' name='remember_me' value='y'></td>
    <td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
  </tr>
  </form>\n";
   if ($settings['enable_registration']) {
      echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slapta&#254;odis</a>\n";
   }
   echo"</table>\n";
}
echo "</td>
      </tr>
      </table>\n";

   echo "<table width='100%' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>\n<tr>";
   echo "<td>\n";
   echo ($i == 0 ? " " : "")."</td>";
   echo "</td></tr></table>\n";
   echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>
  <tr>
    <td width='5'></td>
    <td width='69' valign='top'><a href='".BASEDIR."index.php'><img src='".THEME."images/namai.png' border=0' alt='Pradinis'></a></td>
    <td width='69' valign='top'><a href='".FORUM."index.php'><img src='".THEME."images/forumas.png' border=0' alt='Diskusijos'></td>
    <td width='564' class='dark'><marquee>".parseubb(parsesmileys("<span style='color: green'><b>Laukiant Pavasario su LightTen</b></span>"))."</marquee></td>
    <td width='69' valign='top'><a href='".BASEDIR."photogallery.php'><img src='".THEME."images/galerija.png' border=0' alt='Galerija'></td>
   <td width='69' valign='top'><a href='".BASEDIR."downloads.php'><img src='".THEME."images/siuntimai.png' border=0' alt='Siuntiniai'></td>
   <td width='69' valign='top'><a href='".BASEDIR."viewpage.php?page_id=19'><img src='".THEME."images/reklama.png' border=0' alt='Reklama'></td>
   <td width='5'></td>
  </tr>
</table>\n";
   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";   
?>



Kiek suprantu cia reikia kazka keist.
aciu uz atsakymus.

Redagavo masck· 2008 Rugs. 17 13:09:53

Parašė ChecK· 2008 Rugs. 17 13:09:56
#2

reik theme.php

Parašė masck· 2008 Rugs. 17 13:09:00
#3

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// ustawienia thema
$body_text = "#000000";
$body_bg = "#DDDDDD";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";

$motto = "Slogan&#253;n&#253;z";

function render_header($header_content) {

global $theme_width, $settings, $motto;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='main-bg'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr align='center'>
<td class='tytul'>".$settings['sitename']."<p class='motto'>".$motto."</P></td><td class='naglowek'><img src='".THEME."images/leaf.jpg' alt='leaf.jpg' height='220' width='293'></TD>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'>".showsublinks("","white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>\n";
tablebreak();

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer' colspan=3><hr><br>".stripslashes($settings['footer'])."</td>
</tr>
<tr>
<td class='footer'>Powered by <a HREF='http://www.php-fusion.co.uk'>PHP-Fusion</A><br>
<td align='center' class='footer'>
</td><td class='footer' align='right'>".showcounter()."<br></TD>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr align='center'><td><table cellpadding='0' cellspacing='0' width='96%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table></TD></tr></table>\n";

}

function render_article($subject, $article, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr align='center'>
<td>
<table width='96%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr align='center'>
<td>
<table cellpadding='0' cellspacing='0' width='98%'>
<tr>
<td class='capmain'>$title</td>
</tr>
</TABLE>
</td>
</TR>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo " </td>
</tr>
</table>
</TD>
</TR>
</table>\n";

}

function openside($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%' border=0>
<tr align='center'>
<TD style='padding: 10px;'>
<table width='100%'
cellpadding='0' cellspacing='0'>
<tr align='center'>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "</td>
</tr>
</table>
</td>
</tr>
</table>";
tablebreak();
}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' border='1'><tr align='center'><td><table cellpadding='0' cellspacing='0' width='90%'>
<tr align='center'>
<td colspan='2' class='side-body'><img src='".THEME."images/blank.gif' alt='' height='2' width='1'></td>
</tr>
<tr align='center'>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table></TD></TR></TABLE>\n";
tablebreak();
}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%' STYLE='background: #FFFFFF'>
<tr><td height='20'></td></tr>
</table>\n";

}
?>

Redagavo masck· 2008 Rugs. 17 14:09:34

Parašė ChecK· 2008 Rugs. 17 14:09:51
#4

tą patį idėjai :|

Redagavo ChecK· 2008 Rugs. 17 14:09:00

Parašė masck· 2008 Rugs. 17 14:09:22
#5

Redagavau :>
p.s tu pingvinu pic name leaf.jpg
Tai kiek suprantu vietoj tu pingvinu reikia kazka irasyt t.y vietoi tos pic.

Redagavo masck· 2008 Rugs. 17 14:09:24

Parašė ChecK· 2008 Rugs. 17 14:09:22
#6

o šaip https://webdnd.com/readarticle.p...icle_id=92 skaitiai ?

Parašė masck· 2008 Rugs. 17 15:09:06
#7

0mfg parašė:
o šaip https://webdnd.com/readarticle.p...icle_id=92 skaitiai ?

Skaiciau,pas mane ten temoje biski negliau padarytas tas headeris vienu zodziu,dar pabandysiu pagal straipsni,jei nesigaus kas parasysiu vel.

Parašė masck· 2008 Rugs. 17 20:09:23
#8

Nu kaip ir pasakiau nieko nesigavo.
Po to stripsnio susipisa visa saita.
Po to straipsnio kai padarau viska kaip parasyta:
http://www.ipix.lt/images/771854...
Pries:
http://www.ipix.lt/images/931940...
Mano tikslas ideti login panele i ta vieta kur pingvinai.
HELP c|

iR header.php ir theme.php virsuje papostines esu.

Redagavo masck· 2008 Rugs. 17 20:09:42

Parašė masck· 2008 Rugs. 17 22:09:55
#9

uuuuuuuuuuuuuuuuuuuuuuuuuuu :>:?