Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Bėda su headeriu...

Parašė Taskalas· 2008 Lie. 21 20:07:44
#1

Sveiki,turiu problema.Visaip bandau į headerį įdėti naujausius ir populiariausius siuntinius,bet arba neįsideda arba išsikraipo puslapis.
Bandžiau daryti panašiai,kaip duota straipsnyje,bet vistiek nesigauna.
Gal kas galite padėti?
Mano theme.php:
<?php


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

// theme settings
$body_text = "#000";
$body_bg = "#fff";
$theme_width = "80%";
$theme_width_l = "175"; // max 200px (limited by background image)
$theme_width_r = "175"; // max 200px (limited by background image)

function render_header($header_content) {

global $theme_width,$settings,$theme_width_r;

echo "<br><table align='center' border='0' cellspacing='0' cellpadding='0' width='$theme_width'>
  <tr>
    <td height='8' width='8'><img alt='' border='0' src='".THEME."images/border-tleft.png'></td>
    <td height='8' class='zgoraj'></td>
    <td height='8' width='8'><img alt='' border='0' src='".THEME."images/border-tright.png'></td>
  </tr>
  <tr>
    <td width='8' class='levo'></td>
    <td><table cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header' height='93'>
<table border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td rowspan='2'><img alt='' border='0' src='".THEME."images/ikona.png'></td>
 
  <tr>
    <td class='opis' height='20' valign='top'>".$settings['description']."</td>
  </tr>
</table>
</td>
<td height='93' class='najdi' width='$theme_width_r'>";
   
   // Search script end //
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='white-header'>".showsublinks("<img alt='' border='0' src='".THEME."images/delilnik.png'>","white")."</td>
<td align='right' class='white-header'>".showsubdate()."</td>
</tr>
</table>\n";

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

}

function render_footer($license=false) {

global $theme_width,$settings,$locale,$theme_width_r;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer' width='20'><a href='#top'><img alt='' border='0' src='".THEME."images/gor.png'></a></td>
<td class='footer' width='$theme_width_r'>Powered by <a href='http://www.php-fusion.co.uk/'

target='_blank'>PHP-Fusion</a><br>Viena by <a href='http://www.itanium-power.com' target='_blank'>Itanium</a></td>
<td class='footer' align='center' width='60%'>".stripslashes($settings['footer'])."</td>
<td class='footer' width='$theme_width_r' align='right'>";
echo showcounter()."
</td>
</tr>
</table>
</td>
</tr>
</table>
    <td width='8' class='desno'> </td>
  </tr>
  <tr>
    <td height='8' width='8'><img alt='' border='0' src='".THEME."images/border-bleft.png'></td>
    <td height='8' class='spodaj'></td>
    <td height='8' width='8'><img alt='' border='0' src='".THEME."images/border-bright.png'></td>
  </tr>
</table>
\n<br>";

}

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

global $locale;

echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<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>\n";

}

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

global $locale;
   
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<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>\n";

}

function opentable($title) {

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

}

function closetable() {

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

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

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

}

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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmainx' 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>\n";

}

function tablebreak() {

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

}
?>



Parašė iNeT· 2008 Lie. 21 21:07:21
#2

Kokia narsykle naudoji IE?

Parašė Taskalas· 2008 Lie. 22 00:07:23
#3

Naudoju mozila,bet juk čia ne prie ko turėtu būti.
Kas gali padėt sutvarkyti visą tą nesąmonę? :?

Parašė Žmogus· 2008 Lie. 22 09:07:18
#4

Prisek visą theme, nes pagal theme.php nieko nepadarysi, gali klaidu privelti :S

Parašė Taskalas· 2008 Lie. 22 12:07:59
#5

Prisegu tik style ir theme.php paveiksliuku nereikia,pavadinimus ir t.t. jau ir pats pasireguliuosiu

Parašė Jupiter· 2008 Lie. 22 13:07:56
#6

https://webdnd.com/readarticle.p...cle_id=100

Štai imk pasiskaityti gal ka nors padės ;)

Parašė kLx· 2008 Lie. 22 13:07:15
#7

Juk sakė dariau pagal straipsnius.

Parašė Taskalas· 2008 Lie. 24 22:07:41
#8

Kaip man padaryti,kad headeryje būtų ir naujausi ir populiariausi siuntiniai?
Nes jei to nebus tai labai tuščia atrodys ten.

Parašė Žmogus· 2008 Lie. 24 23:07:40
#9

Nu tai prisek visą theme... Padarysiu aš jau tau... :D

Parašė ex-it· 2008 Lie. 24 23:07:32
#10

Shadow jei tu padarysi ir nepamokysi jo, tai kita karta kai jam vel reikes jis nemokes, geriau pamokyk :] ;)

Parašė Taskalas· 2008 Lie. 24 23:07:18
#11

Teisingai exitas sako,verčiau pamokyk.
Ir beje tam tereikia tik theme.php ir gal dar style,bet jie prisekti aukščiau.Geriau pamokyk o tai tikrai visada visko prasysiu

Parašė ex-it· 2008 Lie. 24 23:07:12
#12

;) Mokinys nori buti mokomas. :D

Parašė Taskalas· 2008 Lie. 24 23:07:01
#13

:DGerai baigiam off-topic,tai kas nors gali pamokyti?

Parašė Žmogus· 2008 Lie. 24 23:07:15
#14

Nu tai nors foto parodyk theme

Parašė Taskalas· 2008 Lie. 25 00:07:52
#15

o kam tau? juk theme.php yra pateikta virsuje,tju mane pamokyk aš jau pagal dizainą ir t.t. pasikeisiu viską ką reikia.
Kai sutvarkysiu šia bėda ir dar kai ką pamatysite ją čia

Parašė Žmogus· 2008 Lie. 25 00:07:17
#16

Krč ryte peržvelgsiu

Parašė Taskalas· 2008 Lie. 26 12:07:39
#17

Padėkite,labai to reikia