Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Filmai.php klaida/erroras
Parašė bam· 2011 Bal. 3 11:04:23
#1
Taigi įsikėliau filmai.php su includes ir kaip įkelinėju viska per naujienas atsitinka taip:
Per kur kelti filma/nuotrauka kad viskas veiktu?
Ar reik čia jau kažka tvarkyti su filmai.php?
Prisegu 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;
color: #ffffff;
position: absolute;
z-index: 3000;
/*border: 1px solid #111;*/
background-color: #000;
padding: 5px;
}
tooltip h3, #tooltip div { margin: 0; }
div#qTip {
padding: 5px;
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: 1000;
</style>
<?php
$items_per_page = 16;
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) {
$_GET['rowstart'] = 0;
}
$rows = dbcount("(*)", DB_NEWS, "news_draft='0'");
//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:5px;'>\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=260px><tr><td class=c>
<b><span style=color:#0099FF;font-size:12px;>".$data['news_subject']."</span></b><br>$tas<br>
<b>Žiūrėjo: ".$data['news_reads']."</b>
</td></tr>
</table>'><img src='".IMAGES_N.$data['news_image']."' width='160' height='245' /></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']."'>Žiūrė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, 3);
}
require_once THEMES."templates/footer.php";
?>
Parašė defasas· 2011 Bal. 3 12:04:38
#2
Kelk nuotrauta iš savo kompiuterio ( pasirinkti nuotrauka) ir viskas turėtu veikti ;)
Parašė bam· 2011 Bal. 3 12:04:57
#3
įkeliu viska normaliai padarau bet vistiek nerodo viska išbandžiau..
Parašė Mantas_· 2011 Bal. 3 13:04:21
#4
<?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;
color: #ffffff;
position: absolute;
z-index: 3000;
/*border: 1px solid #111;*/
background-color: #000;
padding: 5px;
}
tooltip h3, #tooltip div { margin: 0; }
div#qTip {
padding: 5px;
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: 1000;
</style>
<?php
$items_per_page = 16;
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) {
$_GET['rowstart'] = 0;
}
$rows = dbcount("(*)", DB_NEWS, "news_draft='0'");
//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:5px;'>\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']."'");
// $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=260px><tr><td class=c>
<b><span style=color:#0099FF;font-size:12px;>".$data['news_subject']."</span></b><br>$tas<br>
<b>Žiūrėjo: ".$data['news_reads']."</b>
</td></tr>
</table>'><img src='".IMAGES_N.$data['news_image']."' width='160' height='245' /></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']."'>Žiūrė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, 3);
}
require_once THEMES."templates/footer.php";
?>
Parašė bam· 2011 Bal. 5 07:04:36
#5
Padėkit kasnors kaip foto įkelt, nes keliu visaip ir neįsikelia :?
Parašė ZW· 2011 Bal. 5 08:04:27
#6
Man taip buna kai naujienoi idedu nuotrauka. O tau reikia ja prisegt. Nedet kodo is talpyklu.
Dar buna kai per didelis aprasymas.
Parašė bam· 2011 Bal. 5 08:04:56
#7
Per kur prisegt? Jei gali parašyk..
Parašė bam· 2011 Bal. 5 12:04:03
#9
nėr tokio dalyko kad pasirinkti foto va kaip pas mane atrodo:
Parašė ZW· 2011 Bal. 5 18:04:06
#10
Zet - Tu kokia
php-fusion versija naudoji :]
Man kila itarimas kad kad netinkama
jai klystu tada padet negaliu... ;)
Redagavo ZW· 2011 Bal. 5 18:04:24
Parašė Žmogus· 2011 Bal. 5 18:04:54
#11
Atsinaujink iki paskutinės versijos
php fusion
Parašė bam· 2011 Bal. 5 18:04:42
#12
Aš naudoju
php v7, man ir šitam gera kam naujint? Gi vistiek turi kažkaip veikt.. :?
Parašė Žmogus· 2011 Bal. 5 18:04:53
#13
Tagi yra ten kažkokia 7.01 ar kokia versija, ior ten eina pridėti nuotrauką per naujienas
Parašė ZW· 2011 Bal. 5 18:04:46
#14
Jai nenori naujint tada nieks tau nepagelbes. Nes kiek suprantu tas modas veikia tik su prisegtu pav.
Parašė Bucis· 2011 Bal. 5 19:04:07
#15
Veiks tik ant pimped-fusion
Parašė bam· 2011 Bal. 5 19:04:47
#16
Daugiau jokiu kitu būdu nėra? ;[
Parašė Bucis· 2011 Bal. 5 19:04:23
#17
Redaguok savo v7 fusioną, bet čia būtų per daug vargo. Pimped-fusion tas pats kas v7 fusionas tik daugiau galimybiu turintis ir šiaip