Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Ieškau iš v7i v6

Parašė aiwasuper· 2012 Sau. 3 16:01:04
#1

Sveiki jau senai atsirade failai yra ant v7 filmai.php bet dar niekur nerandu failo ant v6 jai kas pagelbetu manau nevienas +rep uzdetu taip pat ir aš

Parašė Kižas· 2012 Sau. 3 17:01:37
#2

Taigi prašyk tų, kurie turi tą failą v7 versijoje, tada persidaryk jį į v6.

Parašė aiwasuper· 2012 Sau. 3 17:01:13
#3

as ja turiu bet nemoku persidarytu:

<?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: 8px;
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: 1px solid #ffffff;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
display: none;
background: #000;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: left;
position: absolute;
z-index: 1000;
opacity:0.8;filter:alpha(opacity=80);
}
</style>
<?php


$items_per_page = 21;


if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) {
$_GET['rowstart'] = 0;
}

$rows = dbcount("(*)", DB_NEWS, "news_draft='0' and news_sticky='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 = 3;
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='180' class='borderis' onmouseover=\"className='borderis2'\" onmouseout=\"className='borderis'\">\n<tr>\n";
echo"<td colspan='2' align='center'><a href='".BASEDIR."filmu_perziura.php?id=".$data['news_id']."' tit='<table width=200px><tr><td class=c>
<b><span style=color:#0099FF;font-size:12px;>".$data['news_subject']."</span><br><br><span style=color:#ffffff;font-size:10px;>".trimlink($data['news_news'],1000 )."</span>


</td></tr>
</table>'><img src='".IMAGES_N.$data['news_image']."' width='200' height='150' class='optic' /></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='".BASEDIR."filmu_perziura.php?id=".$data['news_id']."'></center> <b><font size ='2'><img src='".THEME."images/ziureti.png' width='18' height='13' border='0' alt='' <b><span style=color:#ffffff;font-size:10px;></a>".$data['news_reads']."";
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šė Kižas· 2012 Sau. 3 17:01:55
#4

Nesunku pakeisti tereikia šitas kodo dalis:


require_once "maincore.php";
require_once THEMES."templates/header.php";
require_once THEMES."templates/footer.php";
 
// na ir <span style="border-bottom: 1px dotted black;">mysql</span> kintamuosius
// DB_NEWS, ir kitus panašius

Redagavo Kižas· 2012 Sau. 3 17:01:14

Parašė aiwasuper· 2012 Sau. 3 21:01:08
#5

parasiau straipsni prie zalieji nes istikro man tai padaryti butu sunkoka metitu error ir pan prasau jusu pagalbos :?

Parašė aiwasuper· 2012 Sau. 3 22:01:25
#6

persidariau bet dabar toki error meta:

Table 'telikas.fusion_DB_NEWS' doesn't existTable 'telikas.DB_NEWS' doesn't exist



Perdarytas mano:

<?php
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.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: 8px;
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: 1px solid #ffffff;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
display: none;
background: #000;
color: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: left;
position: absolute;
z-index: 1000;
opacity:0.8;filter:alpha(opacity=80);
}
</style>
<?php


$items_per_page = 21;


if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) {
$_GET['rowstart'] = 0;
}

$rows = dbcount("(*)", DB_NEWS, "news_draft='0' and news_sticky='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 = 3;
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='180' class='borderis' onmouseover=\"className='borderis2'\" onmouseout=\"className='borderis'\">\n<tr>\n";
echo"<td colspan='2' align='center'><a href='".BASEDIR."filmu_perziura.php?id=".$data['news_id']."' tit='<table width=200px><tr><td class=c>
<b><span style=color:#0099FF;font-size:12px;>".$data['news_subject']."</span><br><br><span style=color:#ffffff;font-size:10px;>".trimlink($data['news_news'],1000 )."</span>


</td></tr>
</table>'><img src='".IMAGES_N.$data['news_image']."' width='200' height='150' class='optic' /></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='".BASEDIR."filmu_perziura.php?id=".$data['news_id']."'></center> <b><font size ='2'><img src='".THEME."images/ziureti.png' width='18' height='13' border='0' alt='' <b><span style=color:#ffffff;font-size:10px;></a>".$data['news_reads']."";
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 "side_right.php";
require_once "footer.php";
?>

Parašė Žmogus· 2012 Sau. 4 10:01:34
#7

$rows = dbcount("(*)", DB_NEWS, "news_draft='0' and news_sticky='0'");

keisk į

$rows = dbcount("(*)", news, "news_draft='0' and news_sticky='0'");

Parašė aiwasuper· 2012 Sau. 4 11:01:35
#8

ismeta klaida

Unknown column 'news_draft' in 'where clause'Table 'telikas.DB_NEWS' doesn't exist


uzmesk aki jai nori cia:

http://telikas.puslapiai.lt/nauj...

Parašė avice· 2012 Sau. 4 11:01:25
#9

".DB_NEWS." replace to ".db_prefix."news

Parašė aiwasuper· 2012 Sau. 4 16:01:24
#10

avice ka cia daryt su ta eilute ar pakeist ar dadiet??? :?

Parašė aiwasuper· 2012 Sau. 4 22:01:42
#11

avice ka cia daryt su ta eilute ar pakeist ar dadiet???:??|c|

Parašė aiwasuper· 2012 Sau. 5 04:01:01
#12

pervesiu 5lt kas pades pasibaikti arba papildyma paimsiu :?c|c|c|

Parašė Inspire· 2012 Sau. 5 10:01:58
#13

$rows = dbcount("(*)", ".db_prefix."news, "news_draft='0' and news_sticky='0'");


Bandyk šitą :)

Redagavo Inspire· 2012 Sau. 5 10:01:27

Parašė avice· 2012 Sau. 5 18:01:24
#14

O negalejai isiverst to zodzio "replace to" ?
sita ".DB_NEWS." keisk i ".$db_prefix."news
sita ".DB_COMMENTS." keisk i ".$db_prefix."comments
sita ".DB_RATINGS." keisk i ".$db_prefix."ratings
sita DB_RATINGS keisk i $db_prefix."ratings"
sita DB_COMMENTS keisk i $db_prefix."comments"
pasinaudok notepad ir replaca funkcija
dabar tu man skolingas 5lt :]

Redagavo avice· 2012 Sau. 5 18:01:39

Parašė aiwasuper· 2012 Sau. 6 06:01:46
#15

nesigauna man vistiek gerai susidelio plz gelbekit is bedos orrorose skest pradedu ir viskas :? :D

Parašė Žmogus· 2012 Sau. 6 10:01:55
#16

O tai kokias klaidas meta?

Parašė aiwasuper· 2012 Sau. 7 03:01:05
#17

as bloagai sudelioju garantas kai sudedu kodus baltas fonas ir error meta ?|

Parašė aiwasuper· 2012 Sau. 8 01:01:07
#18

matau nlb kas makate tai padaryti na bet aciu bant uz tiek ?|

Parašė Jaunelis· 2012 Sau. 8 01:01:33
#19

Ne tai kad nemoka , bet tiesiog gal nelabai nori padėt. Pasiūlytum kažkokį atlygi greit sulėktų visi gelbėti.

Parašė aiwasuper· 2012 Sau. 8 06:01:56
#20

siuliau jauneli bet niekas dar neprisistate tai vat reikia ieskoti vistiek kas moka