Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Naujas klausimas!!! | UseGoogle klausimai

Parašė Use Google· 2010 Geg. 11 21:05:29
#1

Sveiki. Kad nereiketu kurti daug temu sukursiu viena su visais savo klausimais. Klausimai gali buti kvaili, bet PHP programavimo kalba moku minimaliai, todel galiu daug ko nemoket.

1. Susiaurinau tema, bet kazkodel dabar ji pasislinkus i kaire puse. Kaip istaisyt?

foto:





theme.php:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_WIDTH", "700px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {

   global $settings, $main_style;

   //Header
   echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
   echo "<td>\n";
   echo "<table cellpadding='0' cellspacing='0' width='700px'>\n<tr>\n";
   echo "<td class='full-header'>\n".showbanners()."</td>\n";
   echo "</tr>\n</table>\n";
   echo "</td>\n</tr>\n</table>\n";
   
   echo "<table cellpadding='0' cellspacing='0' width='700px'>\n<tr>\n";
   echo "<td class='sub-header'>".showsublinks(" <span class='bullet'>&middot;</span> ","white")."</td>\n";
   echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
   echo "</tr>\n</table>\n";
   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='700px' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   
   //Footer
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='700px'>\n<tr>\n";
   echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."<br />\n";
   if (!$license) { echo showcopyright()."<br /><br />\n"; } echo showcounter()."<br /><br />\n";
   echo "</td>\n</tr>\n</table>\n";
   echo "</td>\n</tr>\n</table>\n";

}

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

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

}

function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='520px'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

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

}

function closetable() {

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

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='180px' class='border'>\n<tr>\n";
   echo "<td class='scapmain'>".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }
   echo "</tr>\n<tr>\n";
   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

   global $panel_collapse;

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

}
?>



Redagavo Use Google· 2010 Bir. 9 23:06:41

Parašė webzlt· 2010 Geg. 11 21:05:18
#2

sucentruok:



 echo "<div style='text-align:center;'><table cellpadding='0' cellspacing='0' width='700px'>\n<tr>\n";
   echo "<td class='sub-header'>".showsublinks(" <span class='bullet'>&middot;</span> ","white")."</td>\n";
   echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
   echo "</tr>\n</table>\n";
   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='700px' class='$main_style'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   
   //Footer
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='700px'>\n<tr>\n";
   echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."<br />\n";
   if (!$license) { echo showcopyright()."<br /><br />\n"; } echo showcounter()."<br /><br />\n";
   echo "</td>\n</tr>\n</table>\n";
   echo "</td>\n</tr>\n</table></div>\n";



Parašė Use Google· 2010 Geg. 11 22:05:27
#3

Tik tekstas susicentruoja, o pats blokas nejuda is vietos.

Parašė sniuff· 2010 Geg. 11 22:05:59
#4

//Header
   echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
   echo "<td>\n";
   echo "<table cellpadding='0' cellspacing='0' width='700px'>\n<tr>\n";
   echo "<td class='full-header'>\n".showbanners()."</td>\n";
   echo "</tr>\n</table>\n";
   echo "</td>\n</tr>\n</table>\n";
   
   echo "<table cellpadding='0' cellspacing='0' width='700px' class='center'>\n<tr>\n";
   echo "<td class='sub-header'>".showsublinks(" <span class='bullet'>&middot;</span> ","white")."</td>\n";
   echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
   echo "</tr>\n</table>\n";
   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='700px' class='$main_style center'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   
   //Footer
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='700px' class='center>\n<tr>\n";
   echo "<td align='center' class='footer'>".stripslashes($settings['footer'])."<br />\n";
   if (!$license) { echo showcopyright()."<br /><br />\n"; } echo showcounter()."<br /><br />\n";
   echo "</td>\n</tr>\n</table>\n";
   echo "</td>\n</tr>\n</table>\n";




Kuo toliau, tuo debiliškesni nickai.

Parašė Use Google· 2010 Geg. 12 16:05:06
#5

Aciu Sniuff :)

Vel beda turiu.




Kodel headeris siauras (koks ir turi buti), o pats turinys saito issitemes. Padesit?

theme.php:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_WIDTH", "800px");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {

   global $settings, $main_style;

//Header
   echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
   echo "<td>\n";
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n";
   echo "<td class='full-header'>\n".showbanners()."</td>\n";
   echo "</tr>\n</table>\n";
   echo "</td>\n</tr>\n</table>\n";
   
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='center'>\n<tr>\n";
   echo "<br>";
   echo "</tr>\n</table>\n";
   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='$main_style center'>\n<tr>\n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>\n</table>\n";
   

}

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

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

}

function render_article($subject, $article, $info) {
   
   echo "<table cellpadding='0' cellspacing='0' width='520px'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

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

}

function closetable() {

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

}

function openside($title, $collapse = false, $state = "on") {
   
   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='180px' class='border'>\n<tr>\n";
   echo "<td class='scapmain'>".$title."</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>\n";
   }
   echo "</tr>\n<tr>\n";
   echo "<td".($collapse == true ? " colspan='2'" : "")." class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside($collapse = false) {

   global $panel_collapse;

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

}
?>



Redagavo Use Google· 2010 Geg. 12 16:05:55

Parašė citni· 2010 Geg. 12 17:05:50
#6

Tai gal pats headeris nupieštas per mažas??? :S

Parašė Use Google· 2010 Geg. 12 17:05:19
#7

Emighty parašė:
Tai gal pats headeris nupieštas per mažas??? :S

Na nepiestas jis, is default paimtas. Sita varijanta galima atmest :) O siaip cia ne headeryje esme, o paciam turini (kur rasos naujienos ir t.t.), jis per platus.

Parašė citni· 2010 Geg. 12 17:05:05
#8

Tai tada keisk...
define("THEME_WIDTH", "800px");



Redagavo citni· 2010 Geg. 12 17:05:07

Parašė Use Google· 2010 Geg. 12 17:05:46
#9

Emighty parašė:
Tai tada keisk...
define("THEME_WIDTH", "800px");



Galvoji nebandziau? Jei padarysi 900, tai ir headeris ir pats turinys praplates.

Parašė Use Google· 2010 Geg. 13 15:05:30
#10

Na, tai kas nors padesit?

Parašė Use Google· 2010 Geg. 13 18:05:18
#11

Support'as vadinas...

Parašė webzlt· 2010 Geg. 13 18:05:30
#12

nes sudo klausi o css ziurejai, redaguot bandei? pats aiskinaisi ar cia tik sedi ir padarykit uz mane.....

Parašė Use Google· 2010 Geg. 13 21:05:18
#13

Jei sudo klausiu, tai ko nepadedi? Jeigu mokeciau ir zinociau kame pautai nesedeciau cia :)

Parašė webzlt· 2010 Geg. 14 18:05:03
#14

neturiu laiko niekais uzsiimineti, + kai pats gali issiaiskint ir pasidaryt, ar tingi? gal uz tave ir saita padaryt?

Parašė Use Google· 2010 Geg. 14 18:05:31
#15

webzlt parašė:
neturiu laiko niekais uzsiimineti, + kai pats gali issiaiskint ir pasidaryt, ar tingi? gal uz tave ir saita padaryt?

Zmogau, jei jau cia rasau tai reiskias ir bandziau.

Parašė Creatium· 2010 Geg. 14 18:05:19
#16

O jeigu tarkim padarai vietoj 800px 900px, tai praplatėja vienodai ir headeris ir turinys, ar irgi lieka headeris mažesnis?

Parašė Use Google· 2010 Geg. 14 18:05:58
#17

Isplateja abu. Ir headeris ir turinys.

Parašė Creatium· 2010 Geg. 14 18:05:54
#18

Man šita vieta įdomi:

class='$main_style center'

Pabandyk ją pašalinti ir žiūrėk ar pasitaisys.

Parašė edeni· 2010 Geg. 14 18:05:00
#19

Ei, o kam tu render_news dydį darai kaip THEME_WIDTH ??

Gal pamegink keist:

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

   echo "<table cellpadding='0' cellspacing='0' width='KEISK TOL KOL BUS GERAI.'>\n<tr>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td class='main-body'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n</tr>\n</table>\n";

}



Parašė webzlt· 2010 Geg. 14 19:05:40
#20

rodyk css geriau .

Parašė Zeck· 2010 Geg. 14 19:05:55
#21

webzlt svaigsti ir nejauti

Parašė Use Google· 2010 Geg. 14 23:05:38
#22

Nei vienas is paminetu budu nepavyko. Bet esme tame, kad taip nutiko kai buvo parasyta naujiena. Del visa ko duodu news.php faila:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: news.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";

// Predefined variables, do not edit these values
if ($settings['news_style'] == "1") { $i = 0; $rc = 0; $ncount = 1; $ncolumn = 1; $news_[0] = ""; $news_[1] = ""; $news_[2] = ""; } else { $i = 1; }

// Number of news displayed
$items_per_page = $settings['newsperpage'];

add_to_title($locale['global_200'].$locale['global_077']);

if (!isset($_GET['readmore']) || !isnum($_GET['readmore'])) {
   $rows = dbcount("(news_id)", DB_NEWS, groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") AND news_draft='0'");
   if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
   if ($rows) {
      $result = dbquery(
         "SELECT tn.*, tc.*, user_id, user_name FROM ".DB_NEWS." tn
         LEFT JOIN ".DB_USERS." tu ON tn.news_name=tu.user_id
         LEFT JOIN ".DB_NEWS_CATS." tc ON tn.news_cat=tc.news_cat_id
         WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") AND news_draft='0'
         ORDER BY news_sticky DESC, news_datestamp DESC LIMIT ".$_GET['rowstart'].",$items_per_page"
      );
      $numrows = dbrows($result);
      if ($settings['news_style'] == "1") { $nrows = round((dbrows($result) - 1) / 2); }
      while ($data = dbarray($result)) {
         $news_cat_image = "";
         $news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);
         if ($data['news_cat_image']) {
            $news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat_id']."'><img src='".get_image("nc_".$data['news_cat_name'])."' alt='".$data['news_cat_name']."' class='news-category' /></a>";
         } else {
            $news_cat_image = "";
         }
         $news_news = $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news']);
         if ($news_cat_image != "") $news_news = $news_cat_image.$news_news;
         $news_info = array(
            "news_id" => $data['news_id'],
            "user_id" => $data['user_id'],
            "user_name" => $data['user_name'],
            "news_date" => $data['news_datestamp'],
            "news_ext" => $data['news_extended'] ? "y" : "n",
            "news_reads" => $data['news_reads'],
            "news_comments" => dbcount("(comment_id)", DB_COMMENTS, "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
            "news_allow_comments" => $data['news_allow_comments']
         );
         if ($settings['news_style'] == "1") {
            if ($rows <= 2 || $ncount == 1) {
               $news_[0] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
               $news_[0] .= "<tr>\n<td class='tbl2'><strong>".$news_subject."</strong></td>\n</tr>\n";
               $news_[0] .= "<tr>\n<td class='tbl1' style='text-align:justify'>".$news_news."</td>\n</tr>\n";
               $news_[0] .= "<tr>\n<td align='center' class='tbl2'>\n";
               $news_[0] .= "<span class='small2'>".THEME_BULLET." <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a> ".$locale['global_071'].showdate("longdate", $news_info['news_date'])." &middot;\n";
               if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) {
                  $news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['global_072']."</a> &middot;\n" : "";
                  $news_[0] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].($news_info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> &middot;\n" : "";
                  $news_[0] .= $news_info['news_reads'].$locale['global_074']." &middot;\n";
               }
               $news_[0] .= "<a href='print.php?type=N&amp;item_id=".$news_info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>";
               if (checkrights("N")) { $news_[0] .= " &middot;  <a href='".ADMIN."news.php".$aidlink."&amp;action=edit&amp;news_id=".$news_info['news_id']."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a></span>\n"; } else { $news_[0] .= "</span>\n"; }
               $news_[0] .= "</td>\n</tr>\n</table>\n";
               if ($ncount != $rows) { $news_[0] .= "<div><img src='".get_image("blank")."' alt='' width='1' height='8' /></div>\n"; }
            } else {
               if ($i == $nrows && $ncolumn != 2) { $ncolumn = 2; $i = 0; }
               $row_color = ($rc % 2 == 0 ? "tbl2" : "tbl1");
               $news_[$ncolumn] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
               $news_[$ncolumn] .= "<tr>\n<td class='tbl2'><strong>".$news_subject."</strong></td>\n</tr>\n";
               $news_[$ncolumn] .= "<tr>\n<td class='tbl1' style='text-align:justify'>".$news_news."</td>\n</tr>\n";
               $news_[$ncolumn] .= "<tr>\n<td align='center' class='tbl2'>\n";
               $news_[$ncolumn] .= "<span class='small2'>".THEME_BULLET." <a href='profile.php?lookup=".$news_info['user_id']."'>".$news_info['user_name']."</a> ".$locale['global_071'].showdate("longdate", $news_info['news_date']);
               if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) {
                  $news_[$ncolumn] .= "<br />\n";
                  $news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['global_072']."</a> &middot;\n" : "";
                  $news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."#comments'>".$news_info['news_comments'].($news_info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> &middot;\n" : "";
                  $news_[$ncolumn] .= $news_info['news_reads'].$locale['global_074']." &middot;\n";
               } else {
                  $news_[$ncolumn] .= " &middot;\n";
               }
               $news_[$ncolumn] .= "<a href='print.php?type=N&amp;item_id=".$news_info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
               if (checkrights("N")) { $news_[$ncolumn] .= " &middot; <a href='".ADMIN."news.php".$aidlink."&amp;action=edit&amp;news_id=".$news_info['news_id']."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a></span>\n"; } else { $news_[$ncolumn] .= "</span>\n"; }
               $news_[$ncolumn] .= "</td>\n</tr>\n</table>\n";
               if ($ncolumn == 1 && $i < ($nrows - 1)) { $news_[$ncolumn] .= "<div><img src='".get_image("blank")."' alt='' width='1' height='8' /></div>\n"; }
               if ($ncolumn == 2 && $i < (dbrows($result) - $nrows - 2)) { $news_[$ncolumn] .= "<div><img src='".get_image("blank")."' alt='' width='1' height='8' /></div>\n"; }
               $i++; $rc++;
            }
            $ncount++;
         } else {
            echo "<!--news_prepost_".$i."-->\n";
            $i++;
            render_news($news_subject, $news_news, $news_info);
         }
      }
      if ($settings['news_style'] == "1") {
         opentable($locale['global_077']);
         echo "<table cellpadding='0' cellspacing='0' style='width:100%'>\n<tr>\n<td colspan='3' style='width:100%'>\n";
         echo $news_[0];
         echo "</td>\n</tr>\n<tr>\n<td style='width:50%;vertical-align:top;'>\n";
         echo $news_[1];
         echo "</td>\n<td style='width:10px'><img src='".get_image("blank")."' alt='' width='10' height='1' /></td>\n<td style='width:50%;vertical-align:top;'>\n";
         echo $news_[2];
         echo "</td>\n</tr>\n</table>\n";
         closetable();
      }
      if ($rows > $items_per_page) echo "<div align='center' style=';margin-top:5px;'>\n".makepagenav($_GET['rowstart'],$items_per_page,$rows,3)."\n</div>\n";
   } else {
      opentable($locale['global_077']);
      echo "<div style='text-align:center'><br />\n".$locale['global_078']."<br /><br />\n</div>\n";
      closetable();
   }
} else {
   include INCLUDES."comments_include.php";
   include INCLUDES."ratings_include.php";
   $result = dbquery(
      "SELECT tn.*, user_id, user_name FROM ".DB_NEWS." tn
      LEFT JOIN ".DB_USERS." tu ON tn.news_name=tu.user_id
      WHERE news_id='".$_GET['readmore']."' AND news_draft='0'"
   );
   if (dbrows($result)!=0) {
      $data = dbarray($result);
      if (checkgroup($data['news_visibility'])) {
         $news_cat_image = "";
         if (!isset($_POST['post_comment']) && !isset($_POST['post_rating'])) {
             $result2 = dbquery("UPDATE ".DB_NEWS." SET news_reads=news_reads+1 WHERE news_id='".$_GET['readmore']."'");
             $data['news_reads']++;
         }
         $news_subject = $data['news_subject'];
         if ($data['news_cat']) {
            $result2 = dbquery("SELECT * FROM ".DB_NEWS_CATS." WHERE news_cat_id='".$data['news_cat']."'");
            if (dbrows($result2)) {
               $data2 = dbarray($result2);
               $news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".get_image("nc_".$data2['news_cat_name'])."' alt='".$data2['news_cat_name']."' class='news-category' /></a>";
            }
         }
         $news_news = stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news']);
         if ($data['news_breaks'] == "y") { $news_news = nl2br($news_news); }
         if ($news_cat_image != "") $news_news = $news_cat_image.$news_news;
         $news_info = array(
            "news_id" => $data['news_id'],
            "user_id" => $data['user_id'],
            "user_name" => $data['user_name'],
            "news_date" => $data['news_datestamp'],
            "news_ext" => "n",
            "news_reads" => $data['news_reads'],
            "news_comments" => dbcount("(comment_id)", DB_COMMENTS, "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
            "news_allow_comments" => $data['news_allow_comments']
         );
         add_to_title($locale['global_201'].$news_subject);
         echo "<!--news_pre_readmore-->";
         render_news($news_subject, $news_news, $news_info);
         echo "<!--news_sub_readmore-->";
         if ($data['news_allow_comments']) { showcomments("N", DB_NEWS, "news_id", $_GET['readmore'], FUSION_SELF."?readmore=".$_GET['readmore']); }
         if ($data['news_allow_ratings']) { showratings("N", $_GET['readmore'], FUSION_SELF."?readmore=".$_GET['readmore']); }
      } else {
         redirect(FUSION_SELF);
      }
   } else {
      redirect(FUSION_SELF);
   }
}

require_once THEMES."templates/footer.php";
?>



Redagavo Use Google· 2010 Geg. 14 23:05:06

Parašė webzlt· 2010 Geg. 14 23:05:12
#23

Zeck parašė:
webzlt svaigsti ir nejauti



as bent jau zinau ka kalbu B) prie ko cia news.php ? css

Parašė Use Google· 2010 Geg. 14 23:05:44
#24

Nu imk ta .css

a {
   color : #005599;
   text-decoration : none;
}

a:hover {
   color : #005599;
   text-decoration : underline;
}

a.side {
   color : #005599;
   text-decoration : none;
}

a:hover.side {
   color : #005599;
   text-decoration : underline;
}

a.white, li.white a {
   color: #ddd;
   text-decoration: none;
}

a:hover.white, li.white a:hover {
   color: #ddd;
   text-decoration: underline;
}

body {
   color : #555;
             background-image: url(images/bg.png);
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
}

form {
   margin : 0px;
}

hr {
   height : 0px;
   border : 0px solid #eee;
}

hr.side-hr {
   height : 0px;
   border : 0px solid #eee;
}

td {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
}

pre {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
}

.alt {
   color : #005599;
}

.outer-border {
   border : 0px solid #dddddd;
}

.sub-header {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #000;
   background-color : #888;
   border-top : 0px solid #000;
   border-bottom : 0px solid #000;
   padding : 5px;
}

.sub-header ul{
   margin: 0;
   padding: 0;
}

.sub-header ul li{
   display: inline;
}

.sub-header ul li.first-link .bullet{
   display: none;
}

.full-header {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #ddd;
   background-color : #c80000;
   padding : 10px;
}

.footer {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #555;
   background-color : #f1f1f1;
   border : 0px solid #ccc;
   padding : 5px;
}

.button {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #555;
   background-color : #f1f1f1;
   height : 20px;
   border : 1px solid #ccc;
   margin-top : 2px;
}

.bbcode {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #555;
   background-color : #f1f1f1;
   border : 1px solid #ccc;
   margin-top : 2px;
}

.textbox {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #555;
   background-color : #f8f8f8;
   border : 1px solid #ccc;
}

.main-body {
   font-size : 11px;
   color : #555;
   background-color : #fff;
   padding : 4px 0px 5px 0px;
}

.center {
   margin : 0 auto;
}

.side-body {
   font-size : 10px;
   color : #777;
   background-color : #f6f6f6;
   padding : 4px;
}

.main-bg {
   color : #555;
   background-color : #fff;
   padding : 10px 10px 5px 10px;
}

.border {
   border : 1px solid #e1e1e1;
   margin-bottom : 5px;
}

.admin-message {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   text-align : center;
   color : #555;
   background-color : #f6f6f6;
   border : 1px solid #e1e1e1;
   padding : 3px 4px 5px 4px;
   margin-bottom : 5px;
}

.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}

.side-border-left {
   color : #777;
   background-color : #fff;
   padding : 10px 0px 10px 10px;
   width: 175px;
}

.side-border-right {
   color : #777;
   background-color : #fff;
   padding : 10px 10px 10px 0px;
   width: 175px;
}

.news-category {
   border:0;
   margin:3px 5px 0 0;
   float:left;
}

.news-footer {
   font-size : 10px;
   color : #555;
   background-color : #f1f1f1;
   padding : 3px 4px 4px 4px;
}

.capmain {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   font-weight : bold;
   color : #666;
   background-color : #fff;
   padding : 2px 0px 4px 0px;
}

.scapmain {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   font-weight : bold;
   color : #666;
   background-color : #f1f1f1;
   border-bottom : 1px solid #e1e1e1;
   padding : 4px;
}

.tbl-border {
   border : 1px solid #e1e1e1;
}

.tbl {
   font-size : 11px;
   color : #555;
   background-color : #fff;
   padding : 4px;
}

.tbl1 {
   font-size : 11px;
   color : #555;
   background-color : #fff;
   padding : 4px;
}

.tbl2 {
   font-size : 11px;
   color : #555;
   background-color : #f1f1f1;
   padding : 4px;
}

.forum-caption {
   font-size : 11px;
   font-weight : bold;
   color : #888;
   background-color : #f1f1f1;
   padding : 2px 4px 4px 4px;
}

.quote {
   font-size : 11px;
   color : #555;
   background-color : #f8f8f8;
   padding : 4px;
   margin : 0px 20px 0px 20px;
   border : 1px solid #bbb;
}

.poll {
   height : 12px;
   border : 1px solid #bbb;
}

.comment-name {
   font-weight : bold;
   color : #005599;
}

.shoutboxname {
   font-weight : bold;
   color : #005599;
   background-color : #f6f6f6;
}

.shoutbox {
   color : #777;
   background-color : #f6f6f6;
}

.shoutboxdate {
   font-size : 10px;
   color : #888;
   background-color : #f6f6f6;
}

.small {
   font-size : 10px;
   font-weight : normal;
}

.small2 {
   font-size : 10px;
   font-weight : normal;
   color : #555;
}

.side-small {
   font-size : 10px;
   font-weight : normal;
   color : #555;
   background-color : #f6f6f6;
}

.side-label {
   color : #555;
   background-color : #f1f1f1;
   padding : 2px 2px 3px 2px;
}

/* Vertical Navigation */

#navigation h2 {
   font-size: 10px;
   color : #555;
   background-color: #f1f1f1;
   margin: 0;
   padding: 4px;
}
   
#navigation ul {
   margin: 0;
   padding: 0;
   list-style-type: none;
}

* html #navigation ul li{
   height: 1%;
}

#navigation a {
   display: block;
   color: #005599;
   background-color: #f6f6f6;
   padding: 2px;
   text-decoration : none;
}

#navigation a:hover {
   color: #f6f6f6;
   background-color: #005599;
}

/* Page Navigation */

.pagenav {
   padding: 0.4em;
}

.pagenav span {
   color: #fff;
   background-color: #005599;
   border: 1px solid #e1e1e1;
   padding: 0.2em 0.4em 0.2em 0.4em;
   margin: 0.2em;
}

.pagenav a {
   color: #005599;
   background-color: #fff;
   border: 1px solid #e1e1e1;
   padding: 0.2em 0.4em 0.2em 0.4em;
   margin: 0.2em;
   text-decoration: none;
}

.pagenav a:hover {
   color: #fff;
   background-color: #005599;
   margin: 0.2em;
   text-decoration: none;
}




Parašė edeni· 2010 Geg. 15 10:05:39
#25

Pamėgink padaryt ta ką aš viršuje parodžiau.

Parašė Creatium· 2010 Geg. 15 11:05:09
#26

Jop, Goku variantas tau tikrai padės. Tame problema ir buvo.

Parašė Use Google· 2010 Bir. 8 12:06:49
#27





Apibraukiau kas blogai, padesit istaisyt?

styles.css
a {
   color : #005599;
   text-decoration : none;
}

a:hover {
   color : #005599;
   text-decoration : underline;
}

a.side {
   color : #005599;
   text-decoration : none;
}

a:hover.side {
   color : #005599;
   text-decoration : underline;
}

a.white, li.white a {
   color: #ddd;
   text-decoration: none;
}

a:hover.white, li.white a:hover {
   color: #ddd;
   text-decoration: underline;
}

body {
   color : #555;
   background-color: #fff;
   background-image: url(images/bg.jpg);
  background-repeat: repeat-x;
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
}

form {
   margin : 0px;
}

hr {
   height : 1px;
   border : 1px solid #eee;
}

hr.side-hr {
   height : 1px;
   border : 1px solid #eee;
}

td {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
}

pre {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
}

.alt {
   color : #005599;
}

.outer-border {
   border : 0px solid #000;
}

.sub-header {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #000;
   background-image:url(images/sub.png);
   height:14px;
   padding : 0px;
}

.sub-header ul{
   margin: 0;
   padding: 0;
}

.sub-header ul li{
   display: inline;
}

.sub-header ul li.first-link .bullet{
   display: none;
}

.full-header {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #ddd;
   background-image:url(images/logo.jpg);
   background-position:center;
   background-repeat:no-repeat;
   width:850px;
   height:121px;
   padding : 0px;
}

.footer {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #555;
   background-image:url(images/sub.png);
   height:30px;
   padding : 0px;
}

.button {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #555;
   background-color : #f1f1f1;
   height : 20px;
   border : 1px solid #ccc;
   margin-top : 2px;
}

.bbcode {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #555;
   background-color : #f1f1f1;
   border : 1px solid #ccc;
   margin-top : 2px;
}

.textbox {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   color : #555;
   background-color : #f8f8f8;
   border : 1px solid #ccc;
}

.main-body {
   font-size : 11px;
   background-image:url(images/sub.png);
   border : 1px solid #b1b1b1;
   padding : 4px;
}

.center {
   margin : 0 auto;
}

.side-body {
   font-size : 10px;
   background-image:url(images/sub.png);
   padding : 4px;
}

.main-bg {
   color : #555;
   background-image:url(images/sub.png);
   padding : 10px 10px 5px 10px;
}

.border {
   border-left : 1px solid #dddddd;
   border-right : 1px solid #dddddd;
   margin-bottom : 0px;
}

.admin-message {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   text-align : center;
   color : #555;
   background-color : #f6f6f6;
   border : 1px solid #e1e1e1;
   padding : 3px 4px 5px 4px;
   margin-bottom : 5px;
}

.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}

.side-border-left {
   color : #777;
   background-image:url(images/sub.png);
   padding : 10px 0px 10px 10px;
   width: 175px;
}

.side-border-right {
   padding : 10px 10px 10px 0px;
   width: 175px;
}

.news-category {
   border:0;
   margin:3px 5px 0 0;
   float:left;
}

.news-footer {
   font-size : 10px;
   color : #555;
   background-image:url(images/sub.png);
   padding : 3px 4px 4px 4px;
}

.capmain {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   font-weight : bold;
   background-image:url(images/sub.png);
   padding-left : 0px;
}

.scapmain {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   font-weight : bold;
   background-image:url(images/sub.png);
   border-bottom : 0px solid #e1e1e1;
   padding : 4px;
}

.tbl-border {
   border : 1px solid #e1e1e1;
}

.tbl {
   font-size : 11px;
   color : #555;
   background-color : #fff;
   padding : 4px;
}

.tbl1 {
   font-size : 11px;
   color : #555;
   background-color : #fff;
   padding : 4px;
}

.tbl2 {
   font-size : 11px;
   color : #555;
   background-color : #f1f1f1;
   padding : 4px;
}

.forum-caption {
   font-size : 11px;
   font-weight : bold;
   color : #888;
   background-color : #f1f1f1;
   padding : 2px 4px 4px 4px;
}

.quote {
   font-size : 11px;
   color : #555;
   background-color : #f8f8f8;
   padding : 4px;
   margin : 0px 20px 0px 20px;
   border : 1px solid #bbb;
}

.poll {
   height : 12px;
   border : 1px solid #bbb;
}

.comment-name {
   font-weight : bold;
   color : #005599;
}

.shoutboxname {
   font-weight : bold;
   color : #005599;
   background-color : #f6f6f6;
}

.shoutbox {
   color : #777;
   background-color : #f6f6f6;
}

.shoutboxdate {
   font-size : 10px;
   color : #888;
   background-color : #f6f6f6;
}

.small {
   font-size : 10px;
   font-weight : normal;
}

.small2 {
   font-size : 10px;
   font-weight : normal;
   color : #555;
}

.side-small {
   font-size : 10px;
   font-weight : normal;
   color : #555;
   background-color : #f6f6f6;
}

.side-label {
   color : #555;
   background-color : #f1f1f1;
   padding : 2px 2px 3px 2px;
}

/* Vertical Navigation */

#navigation h2 {
   font-size: 10px;
   color : #555;
   background-color: #f1f1f1;
   margin: 0;
   padding: 4px;
}
   
#navigation ul {
   margin: 0;
   padding: 0;
   list-style-type: none;
}

* html #navigation ul li{
   height: 1%;
}

#navigation a {
   display: block;
   color: #005599;
   background-color: #f6f6f6;
   padding: 2px;
   text-decoration : none;
}

#navigation a:hover {
   color: #f6f6f6;
   background-color: #005599;
}

/* Page Navigation */

.pagenav {
   padding: 0.4em;
}

.pagenav span {
   color: #fff;
   background-color: #005599;
   border: 1px solid #e1e1e1;
   padding: 0.2em 0.4em 0.2em 0.4em;
   margin: 0.2em;
}

.pagenav a {
   color: #005599;
   background-color: #fff;
   border: 1px solid #e1e1e1;
   padding: 0.2em 0.4em 0.2em 0.4em;
   margin: 0.2em;
   text-decoration: none;
}

.pagenav a:hover {
   color: #fff;
   background-color: #005599;
   margin: 0.2em;
   text-decoration: none;
}




Parašė Use Google· 2010 Bir. 8 16:06:42
#28

Tikriausiai vel 2 paras reiks laukt pagalbos...

Parašė Use Google· 2010 Bir. 8 17:06:39
#29

Tikriausiai vel 2 paras reiks laukt pagalbos...

Parašė Use Google· 2010 Bir. 8 18:06:12
#30

Tikriausiai vel 2 paras reiks laukt pagalbos...

Parašė Use Google· 2010 Bir. 8 20:06:16
#31

Tikriausiai vel 2 paras reiks laukt pagalbos...

Parašė Use Google· 2010 Bir. 9 09:06:48
#32

Tikriausiai vel 2 paras reiks laukt pagalbos...

Parašė Use Google· 2010 Bir. 9 12:06:39
#33

Tikriausiai vel 2 paras reiks laukt pagalbos...

Parašė Use Google· 2010 Bir. 9 12:06:02
#34

Tikriausiai vel 2 paras reiks laukt pagalbos...

Parašė Use Google· 2010 Bir. 9 23:06:31
#35

Yra kodas:
if (iMEMBER) {
echo "<center>Sveikas, nary!";
} else {
echo "<a href='/login.php'>Prisijungti</a> | <a href='/register.php'>Registruotis</a></center>";
}

kai ji idedu i saita, meta klaida:

Parse error: syntax error, unexpected '>' in /home/tsmods/domains/public_html/themes/tema/theme.php on line 23


Kaip istaisyti? 23 eilute yra:
echo "<center>Sveikas, nary!";

Parašė Use Google· 2010 Bir. 9 23:06:19
#36

Yra kodas:
if (iMEMBER) {
echo "<center>Sveikas, nary!";
} else {
echo "<a href='/login.php'>Prisijungti</a> | <a href='/register.php'>Registruotis</a></center>";
}

kai ji idedu i saita, meta klaida:

Parse error: syntax error, unexpected '>' in /home/tsmods/domains/public_html/themes/tema/theme.php on line 23


Kaip istaisyti? 23 eilute yra:
echo "<center>Sveikas, nary!";

Parašė Auto Fanas· 2010 Bir. 9 23:06:17
#37

o tai po nary, kur center close tagas?

Parašė vagis· 2010 Bir. 10 08:06:30
#38

if (iMEMBER) {
echo "<center>Sveikas, nary!</center>";
} else {
echo "<center><a href='/login.php'>Prisijungti</a></center> | <center><a href='/register.php'>Registruotis</a></center>";
}



Mėgink :);)

Parašė Use Google· 2010 Bir. 10 10:06:02
#39

Tas pats... Nebesuprantu kur cia klaida gali but.

Parašė edeni· 2010 Bir. 10 10:06:46
#40

Parodyk prieš tai esamas eilutes.

Parašė Use Google· 2010 Bir. 10 10:06:50
#41


//Header
echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='outer-border center'>\n<tr>\n";
echo "<td>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\n<tr>\n";
echo "<td align='center' class='full-header'></td>\n";
echo "</tr>\n</table>\n";
echo "</td>\n</tr>\n</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='sub-header' align='center'>
if (iMEMBER) {
echo "<center>Sveikas, nary!</center>";
} else {
echo "<center><a href='/login.php'>Prisijungti</a></center> | <center><a href='/register.php'>Registruotis</a></center>";
}
\n<tr>\n";
echo "</tr>\n</table>\n";

Parašė edeni· 2010 Bir. 10 10:06:19
#42

echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='sub-header' align='center'>";
if (iMEMBER) {
echo "<center>Sveikas, nary!</center>";
} else {
echo "<center><a href='/login.php'>Prisijungti</a></center> | <center><a href='/register.php'>Registruotis</a></center>";
}
echo "\n<tr>\n";
echo "</tr>\n</table>\n";



Parašė Use Google· 2010 Rugp. 6 10:08:18
#43






Kazkas su PS atsitiko. Nemoku sutvarkyt... :(