Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,952
Naujausias narys: tomeem

Naujausi straipsniai

Paskutiniai nariai

asirija 5 dienos
tomeem 2 savaitės
Reikalas 3 savaitės
weberiz 6 savaitės
mRokass 8 savaitės
kartoonas 9 savaitės
iaescortsmap 9 savaitės
ozzWANTED10 savaitės
grunskiz12 savaitės
Bruksnys12 savaitės
illusion12 savaitės
ordo13 savaitės
Jurgaila14 savaitės
originalcs1614 savaitės
Rytis15 savaitės
halis16 savaitės
junkus19 savaitės
morlis19 savaitės
Majakas21 savaitės
andsoft22 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 52.14.240.178
Naujienų: 529
Straipsnių: 235
Temų: 52,585
Postų: 522,523
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
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.

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Žmogus
2023 Rugs. 7 21:09:14
O gal BloodKiller pasijungs?

Apocal
2023 Rugs. 2 18:09:23
Nu davai nuveikiam kažką akinanti šypsen. Prisijungti kada visi čia akinanti šypsen.

Apocal
2023 Rugs. 2 00:09:18
Šiaip atėjau pažiūrėti ar dar lopas nesby yra ar koks ten buvo.

Š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
v7: Naujas klausimas!!! | UseGoogle klausimai
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: Use Google Peržiūrų: 5363      Spausdinti temą
2010 Geg. 11 21:05:29          1 žinutė iš 32
Spausdinti pranešimą
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";

}
?>





31 atsakymas:
2010 Geg. 11 21:05:18          2 žinutė iš 32
Spausdinti pranešimą
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";


0


www.smilez360.com
www.thevideowars.com
www.pigiau.biz
2010 Geg. 11 22:05:27          3 žinutė iš 32
Spausdinti pranešimą
Tik tekstas susicentruoja, o pats blokas nejuda is vietos.
0

2010 Geg. 11 22:05:59          4 žinutė iš 32
Spausdinti pranešimą
//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.
0


http://androider.info/
2010 Geg. 12 16:05:06          5 žinutė iš 32
Spausdinti pranešimą
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";

}
?>


0


2010 Geg. 12 17:05:50          6 žinutė iš 32
Spausdinti pranešimą
Tai gal pats headeris nupieštas per mažas??? drovus
0


2010 Geg. 12 17:05:19          7 žinutė iš 32
Spausdinti pranešimą
Emighty parašė:
Tai gal pats headeris nupieštas per mažas??? drovus

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

2010 Geg. 12 17:05:05          8 žinutė iš 32
Spausdinti pranešimą
Tai tada keisk...
define("THEME_WIDTH", "800px");


0



Redagavo citni 2010 Geg. 12 17:05:07
2010 Geg. 12 17:05:46          9 žinutė iš 32
Spausdinti pranešimą
Emighty parašė:
Tai tada keisk...
define("THEME_WIDTH", "800px");



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

2010 Geg. 13 18:05:18          10 žinutė iš 32
Spausdinti pranešimą
Support'as vadinas...
0

2010 Geg. 13 18:05:30          11 žinutė iš 32
Spausdinti pranešimą
nes sudo klausi o css ziurejai, redaguot bandei? pats aiskinaisi ar cia tik sedi ir padarykit uz mane.....
0


www.smilez360.com
www.thevideowars.com
www.pigiau.biz
2010 Geg. 13 21:05:18          12 žinutė iš 32
Spausdinti pranešimą
Jei sudo klausiu, tai ko nepadedi? Jeigu mokeciau ir zinociau kame pautai nesedeciau cia šypsosi
0

2010 Geg. 14 18:05:03          13 žinutė iš 32
Spausdinti pranešimą
neturiu laiko niekais uzsiimineti, + kai pats gali issiaiskint ir pasidaryt, ar tingi? gal uz tave ir saita padaryt?
0


www.smilez360.com
www.thevideowars.com
www.pigiau.biz
2010 Geg. 14 18:05:31          14 žinutė iš 32
Spausdinti pranešimą
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.
0

2010 Geg. 14 18:05:19          15 žinutė iš 32
Spausdinti pranešimą
O jeigu tarkim padarai vietoj 800px 900px, tai praplatėja vienodai ir headeris ir turinys, ar irgi lieka headeris mažesnis?
0


www.creatium.lt
2010 Geg. 14 18:05:58          16 žinutė iš 32
Spausdinti pranešimą
Isplateja abu. Ir headeris ir turinys.
0

2010 Geg. 14 18:05:54          17 žinutė iš 32
Spausdinti pranešimą
Man šita vieta įdomi:

class='$main_style center'

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


www.creatium.lt
2010 Geg. 14 18:05:00          18 žinutė iš 32
Spausdinti pranešimą
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";

}


0


http://itouch.lt - iBendruomenė.
2010 Geg. 14 19:05:40          19 žinutė iš 32
Spausdinti pranešimą
rodyk css geriau .
0


www.smilez360.com
www.thevideowars.com
www.pigiau.biz
2010 Geg. 14 19:05:55          20 žinutė iš 32
Spausdinti pranešimą
webzlt svaigsti ir nejauti
0


http://Online-Tv.LT
Koduoju Php-Fusion dizainus
2010 Geg. 14 23:05:38          21 žinutė iš 32
Spausdinti pranešimą
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";
?>


0


2010 Geg. 14 23:05:12          22 žinutė iš 32
Spausdinti pranešimą
Zeck parašė:
webzlt svaigsti ir nejauti



as bent jau zinau ka kalbukietas prie ko cia news.php ? css
0


www.smilez360.com
www.thevideowars.com
www.pigiau.biz
2010 Geg. 14 23:05:44          23 žinutė iš 32
Spausdinti pranešimą
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;
}



0

2010 Geg. 15 10:05:39          24 žinutė iš 32
Spausdinti pranešimą
Pamėgink padaryt ta ką aš viršuje parodžiau.
0


http://itouch.lt - iBendruomenė.
2010 Geg. 15 11:05:09          25 žinutė iš 32
Spausdinti pranešimą
Jop, Goku variantas tau tikrai padės. Tame problema ir buvo.
0


www.creatium.lt
2010 Bir. 9 23:06:19          26 žinutė iš 32
Spausdinti pranešimą
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!";
0

2010 Bir. 10 08:06:30          27 žinutė iš 32
Spausdinti pranešimą
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 šypsosi
0


vagis
2010 Bir. 10 10:06:02          28 žinutė iš 32
Spausdinti pranešimą
Tas pats... Nebesuprantu kur cia klaida gali but.
0

2010 Bir. 10 10:06:46          29 žinutė iš 32
Spausdinti pranešimą
Parodyk prieš tai esamas eilutes.
0


http://itouch.lt - iBendruomenė.
2010 Bir. 10 10:06:50          30 žinutė iš 32
Spausdinti pranešimą

//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";
0

2010 Bir. 10 10:06:19          31 žinutė iš 32
Spausdinti pranešimą
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";


0


http://itouch.lt - iBendruomenė.
2010 Rugp. 6 10:08:18          32 žinutė iš 32
Spausdinti pranešimą





Kazkas su PS atsitiko. Nemoku sutvarkyt... žliumbia
0


Peršokti į forumą: