Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Nesusikuria Puslapiai (PLZ HELP)

Parašė tomas710· 2011 Kov. 26 21:03:01
#1

Sveiki, turiu siokia tokia beda. Man nesusikuria puslapiai nu kaip buna. Naujienos kokos 5 ir idedi 6 susikuria jau kitas puslapis. Tai va idedu 16 filmuku nors pas mane nustatyta kad 15 galimi puslapyje. Ir nzn kur ka nustatyti pas mane skaito filmai.php.

Idesiu filmai.php ir theme.php gal ten kaskas negerai.

filmai.php


<?php
require_once "maincore.php";
require_once THEMES."templates/header.php";
echo"<script type='text/javascript' src='".INCLUDES."title.js'></script>";
?>
<style type="text/css">
 
tooltip {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	position: absolute;
	z-index: 3000;
	/*border: 1px solid #111;*/
	background-color: #000;
	padding: 100px;
 
}
 
tooltip h3, #tooltip div { margin: 0;  }
 
div#qTip {
 padding: 1000px;
 border: 0px solid #666;
 display: none;
 background: #000;
 color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
 text-align: left;
 position: absolute;
 z-index: 3000;
 
</style>
<?php
 
 
 $items_per_page = 16;
 
 
  if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { 
  $_GET['rowstart'] = 0; 
}
 
 $rows = dbcount("(*)", DB_NEWS, "news_draft='4'");	
//opentable("");
 
	 //$result = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 0,4");
$result = dbquery(
    "SELECT * FROM ".DB_NEWS." 
     WHERE news_draft='0' ORDER BY news_datestamp DESC 
     LIMIT ".$_GET['rowstart'].",$items_per_page"
 );
 
 
if (dbrows($result) != 0) {
		$counter = 0; $columns = 4;
		echo"<table cellpadding='0' cellspacing='0' width='100%' style='padding:10px;'>\n<tr>\n";
while($data = dbarray($result)) {
//$kat = dbresult(dbquery("SELECT download_cat_name FROM ".$db_prefix."download_cats WHERE download_cat_id='$id'"), 0);
if ($counter != 0 && ($counter % $columns == 0)) { echo "</tr>\n<tr>\n"; }
 
				$wynik = dbquery("SELECT SUM(rating_vote) FROM ".DB_RATINGS." WHERE rating_type='N' AND rating_item_id='".$data['news_id']."'");
                $info2 = dbresult($wynik,0);
                $num_rating = dbcount("(rating_vote)", DB_RATINGS, "rating_type='N' AND rating_item_id='".$data['news_id']."'");
                $wyn_rating = ($num_rating ? $info2 / $num_rating : 0);
$komentarai = dbcount("(comment_id)", DB_COMMENTS, "comment_type='N' AND comment_item_id='".$data['news_id']."' AND comment_hidden='0'");
	// $tas = trimlink($data['news_news'], 600);
	 $tas = $data['news_breaks'] == "y" ? nl2br(stripslashes($data['news_news'])) : stripslashes($data['news_news']);
 
echo"<td  style='padding:5px;'>";
 
	echo "<table cellpadding='0' cellspacing='0' width='150' class='borderis' onmouseover=\"className='borderis2'\" onmouseout=\"className='borderis'\">\n<tr>\n";
 
	echo"<td colspan='2' align='center'><a href='/news.php?readmore=".$data['news_id']."' tit='<table width=320px><tr><td class=c>
<b><span style=color:#0099FF;font-size:15px;>".$data['news_subject']."</span></b><br>$tas<br>
<b>&#381;i&#363;r&#279;jo: ".$data['news_reads']."</b>
 
</td></tr>
</table>'><img src='".IMAGES_N.$data['news_image']."' width='150' height='210' /></a></td>";
 
	echo"</tr>
	<td width='105' style='padding:2px;'><img src='".THEME."images/retitingai/".ceil($wyn_rating).".png' width='80' height='13' alt='".ceil($wyn_rating)."' style='vertical-align:middle;' title='".ceil($wyn_rating)."' /></td>
	<td class='c' align='right'><a href='/news.php?readmore=".$data['news_id']."'>&#381;i&#363;r&#279;ti</a></td>
	</tr>";
 
	echo"</table>";	
 
 
 
echo "</td>\n" ;
$counter++;
}
echo "</tr>\n</table>\n";
 
}
 
 
//closetable();	
echo"<div align='center'>";
if ($rows > $items_per_page) {
    echo makepagenav($_GET['rowstart'], $items_per_page, $rows, 4);
}
 
require_once THEMES."templates/footer.php";
 
?>








theme.php


<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
define("THEME_WIDTH", "1034");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
 
require_once INCLUDES."theme_functions_include.php";
 
require_once THEME."kodas/script.php";
 
function render_page($license=false) {
 
	global $settings, $main_style, $db_prefix ,$data, $userdata, $aidlink, $user_data, $locale;
 
	//Header
	echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
	echo "<td>\n";
 
echo"<div id='header'>";
 
	echo"<div id='logo'><a href='".BASEDIR."index.php'><img src='".THEME."images/logo.png' /></a></div>";
 
	include THEME."kodas/user.php";
 
	include THEME."kodas/paieska.php";
 
	echo"<div id='nav' class='sub-header'>".showsublinks("", "white")."</div>";
 
	include THEME."kodas/slide.php";
 
	//Kateogorijos
		echo"<div id='fb'>";?>
		<iframe src="http://www.animebaze.ipp.lt/viewpage.php?page_id=1></iframe>
 
		<?php echo"</div>";
 
echo"</div>";
 
	echo "</td>\n</tr>\n</table>\n";
 
 
	//Content
	echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center' 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 "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' align='center'>\n<tr>\n";
	echo "<td align='center' class='footer'>";
	//Backlinkai
	echo "<a target='_blank' href='http://nusirasyk.net/'>Pratybu atsakymai, referatai ir rasiniai NEMOKAMAI!</a> | <a href='http://www.kietekas.com' title='SLRR žaidimo fanu bendruomene' target='_blank'>..: SLR:R Bendruomene LT :..</a> | <a href='http://tobako.lt' title='ToBaKo.LT - CS pro!' target='_blank'>ToBaKo.LT - CS pro</a> | <a href='http://www.scream.lt'>Internetine radijo stotis!</a>";
	echo "</td>";
	echo "</tr>\n</table>\n";
 
}
 
function render_news($subject, $news, $info) {
	echo "<table cellpadding='0' cellspacing='0' width='100%'  class='borde'>\n<tr>\n";
	echo "<td class='capmain'><div class='text'>".$subject."</div></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='100%'  class='borde'>\n<tr>\n";
	echo "<td class='capmain'><div class='text'>".$subject."</div></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='100%'  class='borde'>\n<tr>\n";
	echo "<td class='capmain'><div class='text'>".$title."</div></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='100%' class='borde'>\n<tr>\n";
	echo "<td class='scapmain'><div class='text'>".$title."</div></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";
 
}
?>


Dekoju is angsto kas pades uzdesiu +11 Tik prasau padekit !!!

Redagavo tomas710· 2011 Kov. 26 21:03:32

Parašė Ponas24· 2011 Kov. 26 21:03:26
#2

Eileuteje: $items_per_page = 16; Cia reikia keisti kiek naujienu per psl.

Parašė Matulis· 2011 Kov. 26 22:03:41
#3

filmai.php faile yra eilutė

 $items_per_page = 16;
bandyk ją pakeisti į

 $items_per_page = 15;

Parašė tomas710· 2011 Kov. 26 23:03:17
#4

ir nieko tada neisideda tas 16 filmukas jei yra ideti 16 pasidaro puslapy 15 o tas kaskur skrajoja nezinia kur :D

Parašė zaiboras· 2011 Kov. 26 23:03:32
#5

pvz aš užėjau į tavo tą animebaze ir man viskas gerai rodo 16 filmukų vienam puslapyje... (nebent ne apie šita psl šneki)

Parašė tomas710· 2011 Kov. 26 23:03:22
#6

ne as kalbu kad susikurtu dar kitas puslapis nes i viena puslapi nesukisiu visko

Parašė tomas710· 2011 Kov. 27 18:03:58
#7

Vistiek nieko sako pazystamas pasidarys pats bet kad jau idejau isviso 20 video tai turejo pasidaryt.

Parašė Mange· 2011 Kov. 27 18:03:26
#8

Ačiū kad padalinai filmai.php :d

Parašė .d0en· 2011 Kov. 27 19:03:25
#9

Mange - tas filmai.php jau seniausiai įdėtas...ir linkas veikiantis.
Beje pats išbandžiau šitą scriptą tai tik vienam puslapy talpinas.kitas nesusikuria.

Parašė tomas710· 2011 Kov. 27 19:03:04
#10

mano pazystamas juk irgi naudoja jam viskas ok tai arba jis kaska man nedasako