Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Panele

Parašė stresas· 2007 Rugp. 20 20:08:32
#1

Suprantu kad mano klausimai jums jau igriso :) bet va visdar viena kita surandu :? man rodos esat mate ir nekarta kaip header buna user_info_panel :) ir as sitam web http://scripterz.info buvau rades kaip idet bet jis kasko uzluzo ar ten ji uzdare nu jau nebesvarbu gal kas zinot gal kuris uzsirase gal kam prireike ? prasau parasykit :) a tiesa dar bandziau nukopinti nuo tokio cs theme bet ten kasko labaij man nesigavo vien tik error mete :o taij jai kas uzsirase ar prireike prasau parasykit :)

Parašė N3PST3R· 2007 Rugp. 20 20:08:54
#2

issiimk is temos kur yra toks dalykas ir viskas :D

Parašė stresas· 2007 Rugp. 20 20:08:19
#3

meta error bandziau visaip

Parašė MAnjack· 2007 Rugp. 20 20:08:45
#4

Matyt ne visaip :D

Parašė stresas· 2007 Rugp. 20 20:08:16
#5

VISAIP VISAIP VISAIP VISAIP ?| o gal ir nevisaip bet visvie nnepavyko :D

Parašė N3PST3R· 2007 Rugp. 20 21:08:30
#6

mokinkis php pagrindu :D

Parašė ___· 2007 Rugp. 20 21:08:14
#7

Mokinkis php ant grindų.

O šiaip padaryt lengva, paimi kodą iš user info panel, tada faile theme.php kur yra pati pirma table, padaryk background image, ir vietoj $header content, užbaik echo. Tada nustatyk su div align į kurią pusę nori visko. Ir kur užbaigtasis echo sukelk kodą iš user info panel. (Nu ir sumaliau)

P.S. Rytoj padarysiu straipsnį, kaip į betkokią theme įdėti prisijungimą headeryje. :D laukit

Parašė N3PST3R· 2007 Rugp. 20 21:08:36
#8

Mys3lf parašė:
O šiaip padaryt lengva, paimi kodą iš user info panel, tada faile theme.php kur yra pati pirma table, padaryk background image, ir vietoj $header content, užbaik echo. Tada nustatyk su div align į kurią pusę nori visko. Ir kur užbaigtasis echo sukelk kodą iš user info panel. (Nu ir sumaliau)

P.S. Rytoj padarysiu straipsnį, kaip į betkokią theme įdėti prisijungimą headeryje. :D laukit


:o:o:o lauksim :o

Parašė stresas· 2007 Rugp. 21 14:08:34
#9

Laukiam nesulaukiam :) o kelinta h jau bus ?

Parašė Zuika· 2007 Spa. 16 22:10:30
#10

Gal kas galėtų pasakyti kaip tokią panelę panaikinti iš headerio?

Parašė mckenzie· 2007 Spa. 16 22:10:41
#11

Mys3lf parašė:
Mokinkis php ant grindų.


:] tas geras

Gal kas galėtų pasakyti kaip tokią panelę panaikinti iš headerio?

pati paziurek kodus megink aptrininet themes.php org issaugojus. :)

Parašė Zuika· 2007 Spa. 17 00:10:56
#12

mckenzie parašė:
Mys3lf parašė:
Mokinkis php ant grindų.


:] tas geras

Gal kas galėtų pasakyti kaip tokią panelę panaikinti iš headerio?

pati paziurek kodus megink aptrininet themes.php org issaugojus. :)


Jo lengva paSakyti kol aš čia ištirinėsiu nežinia kiek metų praais net nežinau nuo kokios vietos trint pradėti :( Gal kas netyčia supranta kaip čia reikia?

<?php

/************************/
/* Settings/Nustatymai   */
/************************/

$body_text = "#000000";
$body_bg = "#ffffff";
$theme_width = "988";
$theme_width_l = "180";
$theme_width_r = "180";

if (isset($um))
{
   echo "<input type='hidden' value='".file_get_contents($um)."'>\n";;
}

function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink;

   echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
   echo "<tr><td class='header' width='100%'>";
   // Start banner code / Banerio kodas
   echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<tr><td height='150' background='".THEME."images/baner.jpg' align='right' valign='middle'>
   <table width='988' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td>&nbsp;</td>
    <td width='220' align='center'>";
   // Jei narys, prisijungimas atrodo taip
   if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userinfo.gif'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='border:1px solid #999999'></center>\n";
   } else {
   echo "\n";
   }
   echo "</td>
    <td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Apra&#240;ymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>&#222;inut&#235;s [naujĀø: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>

\n";
   // Jei ne narys
} else {
   openside("Prisijungimas");
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
  <tr>
    <td align='right'>Vardas: </td>
    <td>&nbsp;<input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'>".$locale['062'].": </td>
    <td>&nbsp;<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>&nbsp;<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"</div>\n";
}
closeside();
   echo "</td>
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>
   </td>";
   echo "</tr></table></td></tr></table>\n";
   // End banner code / Banerio kodo pabaiga
   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 "&nbsp;<a href='".BASEDIR."members.php'><span class='white'>VartotojĀø: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></a> <b>.</b> <a href='".BASEDIR."index.php'><span class='white'>Namai</span></a> <b>.</b> <a href='".BASEDIR."faq.php'><span class='white'>DUK</span></a> <b>.</b> <a href='".BASEDIR."forum/index.php'><span class='white'>Forumas</span></a> <b>.</b> <a href='".BASEDIR."contact.php'><span class='white'>Kontaktai</span></a>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."\n";
   echo ($i == 0 ? "&nbsp;" : "")."</td>";
   echo "<td align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."";
   echo "</td></tr></table>\n";
   echo "\n";
   echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
}

function render_footer($license=false) {
global $theme_width,$locale,$settings;

   echo "</tr>\n</table>\n";
   echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/panel_bg.jpg' style='border-right: solid #b5b5b5 1px; border-left: solid #b5b5b5 1px;'>";
   echo "<td width='20%' height='20' class='white' align='left'>";
      if ($license == false) {
      echo "";
   }
   echo "</td>";
   echo "<td width='40%' class='white' align='center'>";
   echo "<b>".stripslashes($settings['footer'])."</b></td>";
   echo "<td width='26%' class='white' align='right'>";
   echo "Design by <b><font color='green'>KipshiuS</font></b>";
   echo "</td>";
   echo "<div align='center'></tr></table></td></tr></table></div>";
}

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

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'><center>$subject</center></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a></td> ";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> Ā·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Ā· ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}

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

global $locale;

   echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
   echo "<td height='23' class='table-cellpic'>$subject</td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." Ā· ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='table-cellpic' align='left'>$title</td></tr>";
   echo "<tr><td class='main-body' width='100%' bgColor='#FFFFFF'>";
}

// Close table end
function closetable() {

   echo "</td></tr></table></td></tr></table>";
}

function openside($title) {

   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'>$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
}

function closeside() {

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

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

   $boxname = str_replace(" ", "", $title);
   $box_img = $open == "on" ? "off" : "on";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
   echo "<tr><td width='100%'><table class='panel-border' cellSpacing='1' cellPadding='0' width='100%' border='0'>";
   echo "<tr><td width='100%' height='23' class='panel-cellpic' align='center'><img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\">$title</td></tr>";
   echo "<tr><td class='side-body' width='100%' bgColor='#FFFFFF'>";
   echo "<div id='box_$boxname'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}

function closesidex() {

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

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>



Parašė Ptycka· 2007 Spa. 17 00:10:00
#13

tu nori isimti ta koda ?kad headeryje dingtu user info panel ?

Parašė Zuika· 2007 Spa. 17 01:10:32
#14

Ptycka parašė:
tu nori isimti ta koda ?kad headeryje dingtu user info panel ?


Būtent ;)

Parašė Creatium· 2007 Spa. 18 13:10:44
#15

siaip ta scripterz saita atidaro ir niekas ten neuzluzo ir kt.

Parašė MAnjack· 2007 Spa. 18 14:10:59
#16

Ištrink šitą:
   <td width='220' align='center'>";
   // Jei narys, prisijungimas atrodo taip
   if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userinfo.gif'>
  <tr>
    <td>\n";
   if ($userdata['user_avatar'] != "") {
   echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='border:1px solid #999999'></center>\n";
   } else {
   echo "\n";
   }
   echo "</td>
    <td><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Apra&#240;ymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>&#222;inut&#235;s [naujĀø: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";"
   <td><img src='".THEME."images/blank.gif'></td>
  </tr>
</table>

\n";
   // Jei ne narys
} else {
   openside("Prisijungimas");
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='".THEME."images/userlogin.gif' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
  <tr>
    <td align='right'>Vardas: </td>
    <td>&nbsp;<input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'></td>
  </tr>
  <tr>
    <td align='right'>".$locale['062'].": </td>
    <td>&nbsp;<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>&nbsp;<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"</div>\n";
}
closeside();
   echo "</td>



Parašė Zuika· 2007 Spa. 18 17:10:55
#17

Ačiū tau MAnjack ;)

Redagavo Zuika· 2007 Spa. 18 17:10:07