Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: cha.lt tema

Parašė Soo-2· 2008 Sau. 6 16:01:34
#1

sveiki.. turiu cha.lt tema ir header.php faila, noriu juos abu sujunkti, man niekas neiseina.. meta error.. kas pagelbes.? aciu..

Parašė Toonis· 2008 Sau. 6 16:01:30
#2

DUMB. Biški nesupratau. Kas pas tave tame header.php faile yra. Tu nori prisijungimo headeryje?

Parašė Soo-2· 2008 Sau. 6 16:01:40
#3

header.php faile yra prisijungimo panele..

Redagavo Soo-2· 2008 Sau. 6 16:01:53

Parašė Toonis· 2008 Sau. 6 17:01:56
#4

Duok šen savo theme.php failo
function render_header($header_content) { dalį.

Redagavo Toonis· 2008 Sau. 6 17:01:07

Parašė Soo-2· 2008 Sau. 6 17:01:14
#5

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

// viršutinės dalies pradžia

   

echo "<table cellspacing='0' cellpadding='0' >";
echo "<tr>";
echo " <td ><img src='".THEME."images/logo.png'></td>";
echo " <td width='160'></td>";
echo " <td align='right' ><img src='".THEME."images/baner.png'></td>";
echo "</tr></table>";








   

   // virsutinė dalis pasibaigė
echo "<center><table width='960' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='right'>";
echo" <img src='".THEME."images/virsus/1.png'></td>";
echo "<td class='meniu' width='950' background='".THEME."images/virsus/2.png'>";


$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
   $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
         if ($data['link_url']!="---") {
            if ($i != 0) { echo " | \n"; } else { echo "\n"; }
            $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
            if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
               echo "<a href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
            } else {
               echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."><b>".$data['link_name']."</b></a>";
            }
         }
         $i++;
      }
   }
}
   echo ($i == 0 ? "&nbsp;" : "")."


</td>";
echo "<td class='meniu' align='right' background='".THEME."images/virsus/2.png'>";
echo" </td>";
echo "<td><img src='".THEME."images/virsus/3.png'></td>";
echo "</td></tr></table></center>\n";
echo "<table width='967' cellpadding='4' bgcolor='#ffffff' cellspacing='0' align='center' border='0'><tr>";
}






Redagavo Soo-2· 2008 Sau. 6 17:01:27

Parašė Toonis· 2008 Sau. 6 17:01:36
#6

Koks čia šavalkynas. ;D Bet bandyk.
function render_header($header_content) {
global $theme_width,$settings;

// viršutinės dalies pradžia

   

echo "<table cellspacing='0' cellpadding='0' >";
echo "<tr>";
echo " <td ><img src='".THEME."images/logo.png'></td>";
echo " <td width='160'></td>";
echo " <td align='right' ><img src='".THEME."images/baner.png'></td>";
<tr align=left><td>";
include_once "header.php";
echo "</tr></table>";








   

   // virsutinė dalis pasibaigė
echo "<center><table width='960' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='right'>";
echo" <img src='".THEME."images/virsus/1.png'></td>";
echo "<td class='meniu' width='950' background='".THEME."images/virsus/2.png'>";


$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
   $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
         if ($data['link_url']!="---") {
            if ($i != 0) { echo " | \n"; } else { echo "\n"; }
            $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
            if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
               echo "<a href='".$data['link_url']."'".$link_target.">".$data['link_name']."</a>";
            } else {
               echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."><b>".$data['link_name']."</b></a>";
            }
         }
         $i++;
      }
   }
}
   echo ($i == 0 ? "&nbsp;" : "")."


</td>";
echo "<td class='meniu' align='right' background='".THEME."images/virsus/2.png'>";
echo" </td>";
echo "<td><img src='".THEME."images/virsus/3.png'></td>";
echo "</td></tr></table></center>\n";
echo "<table width='967' cellpadding='4' bgcolor='#ffffff' cellspacing='0' align='center' border='0'><tr>";
}




Parašė Soo-2· 2008 Sau. 6 17:01:19
#7

neveikia.. error.. ir priedo header php failas kitoks pas mane nu tu echo beveik nera, tiksliau netiek daug ir ne prie kiekvienos eilutes