Out of range value for column 'user_views' at row 1 kaip įdėti top 5 į headerį? - WordPress, Shopify ir PHPFusion programuotojų bendruomenė

Navigacija

Vartotojų tinkle

Prisijungusių svečių: 74
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,960
Naujausias narys: Paslapties Kodas

Naujausi straipsniai

Paskutiniai nariai

Paslapties K...01:49:11
Audrius_17 2 savaitės
Reikalas 7 savaitės
Simbijanas14 savaitės
Karinacraft15 savaitės
Žmogus18 savaitės
Bruksnys22 savaitės
Darexs25 savaitės
Nepas26 savaitės
keistuole28 savaitės
Gizmis29 savaitės
Rytis39 savaitės
MaFetas43 savaitės
ozzWANTED44 savaitės
saulyzas46 savaitės
TOMIJUS47 savaitės
Jaunelis63 savaitės
lanis63 savaitės
And2s64 savaitės
Memento Mori69 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 216.73.216.35
Naujienų: 529
Straipsnių: 235
Temų: 52,589
Postų: 522,549
Postų pask. parą: 2
Shout'ų pask. parą: 0
P.S.C. pask. parą: 2
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

Žmogus
2025 Geg. 31 10:05:18
Kas geresnio? šypsosi

Nepas
2025 Bal. 9 17:04:13
drovus

Nepas
2025 Bal. 9 17:04:08
drovus

Gizmis
2025 Kov. 15 14:03:50
OMG, smagu matyt sita puslapi veikianti

ozzWANTED
2024 Lap. 30 15:11:14
Taip, vis dar up šypsosi

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
kaip įdėti top 5 į headerį?
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Kiti PHP, HTML, MySQL klausimai

Autorius: Korniz Peržiūrų: 3195      Spausdinti temą
2009 Vas. 14 14:02:52          1 žinutė iš 8
Spausdinti pranešimą
turiu klausimą kaip įdėti top 5 siųntinius <-- pusėje.
theme.php failas žemiau.
Būčiau dekyngas jei padėtumete ps. fusion v7..



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

define("THEME_WIDTH", "935");
define("THEME_BULLET", "<strong>&middot;</strong>");

function render_page($license=false) {

global $aidlink, $locale, $settings, $main_style;

   //Header Start
echo '<table id="Table_01" align="center" width="935" height="208" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td rowspan="4">
         <img src="'.THEME.'images/header_01.jpg" width="684" height="208" alt="" /></td>
      <td>
         <img src="'.THEME.'images/header_02.jpg" width="204" height="33" alt="" /></td>
      <td rowspan="4">
         <img src="'.THEME.'images/header_03.jpg" width="47" height="208" alt="" /></td>
   </tr>';

   //Member Header Start

echo '<tr>';
   if (iMEMBER) {
echo '<td class="MemberForm" background="'.THEME.'images/header_04.jpg" width="204" height="115" style="padding-left:40px">';
   echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'><b>Edit Profile</b></a><br />\n";
   echo THEME_BULLET." <a href='".BASEDIR."messages.php' class='side'><b>Messages</b></a><br />\n";
   echo THEME_BULLET." <a href='".BASEDIR."members.php' class='side'><b>Memberlist</b></a><br />\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo THEME_BULLET." <a href='".ADMIN."index.php".$aidlink."' class='side'><b>Control Panel</b></a><br />\n";
   }
   echo THEME_BULLET." <a href='".BASEDIR."setuser.php?logout=yes' class='side'><b>Logout</b></a>\n";

   //Quest Header Start

    } else {
if (isset($_POST['Regh'])) {
redirect('register.php');
}
   echo '<td class="LoginForm" background="'.THEME.'images/header_04.jpg" width="204" height="115" style="paddin-top:8px">';
   include LOCALE.LOCALESET."global.php";
   echo "<div style='text-align:center'>\n";
   echo "<form name='loginform' method='post' action='".FUSION_SELF."'>\n";
   echo $locale['global_101']." <input type='text' name='user_name' class='textbox' style='width:100px' /><br />\n";
   echo $locale['global_102']." <input type='password' name='user_pass' class='textbox' style='width:100px;margin-left:4px;margin-top:2px' /><br />\n";
   echo "<input type='submit' name='login' value='".$locale['global_104']."' class='buttonHeader' style='margin-top:4px;margin-right:4px;width:45px' /><input type='submit' name='Regh' value='Click Here to Register!' class='buttonReg' style='margin-top:4px;width:118px' /><br />\n";
   echo "<small>Remember?</small><input type='checkbox' name='remember_me' value='y' title='".$locale['global_103']."' style='vertical-align:middle;margin-top:3px' />\n";
   echo "</form>\n";
   if ($settings['enable_registration']) {
      echo '<a href="'.BASEDIR.'register.php" title="Register Here!" class="side">Click here</a> to register.<br />';
   }
   echo '<a href="'.BASEDIR.'lostpassword.php" title="Request One Here!" class="side">Forgot Your Password?</a></div>';

   }

   echo '</td></tr>
   <tr>
      <td>
         <img src="'.THEME.'images/header_05.jpg" width="204" height="30" alt="" /></td>
   </tr>
   <tr>
      <td background="'.THEME.'images/header_06.jpg" width="204" height="30" align="center">';
   // Search script //
   echo "<form name='search' method='post' action='".BASEDIR."search.php?stype=d'><b><font color='white'><small>Search: </small></font></b>";
   echo "<input value='Enter Keywords' name='stext' class='textbox' style='width:100px' onBlur=\"if(this.value=='') this.value='Enter Keywords';\" onFocus=\"if(this.value=='Enter Keywords') this.value='';\" /> ";
   echo "<input type='submit' name='search' value='Go!' class='buttonReg' style='width:30px' /></form></td>";

   echo '</tr></table>';

   // Menus Starts
echo '<table align="center" id="Table_02" width="935" height="30" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td>
         <img src="'.THEME.'images/menu_01.jpg" width="10" height="30" alt="" border="0" />
      </td>

      <td><a href="'.BASEDIR.'index.php">
         <img src="'.THEME.'images/menu_02.jpg" width="70" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
      <td><a href="'.BASEDIR.'downloads.php">
         <img src="'.THEME.'images/menu_04.jpg" width="91" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
      <td><a href="'.BASEDIR.'forum/index.php">
         <img src="'.THEME.'images/menu_06.jpg" width="73" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
      <td><a href="'.BASEDIR.'articles.php">
         <img src="'.THEME.'images/menu_08.jpg" width="67" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
      <td><a href="'.BASEDIR.'search.php">
         <img src="'.THEME.'images/menu_10.jpg" width="74" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
      <td><a href="'.BASEDIR.'photogallery.php">
         <img src="'.THEME.'images/menu_12.jpg" width="76" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
      <td><a href="'.BASEDIR.'news.php">
         <img src="'.THEME.'images/menu_14.jpg" width="70" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
      <td><a href="'.BASEDIR.'index.php">
         <img src="'.THEME.'images/menu_16.jpg" width="80" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>
      <td><a href="'.BASEDIR.'index.php">
         <img src="'.THEME.'images/menu_18.jpg" width="81" height="30" alt="" border="0" /></td>
      <td>
         <img src="'.THEME.'images/menu_03.jpg" width="4" height="30" alt="" border="0" /></td>';
if (iMEMBER) {
echo '   <td><a href="'.BASEDIR.'setuser.php?logout=yes">
         <img src="'.THEME.'images/menu_log.jpg" width="75" height="30" alt="" border="0" /></td>';
} else {
echo '   <td><a href="'.BASEDIR.'register.php">
         <img src="'.THEME.'images/menu_20.jpg" width="75" height="30" alt="" border="0" /></td>';
}
      echo '<td>
         <img src="'.THEME.'images/menu_21.jpg" width="4" height="30" alt="" border="0" /></td>
      <td background="'.THEME.'images/menu_22.jpg" width="118" height="30"><font color="white" class="date" style="margin-left:22px"><small>'.showsubdate().'</small></font>
         </td>
      <td>
         <img src="'.THEME.'images/menu_23.jpg" width="10" height="30" alt="" border="0" /></td>
   </tr>
</table>';
   // Menu Ends



echo "<table bgcolor='#070707' align='center' cellspacing='0' cellpadding='0' width='935' >
<tr>
<td>\n";
   
   // Content
   echo "<br /><table cellpadding='0' cellspacing='0' width='915' class='$main_style' align='center'>\n<tr>\n";
   echo "<td class='side-border-left' valign='top' width='20%'>".LEFT."</td>";
   echo "<td class='main-bg' align='center' valign='top' width='60%' style='margin:5px'>".U_CENTER.CONTENT.L_CENTER."</td>";
   echo "<td class='side-border-right' valign='top' width='20%'>".RIGHT."</td>";
   echo "</tr>\n</table>\n";
   
   //Footer
   echo "</td></tr></table>";
   echo "<center><table cellpadding='0' cellspacing='0' width='935' background='".THEME."images/footer_bg.jpg'>\n<tr>\n";
   echo "<td align='center' class='main-footer' style='color:#fff;'>".stripslashes($settings['footer']);
   echo "Mp3ty.lt And Softas.lt By <a href='http://www.mp3ty.lt' target='_blank'>| Softasxmp3ty |</a>";
   if (!$license) { echo "<br />\n".showcopyright(); }
   echo "</td>\n";
   echo "</tr>\n</table>\n</center>";

}

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

   echo "<div class='capmain'>&nbsp;&nbsp;$subject</div>\n";
   echo "<div class='main-body floatfix'>".$news."</div>\n";
   echo "<div class='news-footer'>\n";
   echo newsposter($info,"&middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</div>\n";
   echo "<br />";

}

function render_article($subject, $article, $info) {
   
   echo "<div class='capmain'>&nbsp;&nbsp;$subject</div>\n";
   echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
   echo "<div class='news-footer'>\n";
   echo articleposter($info,"&middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</div>\n";
   echo "<br />";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='98%'>
<tr>
<td class='capmain'>&nbsp;&nbsp;$title</td>
</tr>
<tr>
<td class='main'>\n";

}

function closetable() {

echo "</td>
</tr>
</table><br />\n";

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr><td height='29' class='scapmain'>";
   
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
   }
   echo $title."</td></tr>\n<tr><td class='side-body' background='#10161D'>\n";
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>
</tr>
</table><br />";

}
?>




http://www.failai.lt/Korniz ,Http://Failas.Eu , Http://MeMusic.Lt
Redagavo Korniz 2009 Vas. 14 15:02:56
2009 Vas. 14 14:02:12          2 žinutė iš 8
Spausdinti pranešimą
yra forume pajeska ismok naudotis be žado

2009 Vas. 14 15:02:29          3 žinutė iš 8
Spausdinti pranešimą
rašyt išmok,ieškojau neradau

http://www.failai.lt/Korniz ,Http://Failas.Eu , Http://MeMusic.Lt
Redagavo Korniz 2009 Vas. 14 15:02:07
2009 Vas. 14 15:02:34          4 žinutė iš 8
Spausdinti pranešimą
snuki uzdaryk blogai

2009 Vas. 14 15:02:07          5 žinutė iš 8
Spausdinti pranešimą
nerašyk geriau čia... nesinori offtopicų

http://www.failai.lt/Korniz ,Http://Failas.Eu , Http://MeMusic.Lt
2009 Vas. 14 15:02:14          6 žinutė iš 8
Spausdinti pranešimą
pats ji darai as tau pasakiau kad nemoki naudotis Paieška ,tu dar kazko mokai manes ....

2009 Vas. 14 15:02:27          7 žinutė iš 8
Spausdinti pranešimą
GoBiS parašė:
pats ji darai as tau pasakiau kad nemoki naudotis Paieška ,tu dar kazko mokai manes ....

tu kvailas ar durnas? galvoja

http://www.failai.lt/Korniz ,Http://Failas.Eu , Http://MeMusic.Lt
2009 Vas. 14 16:02:18          8 žinutė iš 8
Spausdinti pranešimą
any 1?

http://www.failai.lt/Korniz ,Http://Failas.Eu , Http://MeMusic.Lt
Peršokti į forumą: