Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,957
Naujausias narys: keistuole

Naujausi straipsniai

Paskutiniai nariai

keistuole 1 savaitė
Gizmis 2 savaitės
Reikalas 2 savaitės
Rytis12 savaitės
MaFetas16 savaitės
ozzWANTED17 savaitės
saulyzas19 savaitės
TOMIJUS21 savaitės
Jaunelis36 savaitės
lanis36 savaitės
And2s37 savaitės
Memento Mori42 savaitės
Quwqkibor44 savaitės
asirija48 savaitės
tomeem50 savaitės
weberiz53 savaitės
mRokass56 savaitės
kartoonas57 savaitės
grunskiz60 savaitės
Bruksnys60 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.149.236.120
Naujienų: 529
Straipsnių: 235
Temų: 52,589
Postų: 522,539
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.

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

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą š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
Readmore
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Expert PHP, MySQL klausimai

Autorius: Gugiss Peržiūrų: 2163      Spausdinti temą
2008 Bir. 1 20:06:36          1 žinutė iš 9
Spausdinti pranešimą
Sveikti neturintieji ką veikti sukūriau video.php failą pagal news.php bet man nerodo readmore. Jei galit peržiūrėkit kas ne taip. Fenk jū very mač.

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright &#194;© 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
include "menu.php";
require_once "side_left.php";

if (isset($readmore) && !isNum($readmore)) fallback(FUSION_SELF);

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

// This number should be an odd number to keep layout tidy
$items_per_page = 11;

if (!isset($readmore)) {
   $rows = dbcount("(video_id)", "video", groupaccess('video_visibility')." AND (video_start='0'||video_start<=".time().") AND (video_end='0'||video_end>=".time().")");
   if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
   if ($rows != 0) {
      $result = dbquery(
         "SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."video tn
         LEFT JOIN ".$db_prefix."users tu ON tn.video_name=tu.user_id
         LEFT JOIN ".$db_prefix."video_cats tc ON tn.video_cat=tc.video_cat_id
   WHERE ".groupaccess('video_visibility')." AND (video_start='0'||video_start<=".time().") AND (video_end='0'||video_end>=".time().")
         ORDER BY video_sticky DESC, video_datestamp DESC LIMIT $rowstart,$items_per_page"
      );      
      $numrows = dbrows($result);
      if ($settings['video_style'] == "1") $nrows = round((dbrows($result) - 1) / 2);
      while ($data = dbarray($result)) {
         $video_cat_image = "";
         $video_subject = "<a name='video_".$data['video_id']."' id='video_".$data['video_id']."'></a>".stripslashes($data['video_subject']);


         $video_news = $data['video_breaks'] == "y" ? nl2br(parsesmileys(stripslashes($data['video_news']))) : parsesmileys(stripslashes($data['video_news']));
         if ($video_cat_image != "") $video_news = $video_cat_image.$video_news;
         $video_info = array(
            "video_id" => $data['video_id'],
            "user_id" => $data['user_id'],
            "kategorija" => $data['video_cat_name'],
            "user_name" => $data['user_name'],
            "video_date" => $data['video_datestamp'],
            "video_ext" => $data['video_extended'] ? "y" : "n",
            "video_reads" => $data['video_reads'],
            "video_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['video_id']."'"),
            "video_allow_comments" => $data['video_allow_comments']
         );
         if ($settings['video_style'] == "1") {
            if ($rows <= 2 || $ncount == 1) {
               $video_[0] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
               $video_[0] .= "<tr>\n<td class='tbl2'><b>$video_subject</b></td>\n</tr>\n";
               $video_[0] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$video_news</td>\n</tr>\n";
               $video_[0] .= "<tr>\n<td align='center' class='tbl2'>\n";
               if (checkrights("N")) $video_[0] .= "<form name='editvideo".$video_info['video_id']."' method='post' action='".ADMIN."video.php".$aidlink."&amp;video_id=".$video_info['video_id']."'>\n";
               $video_[0] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$video_info['user_id']."'>".$video_info['user_name']."</a> ".$locale['041'].showdate("longdate", $video_info['video_date'])." &middot;\n";
               if ($video_info['video_ext'] == "y" || $video_info['video_allow_comments']) {
                  $video_[0] .= $video_info['video_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$video_info['video_id']."'><b>TOLIAU</b></a> &middot;\n" : "";
                  $video_[0] .= $video_info['video_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$video_info['video_id']."'>".$video_info['video_comments'].$locale['043']."</a> &middot;\n" : "";
                  $video_[0] .= $video_info['video_reads'].$locale['044']." &middot;\n";
               }
               $video_[0] .= "<a href='print.php?type=N&amp;item_id=".$video_info['video_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>";
               if (checkrights("N")) { $video_[0] .= " &middot; <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$video_info['video_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $video_[0] .= "</span>\n"; }
               $video_[0] .= "</td>\n</tr>\n</table>\n";
               if ($ncount != $rows) $video_[0] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
            } else {
               if ($i == $nrows && $ncolumn != 2) { $ncolumn = 2; $i = 0; }
               $row_color = ($rc % 2 == 0 ? "tbl2" : "tbl1");
               $video_[$ncolumn] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
               $video_[$ncolumn] .= "<tr>\n<td class='tbl2'><b>$video_subject</b></td>\n</tr>\n";
               $video_[$ncolumn] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$video_news</td>\n</tr>\n";
               $video_[$ncolumn] .= "<tr>\n<td align='center' class='tbl2'>\n";
               if (checkrights("N")) $video_[$ncolumn] .= "<form name='editvideo".$video_info['video_id']."' method='post' action='".ADMIN."video.php".$aidlink."&amp;video_id=".$video_info['video_id']."'>\n";
               $video_[$ncolumn] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$video_info['user_id']."'>".$video_info['user_name']."</a> ".$locale['041'].showdate("longdate", $video_info['video_date']);
               if ($video_info['video_ext'] == "y" || $video_info['video_allow_comments']) {
                  $video_[$ncolumn] .= "<br>\n";
                  $video_[$ncolumn] .= $video_info['video_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$video_info['video_id']."'>".$locale['042']."</a> &middot;\n" : "";
                  $video_[$ncolumn] .= $video_info['video_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$video_info['video_id']."'>".$video_info['video_comments'].$locale['043']."</a> &middot;\n" : "";
                  $video_[$ncolumn] .= $video_info['video_reads'].$locale['044']." &middot;\n";
               } else {
                  $video_[$ncolumn] .= " &middot;\n";
               }
               $video_[$ncolumn] .= "<a href='print.php?type=N&amp;item_id=".$video_info['video_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>\n";
               if (checkrights("N")) { $video_[$ncolumn] .= " &middot; <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$video_info['video_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $video_[$ncolumn] .= "</span>\n"; }
               $video_[$ncolumn] .= "</td>\n</tr>\n</table>\n";
               if ($ncolumn == 1 && $i < ($nrows - 1)) $video_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
               if ($ncolumn == 2 && $i < (dbrows($result) - $nrows - 2)) $video_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
               $i++; $rc++;
            }
            $ncount++;
         } else {
            render_news($video_subject, $video_news, $video_info);
            if ($i != $numrows) { tablebreak(); } $i++;
         }
      }
      if ($settings['video_style'] == "1") {
         opentable($locale['046']);
         echo "<table cellpadding='0' cellspacing='0' style='width:100%'>\n<tr>\n<td colspan='3' style='width:100%'>\n";
         echo $video_[0];
         echo "</td>\n</tr>\n<tr>\n<td style='width:50%;vertical-align:top;'>\n";
         echo $video_[1];
         echo "</td>\n<td style='width:10px'><img src='".THEME."images/blank.gif' alt='' width='10' height='1'></td>\n<td style='width:50%;vertical-align:top;'>\n";
         echo $video_[2];
         echo "</td>\n</tr>\n</table>\n";
         closetable();
      }
      if ($rows > $items_per_page) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$items_per_page,$rows,3)."\n</div>\n";
   } else {
      opentable($locale['046']);
      echo "<center><br>\n".$locale['047']."<br><br>\n</center>\n";
      closetable();
   }
} else {
   include INCLUDES."comments_include.php";
   include INCLUDES."ratings_include.php";
   $result = dbquery(
      "SELECT tn.*, user_id, user_name FROM ".$db_prefix."video tn
      LEFT JOIN ".$db_prefix."users tu ON tn.video_name=tu.user_id
      WHERE video_id='$readmore'"
   );
   if (dbrows($result)!=0) {
      $data = dbarray($result);
      if (checkgroup($data['video_visibility'])) {
         $video_cat_image = "";
         if (!isset($_POST['post_comment']) && !isset($_POST['post_rating'])) {
             $result2 = dbquery("UPDATE ".$db_prefix."video SET video_reads=video_reads+1 WHERE video_id='$readmore'");
             $data['video_reads']++;
         }
         $video_subject = $data['video_subject'];
         if ($data['video_cat'] != 0) {
            $result2 = dbquery("SELECT * FROM ".$db_prefix."video_cats WHERE video_cat_id='".$data['video_cat']."'");
            if (dbrows($result2)) {
               $data2 = dbarray($result2);
               $video_cat_image = "<a href='video_cats.php?cat_id=".$data2['video_cat_id']."'><img src='".IMAGES_NC.$data2['video_cat_image']."' alt='".$data2['video_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";
            }
         }
         $video_news = parsesmileys(stripslashes($data['video_extended'] ? $data['video_extended'] : $data['video_news']));
         if ($data['video_breaks'] == "y") { $video_news = nl2br($video_news); }
         if ($video_cat_image != "") $video_news = $video_cat_image.$video_news;
         $video_info = array(
            "video_id" => $data['video_id'],
            "user_id" => $data['user_id'],
            "kategorija" => $data2['video_cat_name'],
            "user_name" => $data['user_name'],
            "video_date" => $data['video_datestamp'],
            "video_ext" => "n",
            "video_reads" => $data['video_reads'],
            "video_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['video_id']."'"),
            "video_allow_comments" => $data['video_allow_comments']
         );
         render_news($video_subject, $video_news, $video_info);
         if ($data['video_allow_comments']) showcomments("N","video","video_id",$readmore,FUSION_SELF."?readmore=$readmore");
         if ($data['video_allow_ratings']) showratings("N",$readmore,FUSION_SELF."?readmore=$readmore");
      } else {
         redirect(FUSION_SELF);
      }
   } else {
      redirect(FUSION_SELF);
   }
}

require_once "side_right.php";
require_once "footer.php";
?>




MMOG.lt - atrask naują pasaulį
2008 Bir. 1 20:06:03          2 žinutė iš 9
Spausdinti pranešimą
kaip suprast nerodo readmore?

2008 Bir. 1 20:06:16          3 žinutė iš 9
Spausdinti pranešimą
Rodo tik skaityta ir printerio ženkliuką. Nerodo nei Skaityti daugiau, nei komentarų skaičiaus. Kapiš?

EDIT: Numanau, kad čia dar reikia krapštyt theme.php galvoja bet kaip krapštyt tai bbž galvoja

MMOG.lt - atrask naują pasaulį
Redagavo Gugiss 2008 Bir. 1 20:06:17
2008 Bir. 1 20:06:54          4 žinutė iš 9
Spausdinti pranešimą
Tikriausiai kažkas užklausose.
2008 Bir. 1 21:06:36          5 žinutė iš 9
Spausdinti pranešimą
cia kazkas del $video_extended krw nixuja nesusigaudau. Liuk hier ply:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright &#194;© 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
include "menu.php";
require_once "side_left.php";

if (isset($readmore) && !isNum($readmore)) fallback(FUSION_SELF);

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

// This number should be an odd number to keep layout tidy
$items_per_page = 11;

if (!isset($readmore)) {
   $rows = dbcount("(video_id)", "video", groupaccess('video_visibility')." AND (video_start='0'||video_start<=".time().") AND (video_end='0'||video_end>=".time().")");
   if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
   if ($rows != 0) {
      $result = dbquery(
         "SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."video tn
         LEFT JOIN ".$db_prefix."users tu ON tn.video_name=tu.user_id
         LEFT JOIN ".$db_prefix."video_cats tc ON tn.video_cat=tc.video_cat_id
   WHERE ".groupaccess('video_visibility')." AND (video_start='0'||video_start<=".time().") AND (video_end='0'||video_end>=".time().")
         ORDER BY video_sticky DESC, video_datestamp DESC LIMIT $rowstart,$items_per_page"
      );      
      $numrows = dbrows($result);
      if ($settings['video_style'] == "1") $nrows = round((dbrows($result) - 1) / 2);
      while ($data = dbarray($result)) {
         $video_cat_image = "";
         $video_subject = "<a name='video_".$data['video_id']."' id='video_".$data['video_id']."'></a>".stripslashes($data['video_subject']);


         $video_news = $data['video_breaks'] == "y" ? nl2br(parsesmileys(stripslashes($data['video_news']))) : parsesmileys(stripslashes($data['video_news']));
         if ($video_cat_image != "") $video_news = $video_cat_image.$video_news;
         $video_info = array(
            "video_id" => $data['video_id'],
            "user_id" => $data['user_id'],
            "kategorija" => $data['video_cat_name'],
            "user_name" => $data['user_name'],
            "video_date" => $data['video_datestamp'],
            "video_ext" => $data['video_extended'] ? "y" : "n",
            "video_reads" => $data['video_reads'],
            "video_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['video_id']."'"),
            "video_allow_comments" => $data['video_allow_comments']
         );
         if ($settings['video_style'] == "1") {
            if ($rows <= 2 || $ncount == 1) {
               $video_[0] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
               $video_[0] .= "<tr>\n<td class='tbl2'><b>$video_subject</b></td>\n</tr>\n";
               $video_[0] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$video_news</td>\n</tr>\n";
               $video_[0] .= "<tr>\n<td align='center' class='tbl2'>\n";
               if (checkrights("V")) $video_[0] .= "<form name='editvideo".$video_info['video_id']."' method='post' action='".ADMIN."video.php".$aidlink."&amp;video_id=".$video_info['video_id']."'>\n";
               $video_[0] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$video_info['user_id']."'>".$video_info['user_name']."</a> ".$locale['041'].showdate("longdate", $video_info['video_date'])." &middot;\n";
               if ($video_info['video_ext'] == "n" || $video_info['video_allow_comments']) {
                  $video_[0] .= $video_info['video_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$video_info['video_id']."'><b>TOLIAU</b></a> &middot;\n" : "";
                  $video_[0] .= $video_info['video_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$video_info['video_id']."'>".$video_info['video_comments'].$locale['043']."</a> &middot;\n" : "";
                  $video_[0] .= $video_info['video_reads'].$locale['044']." &middot;\n";
               }
               $video_[0] .= "<a href='print.php?type=N&amp;item_id=".$video_info['video_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>";
               if (checkrights("V")) { $video_[0] .= " &middot; <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$video_info['video_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $video_[0] .= "</span>\n"; }
               $video_[0] .= "</td>\n</tr>\n</table>\n";
               if ($ncount != $rows) $video_[0] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
            } else {
               if ($i == $nrows && $ncolumn != 2) { $ncolumn = 2; $i = 0; }
               $row_color = ($rc % 2 == 0 ? "tbl2" : "tbl1");
               $video_[$ncolumn] .= "<table width='100%' cellpadding='0' cellspacing='0'>\n";
               $video_[$ncolumn] .= "<tr>\n<td class='tbl2'><b>$video_subject</b></td>\n</tr>\n";
               $video_[$ncolumn] .= "<tr>\n<td class='tbl1' style='text-align:justify'>$video_news</td>\n</tr>\n";
               $video_[$ncolumn] .= "<tr>\n<td align='center' class='tbl2'>\n";
               if (checkrights("V")) $video_[$ncolumn] .= "<form name='editvideo".$video_info['video_id']."' method='post' action='".ADMIN."video.php".$aidlink."&amp;video_id=".$video_info['video_id']."'>\n";
               $video_[$ncolumn] .= "<span class='small2'><img src='".THEME."images/bullet.gif' alt=''> <a href='profile.php?lookup=".$video_info['user_id']."'>".$video_info['user_name']."</a> ".$locale['041'].showdate("longdate", $video_info['video_date']);
               if ($video_info['video_ext'] == "n" || $video_info['video_allow_comments']) {
                  $video_[$ncolumn] .= "<br>\n";
                  $video_[$ncolumn] .= $video_info['video_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$video_info['video_id']."'>".$locale['042']."</a> &middot;\n" : "";
                  $video_[$ncolumn] .= $video_info['video_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$video_info['video_id']."'>".$video_info['video_comments'].$locale['043']."</a> &middot;\n" : "";
                  $video_[$ncolumn] .= $video_info['video_reads'].$locale['044']." &middot;\n";
               } else {
                  $video_[$ncolumn] .= " &middot;\n";
               }
               $video_[$ncolumn] .= "<a href='print.php?type=N&amp;item_id=".$video_info['video_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='border:0px;vertical-align:middle;'></a>\n";
               if (checkrights("V")) { $video_[$ncolumn] .= " &middot; <input type='hidden' name='edit' value='edit'><a href='javascript:document.editnews".$video_info['video_id'].".submit();'><img src='".IMAGES."edit.gif' alt='".$locale['048']."' title='".$locale['048']."' style='vertical-align:middle;border:0px;'></a></span>\n</form>\n"; } else { $video_[$ncolumn] .= "</span>\n"; }
               $video_[$ncolumn] .= "</td>\n</tr>\n</table>\n";
               if ($ncolumn == 1 && $i < ($nrows - 1)) $video_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
               if ($ncolumn == 2 && $i < (dbrows($result) - $nrows - 2)) $video_[$ncolumn] .= "<div><img src='".THEME."images/blank.gif' alt='' width='1' height='8'></div>\n";
               $i++; $rc++;
            }
            $ncount++;
         } else {
            render_news($video_subject, $video_news, $video_info);
            if ($i != $numrows) { tablebreak(); } $i++;
         }
      }
      if ($settings['video_style'] == "1") {
         opentable($locale['046']);
         echo "<table cellpadding='0' cellspacing='0' style='width:100%'>\n<tr>\n<td colspan='3' style='width:100%'>\n";
         echo $video_[0];
         echo "</td>\n</tr>\n<tr>\n<td style='width:50%;vertical-align:top;'>\n";
         echo $video_[1];
         echo "</td>\n<td style='width:10px'><img src='".THEME."images/blank.gif' alt='' width='10' height='1'></td>\n<td style='width:50%;vertical-align:top;'>\n";
         echo $video_[2];
         echo "</td>\n</tr>\n</table>\n";
         closetable();
      }
      if ($rows > $items_per_page) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$items_per_page,$rows,3)."\n</div>\n";
   } else {
      opentable($locale['046']);
      echo "<center><br>\n".$locale['047']."<br><br>\n</center>\n";
      closetable();
   }
} else {
   include INCLUDES."comments_include.php";
   include INCLUDES."ratings_include.php";
   $result = dbquery(
      "SELECT tn.*, user_id, user_name FROM ".$db_prefix."video tn
      LEFT JOIN ".$db_prefix."users tu ON tn.video_name=tu.user_id
      WHERE video_id='$readmore'"
   );
   if (dbrows($result)!=0) {
      $data = dbarray($result);
      if (checkgroup($data['video_visibility'])) {
         $video_cat_image = "";
         if (!isset($_POST['post_comment']) && !isset($_POST['post_rating'])) {
             $result2 = dbquery("UPDATE ".$db_prefix."video SET video_reads=video_reads+1 WHERE video_id='$readmore'");
             $data['video_reads']++;
         }
         $video_subject = $data['video_subject'];
         if ($data['video_cat'] != 0) {
            $result2 = dbquery("SELECT * FROM ".$db_prefix."video_cats WHERE video_cat_id='".$data['video_cat']."'");
            if (dbrows($result2)) {
               $data2 = dbarray($result2);
               $video_cat_image = "<a href='video_cats.php?cat_id=".$data2['video_cat_id']."'><img src='".IMAGES_NC.$data2['video_cat_image']."' alt='".$data2['video_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";
            }
         }
         $video_news = parsesmileys(stripslashes($data['video_extended'] ? $data['video_extended'] : $data['video_news']));
         if ($data['video_breaks'] == "y") { $video_news = nl2br($video_news); }
         if ($video_cat_image != "") $video_news = $video_cat_image.$video_news;
         $video_info = array(
            "video_id" => $data['video_id'],
            "user_id" => $data['user_id'],
            "kategorija" => $data2['video_cat_name'],
            "user_name" => $data['user_name'],
            "video_date" => $data['video_datestamp'],
            "video_ext" => "y",
            "video_reads" => $data['video_reads'],
            "video_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['video_id']."'"),
            "video_allow_comments" => $data['video_allow_comments']
         );
         render_news($video_subject, $video_news, $video_info);
         if ($data['video_allow_comments']) showcomments("V","video","video_id",$readmore,FUSION_SELF."?readmore=$readmore");
         if ($data['video_allow_ratings']) showratings("V",$readmore,FUSION_SELF."?readmore=$readmore");
      } else {
         redirect(FUSION_SELF);
      }
   } else {
      redirect(FUSION_SELF);
   }
}

require_once "side_right.php";
require_once "footer.php";
?>




End hier:

<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| Author: Nick Jones (Digitanium) © 2002-2006 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
| ADW RoelPlayX Theme for PHP-Fusion v6       |
|---------------------------------------------|
| Author: Amilla Dee Webdesign © 2006         |
| web: http://amilladee.dk                    |
| email: webmaster@amilladee.dk               |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/

// theme settings
$body_text = "#000000";
$body_bg = "#232F2F";
$theme_width = "800";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width,$settings,$locale;


echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #af9669 solid;'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:0px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='800' height='206' id='FLASH/4' align='middle'>
   <param name='allowScriptAccess' value='sameDomain' />
   <param name='allowFullScreen' value='false' />
   <param name='movie' value='http://mmo.xz.lt/themes/MMORPG WORLD/images/header.swf' /><param name='quality' value='high'/><param name='bgcolor' value='#232f2f' />   <embed src='http://mmo.xz.lt/themes/MMORPG WORLD/images/header.swf' quality='high' bgcolor='#232f2f' width='800' height='206' name='MMORPG WORLD' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />
   </object>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>
<td class='white-header'>\n";


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

}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='table_white'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='table_full'>
Apsilankymø: ".$settings['counter']."<br>\n";
if ($license == false) {echo "Varikliukas: <a href='http://www.php-fusion.co.uk' target='_blank' class='footer'>PHP-Fusion</a>\n";}
echo "</td>\n</tr>
</table>
</td>
</tr>
</table>\n";
}


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

global $locale;

echo "<table width='100%' cellpadding='0' cellspacing='0' class='newsborder'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='newscapmain'>$subject</td>
</tr>
<tr>
<td class='news-profile'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<a href='naujienos.php?skaityti=".$info['news_id']."'>".$locale['042']."</a> ·\n";
if ($info['news_allow_comments']) echo "<a href='naujienos.php?skaityti=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $locale;

echo "<table width='100%' cellpadding='0' cellspacing='0' class='newsborder'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='newscapmain'>$subject</td>
</tr>
<tr>
<td class='news-profile'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['video_date'])."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align='right' class='news-footer'>\n";
if ($info['video_ext'] == "y") echo "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
if ($info['video_allow_comments']) echo "<a href='naujienos.php?skaityti=".$info['video_id']."'>".$info['video_comments'].$locale['043']."</a> ·\n";
echo $info['video_reads'].$locale['044']."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $locale;

echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject ".$info['kategorija']."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</td>
<td align='right' class='news-footer'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function opentable($title) {

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

}

function closetable() {

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

}

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

}

function closeside() {

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

}

function opensidex($title,$open="on") {

if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";

}

function closesidex() {

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

}

function tablebreak() {

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

}
?>




MMOG.lt - atrask naują pasaulį
Redagavo Gugiss 2008 Bir. 1 21:06:03
2008 Bir. 1 21:06:20          6 žinutė iš 9
Spausdinti pranešimą
Še.
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| Author: Nick Jones (Digitanium) © 2002-2006 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
| ADW RoelPlayX Theme for PHP-Fusion v6       |
|---------------------------------------------|
| Author: Amilla Dee Webdesign © 2006         |
| web: http://amilladee.dk                    |
| email: webmaster@amilladee.dk               |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/

// theme settings
$body_text = "#000000";
$body_bg = "#232F2F";
$theme_width = "800";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width,$settings,$locale;


echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:1px #af9669 solid;'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:0px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='800' height='206' id='FLASH/4' align='middle'>
   <param name='allowScriptAccess' value='sameDomain' />
   <param name='allowFullScreen' value='false' />
   <param name='movie' value='http://mmo.xz.lt/themes/MMORPG WORLD/images/header.swf' /><param name='quality' value='high'/><param name='bgcolor' value='#232f2f' />   <embed src='http://mmo.xz.lt/themes/MMORPG WORLD/images/header.swf' quality='high' bgcolor='#232f2f' width='800' height='206' name='MMORPG WORLD' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />
   </object>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>
<td class='white-header'>\n";


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

}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='table_white'>".stripslashes($settings['footer'])."</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='left' class='table_full'>
Apsilankymø: ".$settings['counter']."<br>\n";
if ($license == false) {echo "Varikliukas: <a href='http://www.php-fusion.co.uk' target='_blank' class='footer'>PHP-Fusion</a>\n";}
echo "</td>\n</tr>
</table>
</td>
</tr>
</table>\n";
}


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

global $locale;

echo "<table width='100%' cellpadding='0' cellspacing='0' class='newsborder'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='newscapmain'>$subject</td>
</tr>
<tr>
<td class='news-profile'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align='right' class='news-footer'>\n";
if ($info['news_ext'] == "y") echo "<a href='naujienos.php?skaityti=".$info['news_id']."'>".$locale['042']."</a> ·\n";
if ($info['news_allow_comments']) echo "<a href='naujienos.php?skaityti=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
echo $info['news_reads'].$locale['044']."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $locale;

echo "<table width='100%' cellpadding='0' cellspacing='0' class='newsborder'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='newscapmain'>$subject</td>
</tr>
<tr>
<td class='news-profile'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['video_date'])."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
$news
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td align='right' class='news-footer'>\n";
echo "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
echo "<a href='naujienos.php?skaityti=".$info['video_id']."'>".$info['video_comments'].$locale['043']."</a> ·\n";
echo $info['video_reads'].$locale['044']."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $locale;

echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject ".$info['kategorija']."</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='news-footer'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."</td>
<td align='right' class='news-footer'>\n";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
echo $info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function opentable($title) {

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

}

function closetable() {

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

}

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

}

function closeside() {

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

}

function opensidex($title,$open="on") {

if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-body'>
<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";

}

function closesidex() {

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

}

function tablebreak() {

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

}
?>






2008 Bir. 1 21:06:25          7 žinutė iš 9
Spausdinti pranešimą
Tas pats š be žado

MMOG.lt - atrask naują pasaulį
2008 Bir. 1 21:06:18          8 žinutė iš 9
Spausdinti pranešimą
Parodyk kas ten blogai. O tu keitei mysql lentelių pavadinimus?

2008 Bir. 1 21:06:01          9 žinutė iš 9
Spausdinti pranešimą
OMFG koks aš bukas nepakeičiau render_news į render_video drovus Dėkui už sugaištą laikąmerkia akį

MMOG.lt - atrask naują pasaulį
Peršokti į forumą: