PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 28623
Šiandien: 20
Prisijungę nariai
» Svečių: 4
» Narių: 0

» Viso narių: 10,232
» Naujausias: EdvinasG1337

Prisijungimų istorija:
EdvinasG1337nepamenu
tabuxnepamenu
rolandas94nepamenu
Zbigniew@nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
mast3rnepamenu
N1nt3ndnepamenu
Matze1987nepamenu
Piter_NSnepamenu
MariukasRnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

2024-02-20 22:14
Aisku dabar tokie laikai, kai turinio valdymo sistemas valdome one-click principu. Ne kaip seniau kode ieskodavom klaidu, norint moda pasileist.. :D paciam reikdavo susidiegt viska i ftp..

2024-02-20 22:03
Sveiki kolegos 👌 kazkada rasiau greit 11 metu bet ziuriu greit 14 metu. 😄 baisuu, reik ta proga kazka sugalvot su php-f kaip jaunima itraukt.

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Patobulinimai
 Spausdinti temą
Paieskoks pritaikymas minumo,weberio filmu modui
Domis17
#1 Spausdinti pranešimą
parašyta 2012-05-10 20:00
Pradinukas



Reputacija: 0

Pranešimai: 44
Įstojo: 2010-05-07

Sveiki , reikai pagalbos pritaikant paieska minimuko, weberio filmu,serialu modui.

Turiu koda kuri reikai irasyti i includes/search/search_news_include

bet ,ka reikia irasyti i locale/lithuanian/search/seach.php ,kad atidarytu filma,seriala normaliai ?

nes kai pasapaudi ant pavadinimo meta :
www.part.lt/img/d0a0b69dec5e4abae94e607fc1a378f9162.jpg


locale/lithuanian/seach/news.php


Download source  Code
$locale['n400'] = \"Naujienos\";
$locale['n401'] = \"Naujiena\";
$locale['n402'] = \"Naujienos\";
$locale['n403'] = \"rasta\";
$locale['n404'] = \"naujienos antra?t�\";
$locale['n405'] = \"naujienos teksta\";
$locale['n406'] = \"nusit�s�s naujienos tekstas\";
?>





includes/search/search_news_include

Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: search_news_include.php
| Author: Robert Gaudyn (Wooya)
+--------------------------------------------------------+
| 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 www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }

include LOCALE.LOCALESET.\"search/news.php\";

if ($_GET['stype'] == \"news\" || $_GET['stype'] == \"all\") {
   if ($_GET['sort'] == \"datestamp\") {
      $sortby = \"filmai_date\";
   } else if ($_GET['sort'] == \"subject\") {
      $sortby = \"filmai_pav\";
   } else if ($_GET['sort'] == \"author\") {
      $sortby = \"news_name\";
   }
   $ssubject = search_querylike(\"filmai_pav\");
   $smessage = search_querylike(\"filmai_apr\");
   $sextended = search_querylike(\"filmai_kat0\");
   if ($_GET['fields'] == 0) {
      $fieldsvar = search_fieldsvar($ssubject);
   } else if ($_GET['fields'] == 1) {
      $fieldsvar = search_fieldsvar($smessage, $sextended);
   } else if ($_GET['fields'] == 2) {
      $fieldsvar = search_fieldsvar($ssubject, $smessage, $sextended);
   } else {
      $fieldsvar = \"\";
   }
   if ($fieldsvar) {
      $result = dbquery(\"SELECT * FROM \".DB_PREFIX.\"filmai WHERE \".$fieldsvar);   
      $rows = dbrows($result);
   } else {
      $rows = 0;
   }
   if ($rows != 0) {
      $items_count .= THEME_BULLET.\" 
href='\".FUSION_SELF.\"?stype=news&stext=\".$_GET['stext'].\"&\".$composevars.\"'>\".$rows.\"

\".($rows == 1 ? $locale['n401'] : $locale['n402']).\" \".$locale['522'].\"

\n\";
      $result = dbquery(
         \"SELECT * FROM \".DB_PREFIX.\"filmai tn
         WHERE \".$fieldsvar.\" ORDER BY \".$sortby.\" \".($_GET['order'] == 1 ? \"ASC\" :

\"DESC\").($_GET['stype'] != \"all\" ? \" LIMIT \".$_GET['rowstart'].\",10\" : \"\")
      );
      while ($data = dbarray($result)) {
         $search_result = \"\";
         $text_all = $data['filmai_apr'].\" \".$data['filmai_kat0'];
         $text_all = search_striphtmlbbcodes($text_all);
         $text_frag = search_textfrag($text_all);
         // $text_frag = highlight_words($swords, $text_frag);
         $subj_c = search_stringscount($data['filmai_pav']);
         $text_c = search_stringscount($data['filmai_apr']);
         $text_c2 = search_stringscount($data['filmai_kat0']);

         $search_result .= \"
href='\".INFUSIONS.\"filmai_panel/filmas.php?filmas_id=\".$data['filmai_id'].\"'>\".$data['filmai_pav'].\"
a>\".\"

\n\";

         // $search_result .= \"

href='news.php?readmore=\".$data['filmai_id'].\"'>\".highlight_words($swords,

$data['filmai_pav']).\"
\".\"

\n\";
         $search_result .= \"

style='width:auto;height:auto;overflow:auto'>\".$text_frag.\"

\";
         $search_result .= \"\".$locale['global_070'].$data['filmai_kalba'].\"\n\";
         $search_result .= $locale['global_071'].$data['filmai_metai'].\"

\n\";
         $search_result .= \"\".$subj_c.\" \".($subj_c == 1 ? $locale['520'] :

$locale['521']).\" \".$locale['n403'].\" \".$locale['n404'].\", \";
         $search_result .= $text_c.\" \".($text_c == 1 ? $locale['520'] : $locale['521']).\" \".$locale['n403'].\"

\".$locale['n405'].\", \";
         $search_result .= $text_c2.\" \".($text_c2 == 1 ? $locale['520'] : $locale['521']).\"

\".$locale['n403'].\" \".$locale['n406'].\"


\n\";
         search_globalarray($search_result);
      }
   } else {
      $items_count .= THEME_BULLET.\" 0 \".$locale['n402'].\" \".$locale['522'].\"
\n\";
   }
   $navigation_result = search_navigation($rows);
}
?>


 
PM
Wyciokazz
#2 Spausdinti pranešimą
parašyta 2012-05-10 20:04
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: search_news_include.php
| Author: Robert Gaudyn (Wooya)
+--------------------------------------------------------+
| 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 www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }

include LOCALE.LOCALESET.\"search/news.php\";

if ($_GET['stype'] == \"news\" || $_GET['stype'] == \"all\") {
   if ($_GET['sort'] == \"datestamp\") {
      $sortby = \"filmai_date\";
   } else if ($_GET['sort'] == \"subject\") {
      $sortby = \"filmai_pav\";
   } else if ($_GET['sort'] == \"author\") {
      $sortby = \"news_name\";
   }
   $ssubject = search_querylike(\"filmai_pav\");
   $smessage = search_querylike(\"filmai_apr\");
   $sextended = search_querylike(\"filmai_kat0\");
   if ($_GET['fields'] == 0) {
      $fieldsvar = search_fieldsvar($ssubject);
   } else if ($_GET['fields'] == 1) {
      $fieldsvar = search_fieldsvar($smessage, $sextended);
   } else if ($_GET['fields'] == 2) {
      $fieldsvar = search_fieldsvar($ssubject, $smessage, $sextended);
   } else {
      $fieldsvar = \"\";
   }
   if ($fieldsvar) {
      $result = dbquery(\"SELECT * FROM \".DB_PREFIX.\"filmai WHERE \".$fieldsvar);   
      $rows = dbrows($result);
   } else {
      $rows = 0;
   }
   if ($rows != 0) {
      $items_count .= THEME_BULLET.\" 
href='\".FUSION_SELF.\"?stype=news&stext=\".$_GET['stext'].\"&\".$composevars.\"'>\".$rows.\"

\".($rows == 1 ? $locale['n401'] : $locale['n402']).\" \".$locale['522'].\"

\n\";
      $result = dbquery(
         \"SELECT * FROM \".DB_PREFIX.\"filmai tn
         WHERE \".$fieldsvar.\" ORDER BY \".$sortby.\" \".($_GET['order'] == 1 ? \"ASC\" :

\"DESC\").($_GET['stype'] != \"all\" ? \" LIMIT \".$_GET['rowstart'].\",10\" : \"\")
      );
      while ($data = dbarray($result)) {
         $search_result = \"\";
         $text_all = $data['filmai_apr'].\" \".$data['filmai_kat0'];
         $text_all = search_striphtmlbbcodes($text_all);
         $text_frag = search_textfrag($text_all);
         // $text_frag = highlight_words($swords, $text_frag);
         $subj_c = search_stringscount($data['filmai_pav']);
         $text_c = search_stringscount($data['filmai_apr']);
         $text_c2 = search_stringscount($data['filmai_kat0']);

         $search_result .= \"
href='filmai.php?filmas_id=\".$data['filmai_id'].\"'>\".$data['filmai_pav'].\"
a>\".\"

\n\";

         // $search_result .= \"

href='filmai.php?filmas_id=\".$data['filmai_id'].\"'>\".highlight_words($swords, $data['filmai_pav']).\"
\".\"

\n\";
         $search_result .= \"

style='width:auto;height:auto;overflow:auto'>\".$text_frag.\"

\";
         $search_result .= \"\".$locale['global_070'].$data['filmai_kalba'].\"\n\";
         $search_result .= $locale['global_071'].$data['filmai_metai'].\"

\n\";
         $search_result .= \"\".$subj_c.\" \".($subj_c == 1 ? $locale['520'] :

$locale['521']).\" \".$locale['n403'].\" \".$locale['n404'].\", \";
         $search_result .= $text_c.\" \".($text_c == 1 ? $locale['520'] : $locale['521']).\" \".$locale['n403'].\"

\".$locale['n405'].\", \";
         $search_result .= $text_c2.\" \".($text_c2 == 1 ? $locale['520'] : $locale['521']).\"

\".$locale['n403'].\" \".$locale['n406'].\"


\n\";
         search_globalarray($search_result);
      }
   } else {
      $items_count .= THEME_BULLET.\" 0 \".$locale['n402'].\" \".$locale['522'].\"
\n\";
   }
   $navigation_result = search_navigation($rows);
}
?>



Redagavo Wyciokazz 2012-05-10 20:05
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
Domis17
#3 Spausdinti pranešimą
parašyta 2012-05-13 19:40
Pradinukas



Reputacija: 0

Pranešimai: 44
Įstojo: 2010-05-07

Meta, kai ieskoti paspaudi:
Download source  Code
Parse error: syntax error, unexpected '=' in /home/dauma/domains/ziopsok.wu.lt/public_html/includes/search/search_news_include.php on line 78




O kartais nereikia nieko pakeisti locale/lithuanian/seach/news.php
?
Redagavo Domis17 2012-05-13 19:40
 
PM
Wyciokazz
#4 Spausdinti pranešimą
parašyta 2012-05-13 19:42
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: search_news_include.php
| Author: Robert Gaudyn (Wooya)
+--------------------------------------------------------+
| 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 www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }

include LOCALE.LOCALESET.\"search/news.php\";

if ($_GET['stype'] == \"news\" || $_GET['stype'] == \"all\") {
   if ($_GET['sort'] == \"datestamp\") {
      $sortby = \"filmai_date\";
   } else if ($_GET['sort'] == \"subject\") {
      $sortby = \"filmai_pav\";
   } else if ($_GET['sort'] == \"author\") {
      $sortby = \"filmai_apr\";
   }
   $ssubject = search_querylike(\"filmai_pav\");
   $smessage = search_querylike(\"filmai_apr\");
   $sextended = search_querylike(\"filmai_kat0\");
   if ($_GET['fields'] == 0) {
      $fieldsvar = search_fieldsvar($ssubject);
   } else if ($_GET['fields'] == 1) {
      $fieldsvar = search_fieldsvar($smessage, $sextended);
   } else if ($_GET['fields'] == 2) {
      $fieldsvar = search_fieldsvar($ssubject, $smessage, $sextended);
   } else {
      $fieldsvar = \"\";
   }
   if ($fieldsvar) {
      $result = dbquery(\"SELECT * FROM \".DB_PREFIX.\"filmai WHERE \".$fieldsvar);   
      $rows = dbrows($result);
   } else {
      $rows = 0;
   }
   if ($rows != 0) {
      $items_count .= THEME_BULLET.\" 
href='\".FUSION_SELF.\"?stype=news&stext=\".$_GET['stext'].\"&\".$composevars.\"'>\".$rows.\"

\".($rows == 1 ? $locale['n401'] : $locale['n402']).\" \".$locale['522'].\"

\n\";
      $result = dbquery(
         \"SELECT * FROM \".DB_PREFIX.\"filmai tn
         WHERE \".$fieldsvar.\" ORDER BY \".$sortby.\" \".($_GET['order'] == 1 ? \"ASC\" :

\"DESC\").($_GET['stype'] != \"all\" ? \" LIMIT \".$_GET['rowstart'].\",10\" : \"\")
      );
      while ($data = dbarray($result)) {
         $search_result = \"\";
         $text_all = $data['filmai_apr'].\" \".$data['filmai_kat0'];
         $text_all = search_striphtmlbbcodes($text_all);
         $text_frag = search_textfrag($text_all);
         // $text_frag = highlight_words($swords, $text_frag);
         $subj_c = search_stringscount($data['filmai_pav']);
         $text_c = search_stringscount($data['filmai_apr']);
         $text_c2 = search_stringscount($data['filmai_kat0']);

         $search_result .= \"
href='filmai.php?filmas_id=\".$data['filmai_id'].\"'>\".$data['filmai_pav'].\"
a>\".\"

\n\";

         // $search_result .= \"
\".highlight_words($swords, $data['filmai_pav']).\"\".\"

\n\";
         $search_result .= \"

style='width:auto;height:auto;overflow:auto'>\".$text_frag.\"

\";
         $search_result .= \"\".$locale['global_070'].$data['filmai_kalba'].\"\n\";
         $search_result .= $locale['global_071'].$data['filmai_metai'].\"

\n\";
         $search_result .= \"\".$subj_c.\" \".($subj_c == 1 ? $locale['520'] :

$locale['521']).\" \".$locale['n403'].\" \".$locale['n404'].\", \";
         $search_result .= $text_c.\" \".($text_c == 1 ? $locale['520'] : $locale['521']).\" \".$locale['n403'].\"

\".$locale['n405'].\", \";
         $search_result .= $text_c2.\" \".($text_c2 == 1 ? $locale['520'] : $locale['521']).\"

\".$locale['n403'].\" \".$locale['n406'].\"


\n\";
         search_globalarray($search_result);
      }
   } else {
      $items_count .= THEME_BULLET.\" 0 \".$locale['n402'].\" \".$locale['522'].\"
\n\";
   }
   $navigation_result = search_navigation($rows);
}
?>




Redagavo Wyciokazz 2012-05-13 19:43
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
Domis17
#5 Spausdinti pranešimą
parašyta 2012-05-13 19:52
Pradinukas



Reputacija: 0

Pranešimai: 44
Įstojo: 2010-05-07

vo d�kuj labai , eilin� kart� Šypsosi
 
PM
Peršokti į forumą: