Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,952
Naujausias narys: tomeem

Naujausi straipsniai

Paskutiniai nariai

asirija 3 dienos
tomeem 2 savaitės
Reikalas 3 savaitės
weberiz 5 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
Majakas20 savaitės
andsoft21 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.144.230.82
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
Klaustukas "?"
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems

Autorius: Am1go Peržiūrų: 19481      Spausdinti temą
2011 Rugp. 9 23:08:37          1 žinutė iš 39
Spausdinti pranešimą
Sveiki,
Norėčiau pasidomėti gal kas žinot kaip į naujienas įdėti toki dalyka kaip pvz: Pranešk apie neveikianti filmą ( ir paspaudus kažkur nuveda)
Ir kaip "Naujienų ivertinimą pakelti aukčiau nei yra komentarai. :)
šiam kartui tiek, dėkui :)


Redagavo Am1go 2011 Rugp. 13 13:08:50

38 atsakymai:
2011 Rugp. 9 23:08:45          2 žinutė iš 39
Spausdinti pranešimą
Tai viską padaryt galima redaguojant news.php failą, keičiant kodus vietomis, pridedant naujus (paprasčiausią html nuorodą).

Kitas būdas su tuo pranešimu, tai tiesiog kiekvienoje naujienoje rankiniu būdu pridėt tą nuorodą.
0


www.creatium.lt
2011 Rugp. 9 23:08:19          3 žinutė iš 39
Spausdinti pranešimą
butu geriau keičiant news.php ar theme.php nžn tikslei kuri čia keist reik :) tik norėtusi tiksliau ką perkelt ir pnš , nenoriu suknist saito :)
0


2011 Rugp. 10 00:08:14          4 žinutė iš 39
Spausdinti pranešimą
Kuri pas tave php-fusion versija? Kelt reikėtų reitingų kodą virš komentarų. Reikia atidžiai pasistudijuot news.php failą ir tada galima bus perkelt.
0


www.creatium.lt
2011 Rugp. 10 00:08:11          5 žinutė iš 39
Spausdinti pranešimą
Php-Fusion v7.02.03
aš bandžiau perkelt, bet iškart error gavau šypsosi
Tai reikėtu labiau išmanančios rankos
0


2011 Rugp. 10 00:08:29          6 žinutė iš 39
Spausdinti pranešimą
Už kažkokį mokestį viskas yra padaroma, jei pats tingi pasimokinti programavimo pradmenų. Visi tavo klausimai yra tikrai lengvai padaromi nereikia būti super duper programeriu. Manau jei puslapį turi ir prižiūri tokius dalykus turi laisviausiai pasidaryti ir pats...
0


Adminas - ban'o laisvė
www.KIETEKAS.com
2011 Rugp. 10 00:08:56          7 žinutė iš 39
Spausdinti pranešimą
čia pagalbos suportas ar pamokslu ? šypsosi
bent jau pabūtumėt tyliai su tokiais pasakymais.
0


2011 Rugp. 10 00:08:46          8 žinutė iš 39
Spausdinti pranešimą
tai kartais ivertinimas nera includinamas i news.php??
Ir nemoki perkelt 1 eilutes kodo is vienos vietos i kita xD .
0


2011 Rugp. 10 00:08:24          9 žinutė iš 39
Spausdinti pranešimą
Taigi sakau kėliau, iškart error gaunu... šypsosi
0


2011 Rugp. 10 00:08:27          10 žinutė iš 39
Spausdinti pranešimą
rodyk kaip keliai ir koks error.
Includas turi but tarp if kelk kartu su if'u
0


2011 Rugp. 10 00:08:57          11 žinutė iš 39
Spausdinti pranešimą

	if (dbrows($result)) {
include INCLUDES."ratings_include.php";
include INCLUDES."comments_include.php";
$data = dbarray($result);


dabar taip įkėlęs esu, niekas nepasikeitė, kitaip kai keli gauni error..
0


2011 Rugp. 10 11:08:44          12 žinutė iš 39
Spausdinti pranešimą
Susitvarkiau.
Turiu kita klausima,
noriu kad mano naujas didelis bg 1400x1400 butu per visa saita.
O paneles butu permatomos.
stai visas styles.css kodas
Kas sutvarkys bus didelis aciu! šypsosi

a {
   color : #ff9900;
   text-decoration : none;
}

a:hover {
   color : #ff9900;
   text-decoration : underline;
}

a.side {
   color : #ff9900;
   text-decoration : none;
}

a:hover.side {
   color : #ff9900;
   text-decoration : underline;
}

a.white, li.white a {
   font-family:"Myriad Pro Cond";
   font-size : 18px;
      color : #ffcc00;
   text-align:center;
   text-transform:uppercase;
   width:119px;
   height:25px;
   display:block;
   text-decoration: none;
   float:left;
   margin-left:7px;
   padding-top:4px;
   background:url(images/menu.png);
}

a:hover.white, li.white a:hover {
   font-family:"Myriad Pro Cond";
   font-size : 18px;
   color : #504c41;
   text-align:center;
   text-transform:uppercase;
   width:119px;
   height:25px;
   display:block;
   text-decoration: none;
   float:left;
   margin-left:7px;
   padding-top:4px;
   background:url(images/menu_2.png);
}

body {
   color : #555;
   background-image:url(images/bg.png);
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   padding:0px;
   margin:0px;
}



#header {
   background:url(images/header.png) no-repeat;
   height:198px;
   position:relative;
}

#search {
   position:absolute;
   top:165px;
   left:20px;
}


   
   .inputas {
      background:url(images/inputas.png) no-repeat;
      font-family:Verdana, Helvetica, sans-serif;
      font-size:11px;
      width:200px;
      padding-left:5px;
      height:22px;
      border:0px;
   }

   .input {
      
      background:url(images/input.png) no-repeat;
      border:0px;
      font-family:Verdana, Helvetica, sans-serif;
      font-size:11px;
      color:#fff;
      width:198px;
      height:28px;
      padding-left:5px;
      position:abolute;
      margin-top:7px;
      margin-left:15px;
   }
   
   .b {
      background:url(images/ieskoti.png) no-repeat;
      width:42px;
      height:30px;
      border:0px;
      margin-top:5px;
   }
   
   .jungtis {
      background:url(images/jungtis.png) no-repeat;
      margin:0px 0px 0px 2px ;
      width:90px;
      height:24px;
      border:0px;
   }
   
#loginas {
   background:url(images/loginas.png) no-repeat;
   height:141px;
   width:225px;
   position: absolute;
   top: 35px;
   right: 50px;
}


#paieskaa {
   background:url(images/paieska.png) no-repeat;
   height:54px;
   width:284px;
   position: relative;
}

#kategorijos {
   background:url(images/kategorijos.png) no-repeat;
   height:54px;
   width:284px;
   position: relative;
}

#.filmo_fonas {
   background-color:#000;
   height:300px;
   width:300px;
   position: relative;
}

   
#virsus {
   background:url(images/virsus_bg.jpg) repeat-x;
   height:7px;
}

#footer_bg {
   background:url(images/footer_bg.jpg) repeat-x;
   height:7px;
   margin-top:10px;
}
   
#kat {
   position:relative;
   top:0px;
   left:0px;
}


#Meniiu{
 margin: 0px;
 padding: 0px;

}



#Meniiu a:link, #Meniiu a:visited {
display: block;
border-top: 0px solid #ffffff;
border-bottom: 1px dashed #696559;
font-size:15px;
font-family:"Myriad Pro";
text-transform:uppercase;
padding: 3px 3px 3px 5px;
color: #FFFFFF;
background-color:none;
}

#Meniiu a:hover{
border-top: 0px solid #cccccc;
background-image: none;
font-size:15px;
font-family:"Myriad Pro";
text-transform:uppercase;
padding: 3px 3px 3px 10px;
text-decoration: none;
color: #ffd200;
background-color: none;
}


#logo {
   position:absolute;
   top:0px;
   left:250px;
}
   
#user {
   position:absolute;
   top:5px;
   left:5px;
}


#nav {
   position:absolute;
   top:160px;
   left:0px;
}


form {
   margin : 0px;
}

hr {
   height : 1px;
   border : 1px solid #eee;
}

hr.side-hr {
   height : 1px;
   border : 1px 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;
}


.sub-header {
font-family:Arial, Helvetica, sans-serif;
font-size:16px;
}

.sub-header ul{
   margin: 0;
   padding: 0;
}

.sub-header 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 : #444;
   padding : 10px;
}

.footer {
background:url(images/footer.png) no-repeat;
height:108px;
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 9px;
   color : #ffffff;
}

.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-family:Tahoma, Geneva, sans-serif;
   font-size:11px;
   color:#000;
   background:#FFFFFF;
   padding : 4px 5px 5px 5px;
}

.center {
   margin : 0 auto;
}

.side-body {
   font-family:Tahoma, Geneva, sans-serif;
   font-size:11px;
   color:#fff;
   background:url(images/sideb.png);
   padding : 6px;
}

   .apacia {
      background:url(images/apacia.png) no-repeat;
      height:15px;
   }
   
.borderis {
   border:2px #202020 solid;
   background-color : #202020;
    border-radius: 4px;
   padding-top:3px;
}

.borderis2 {
   border:2px #868686 solid;
   background-color : #202020;
    border-radius: 4px;
   padding-top:3px;
}

.main-bg {
   color : #555;
   background-color:#fff;
   -moz-border-radius: 5px;
   -webkit-border-radius: 5px;
   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 : #fff
   background:url(images/bg.png);
   padding : 0px 5px 10px 10px;
   width: 284px;
}

.side-border-right {
   color : #fff;
   background:url(images/bg.png);
   padding : 0px 10px 10px 10px;
   width: 284px;
}

.news-category {
   border:0;
   margin:3px 5px 0 0;
   float:center;
}

.news-footer {
   font-size : 10px;
   color : #555;
   background-color : #f1f1f1;
   padding : 3px 4px 4px 4px;
}

   .capmain {
   background:url(images/naujienu_bg.png) repeat-x;
   height:26px;
   font-family : "MyriadPro-Light", "Myriad Pro Light", "Myriad Pro";
         font-size:14px;
         color:#ffffff;
         padding: 0px 0px 0px 15px;
   }
   
      .capmain .text {
      
      }   
      
      

.scapmain {
   background:url(images/panele.png) no-repeat;
   height:44px;
}

   .scapmain .text {
      font-family : "Myriad Pro";
      font-size:17px;
      color:#663333;
      text-transform:uppercase;
      font-weight:bold;
      text-align:center;
   }

.tbl-border {
   border : 1px solid #e1e1e1;
}

.tbl {
   font-size : 11px;
   color : #808080;
   background-color : #A0A0A0 ;
   padding : 4px;
}

.tbl1 {
   font-size : 11px;
   color : #808080 ;
   background-color : #F0F0F0;
   padding : 4px;
}

.tbl2 {
   font-size : 11px;
   color : #808080 ;
   background-color : #E0E0E0 ;
   padding : 4px;
}

.forum-caption {
   font-size : 11px;
   font-weight : bold;
   color : #ffffff;
   background-color : #0c0c0c;
   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;
}

.shoutbox {
   color : #777;
}

.shoutboxdate {
   font-size : 10px;
   color : #888;
}

.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;
}

.side-label {
   color : #555;
   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;
}

img {border:0px;}

#gallery {
         position:relative;
         height:135px;
      }
      #gallery a {
         float:left;
         position:absolute;
      }
      
      #gallery a img {
         border:5px #273037 solid;
          border-radius: 10px;
            -moz-border-radius: 10px;
            -khtml-border-radius: 10px;
            -webkit-border-radius: 10px;
      }
      
      #gallery a.show {
         z-index:500;
      }
   
      #gallery .caption {
         z-index:600;
         background-color:#000;
         color:#ffffff;
         height:25px;
         width:100%;
         position:absolute;
         top:5px;
         left:5px;
          border-radius: 5px;
            -moz-border-radius: 5px;
            -khtml-border-radius: 5px;
            -webkit-border-radius: 5px;
      }
   
      #gallery .caption .content {
         margin:5px
      }
      
      #gallery .caption .content h3 {
         margin:0;
         padding:0;
         font-family:Arial, Helvetica, sans-serif;
         font-size:14px;
         color:#ff9933;
      }


0


2011 Rugp. 10 15:08:35          13 žinutė iš 39
Spausdinti pranešimą
CSS:

filter:alpha(opacity=50);
opacity: 0.5;
-moz-opacity:0.5;

0.5=50=0.5=50%
50% bus permatomas objektas.
0


2011 Rugp. 10 16:08:31          14 žinutė iš 39
Spausdinti pranešimą
Viskas išėjo, ačiū.
Na ir paskutinis klausimas.
Esu užmetes viena bg dideli, ir jis per puse puslapio vel iš nauja prasideda. (Apačia yra juoda todėl norėtusi kad automatiškai testusi į apačia tas juodas fonas, gal kas žino kaip padaryt? šypsosi
0



Redagavo Am1go 2011 Rugp. 10 16:08:00
2011 Rugp. 10 16:08:48          15 žinutė iš 39
Spausdinti pranešimą
background-repeat: xxxx
0


2011 Rugp. 10 17:08:48          16 žinutė iš 39
Spausdinti pranešimą
o kur turėčiau šia eilute dadėt? šypsosi
0


2011 Rugp. 10 17:08:18          17 žinutė iš 39
Spausdinti pranešimą
Jeigu nori, kad background'as nesikartotų, tai kaip prie body tag'o reikėtų pridėt:


background-repeat: no-repeat;


Tuomet dar background-color nustatyk į 000 ir bus tau juodas bg ten, kur baigiasi paveiksliukas.
0


www.creatium.lt
2011 Rugp. 10 17:08:14          18 žinutė iš 39
Spausdinti pranešimą
o kurioi vietoi yra tas background-color, nes čia ju nevienas šypsosi
P.S pasidariau! labai didelis ačiū. +11 šypsosi
0



Redagavo Am1go 2011 Rugp. 10 17:08:46
2011 Rugp. 10 17:08:32          19 žinutė iš 39
Spausdinti pranešimą
Tai taipogi prie body tag'o. O jeigu nėra, tai pridėk:


background-color: #000;
0


www.creatium.lt
2011 Rugp. 11 01:08:05          20 žinutė iš 39
Spausdinti pranešimą
dar turiu viena klausima, pvz kaip buna filmai.php naujienu paveiksliukai, ar eitu padaryt kad pacioja naujienoje ji rodytu taip pat (tokiu paciu dydziu)?
0


2011 Rugp. 12 00:08:24          21 žinutė iš 39
Spausdinti pranešimą
kaip suprast?
Kai eini i readmore??
0


2011 Rugp. 12 01:08:53          22 žinutė iš 39
Spausdinti pranešimą
taip, apie tai ir šneku šypsosi
0


2011 Rugp. 12 01:08:14          23 žinutė iš 39
Spausdinti pranešimą
uzdek witdh ir height ant img.uzdek witdh ir height ant img.
0


2011 Rugp. 12 01:08:45          24 žinutė iš 39
Spausdinti pranešimą
turiu omeny kaip padaryt kad visose naujienose "readmore" rodytu paveiksliuką kuris buvo parinktas šypsosi
Kur čia reikėtu taip nustatyt?
P.S man jo visai nerodo šypsosi
0



Redagavo Am1go 2011 Rugp. 12 01:08:04
2011 Rugp. 12 10:08:02          25 žinutė iš 39
Spausdinti pranešimą
tai pridek prie atvaizdavimo imgtai pridek prie atvaizdavimo img
0


2011 Rugp. 12 13:08:51          26 žinutė iš 39
Spausdinti pranešimą
Ta prasme į pačia naujieną? šypsosi
Jeigu taip, tai aš noriu kad automatiškai nieko nedeliojant pridėtu pasirinkta img visur šypsosi
0


2011 Rugp. 12 14:08:29          27 žinutė iš 39
Spausdinti pranešimą
dek news.php faile ties ten kur prasideda readmore
0


2011 Rugp. 12 14:08:10          28 žinutė iš 39
Spausdinti pranešimą
o tiksliau gal galima ką dėt? šypsosi nes aklai čia jau pasakiai.
0


2011 Rugp. 12 15:08:26          29 žinutė iš 39
Spausdinti pranešimą
kaip kitaip as net nezinau kas tame faile xD
dek visa readmore koda cia.
0


2011 Rugp. 12 16:08:02          30 žinutė iš 39
Spausdinti pranešimą

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'"

);


tikiuosi šitas šypsosi
0


2011 Rugp. 12 18:08:32          31 žinutė iš 39
Spausdinti pranešimą
duok readmore }else{ visa koda
0


2011 Rugp. 12 19:08:56          32 žinutė iš 39
Spausdinti pranešimą
Pridedu visa news.php nes nerandu šypsosi



<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| 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 <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> 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
$i = 0;
 
// 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.*, tu.user_id, tu.user_name, tu.user_status
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'
GROUP BY news_id
ORDER BY news_sticky DESC, news_datestamp DESC LIMIT "
.$_GET['rowstart'].",".$items_per_page
);
$numrows = dbrows($result);
while ($data = dbarray($result)) {
$i++;
$comments = dbcount("(comment_id)", DB_COMMENTS." WHERE comment_type='N' AND comment_hidden='0' AND comment_item_id='".$data['news_id']."'");
$news_cat_image = "";
$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);
$news_cat_image = "<a href='".($settings['news_image_link'] == 0 ? "news_cats.php?cat_id=".$data['news_cat']
: FUSION_SELF."?readmore=".$data['news_id'] )."'>";
if ($data['news_image_t2'] && $settings['news_image_frontpage'] == 0) {
$news_cat_image .= "<img src='".IMAGES_N_T.$data['news_image_t2']."' alt='".$data['news_subject']."' class='news-category' /></a>";
} elseif ($data['news_cat_image']) {
$news_cat_image .= "<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']);
 
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"user_status" => $data['user_status'],
"news_date" => $data['news_datestamp'],
"cat_id" => $data['news_cat'],
"cat_name" => $data['news_cat_name'],
"cat_image" => $news_cat_image,
"news_subject" => $data['news_subject'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" => $comments,
"news_allow_comments" => $data['news_allow_comments'],
"news_sticky" => $data['news_sticky']
);
 
echo "<!--news_prepost_".$i."-->\n";
render_news($news_subject, $news_news, $news_info);
}
echo "<!--sub_news_idx-->\n";
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 {
$result = dbquery(
"SELECT tn.*, tc.*, tu.user_id, tu.user_name, tu.user_status 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_id='".$_GET['readmore']."' AND news_draft='0'
LIMIT 1"

);
if (dbrows($result)) {
include INCLUDES."ratings_include.php";
include INCLUDES."comments_include.php";
$data = dbarray($result);
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_cat_image = "";
$news_subject = $data['news_subject'];
if ($data['news_image_t1'] && $settings['news_image_readmore'] == "0") {
$img_size = @getimagesize(IMAGES_N.$data['news_image']);
$news_cat_image = "<a href=\"javascript:;\" onclick=\"window.open('".IMAGES_N.$data['news_image']."','','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=".($img_size[0]+20).",height=".($img_size[1]+20)."')\"><img src='".IMAGES_N_T.$data['news_image_t1']."' alt='".$data['news_subject']."' class='news-category' /></a>";
} elseif ($data['news_cat_image']) {
$news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat']."'><img src='".get_image("nc_".$data['news_cat_name'])."' alt='".$data['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); }
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"user_status" => $data['user_status'],
"news_date" => $data['news_datestamp'],
"cat_id" => $data['news_cat'],
"cat_name" => $data['news_cat_name'],
"cat_image" => $news_cat_image,
"news_subject" => $data['news_subject'],
"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']."' AND comment_hidden='0'"),
"news_allow_comments" => $data['news_allow_comments'],
"news_sticky" => $data['news_sticky']
);
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);
}
}
 
require_once THEMES."templates/footer.php";
?>
0


2011 Rugp. 13 01:08:34          33 žinutė iš 39
Spausdinti pranešimą
tai jo viska daryk theme.php faile keisk naujienos funkcija..
0


2011 Rugp. 13 01:08:59          34 žinutė iš 39
Spausdinti pranešimą
labai jau aiškiai kalbi, keist theme keisk news, o ką tiksliai keist ir kaip nepaaiškini.. šypsosi
0


2011 Rugp. 13 11:08:29          35 žinutė iš 39
Spausdinti pranešimą
Koks ten img turi but?
Stai pavizdys:
echo '<img src="'.$info['cat_image'].'">'; tik nuoroda biski kitokia turi but ir dedi i naujienu funkcija...
0


2011 Rugp. 13 11:08:14          36 žinutė iš 39
Spausdinti pranešimą
img turi būti pačios naujienos kuri įkėliau būtent tai naujienai šypsosi
0


2011 Rugp. 13 12:08:23          37 žinutė iš 39
Spausdinti pranešimą
Kaip ir kur ikeliai jei i duomenu baze ikeliai tai lygiai taip pat kaip parasiau
0



#1 o pats supratai nors ką parašei?Am1go, 2011 Rugp. 13 13:08:20
2011 Rugp. 13 13:08:08          38 žinutė iš 39
Spausdinti pranešimą
Na tik tokiem gal ir kvailai atrodo, nes tavo šis komentaras tave taip nužemino..
P.S net pralinksminai :D
0



Redagavo Am1go 2011 Rugp. 13 13:08:42
2011 Rugp. 13 12:08:22          39 žinutė iš 39
Spausdinti pranešimą
Am1go, tu visada sakinio gale dedi "šypsosi"? Nes kvailai atrodo...
-2

Peršokti į forumą: