|
v7 Film Paie?ka
|
| Armin |
parašyta 2012-02-22 22:12
|
Pradinukas

Reputacija:
0
Pranešimai: 45
Įstojo: 2008-03-23
|
Sveiki, noriau pagalbos kuriant MYSQL paie?ka weberio film modui.
Gal kas padtumt?
Redagavo Wyciokazz 2012-02-22 22:52 |
| |
|
|
| Wyciokazz |
parašyta 2012-02-22 22:14
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Minutele palauk pabandysiu.
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] |
| |
|
|
| Armin |
parašyta 2012-02-22 22:20
|
Pradinukas

Reputacija:
0
Pranešimai: 45
Įstojo: 2008-03-23
|
ok |
| |
|
|
| Wyciokazz |
parašyta 2012-02-22 22:36
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Ieskos kaip naujienu locale persirasysi pats manau rasi jy locales/Lithuanian/search/news.php
includes/search/search_news_include.php
Sitas failas \/
Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| 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/licenses/agpl.html. 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.\" \".$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 .= \"\".$data['filmai_pav'].\"\".\"
\n\";
// $search_result .= \"\".highlight_words($swords, $data['filmai_pav']).\"\".\"
\n\";
$search_result .= \"\".$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);
}
?>
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] |
| |
|
|
| Armin |
parašyta 2012-02-22 22:45
|
Pradinukas

Reputacija:
0
Pranešimai: 45
Įstojo: 2008-03-23
|
Ai labai. :) |
| |
|
|
| Getfilm |
parašyta 2012-05-05 02:24
|

Apšylantis

Reputacija:
0
Pranešimai: 67
Įstojo: 2011-11-20
|
Sveiki atleiskite kad perkeliu o manoma padaryti kad perkeltu prie filmo komentaru ir informacijos ? o ne tiesigo tiesiai i per?ira ?? |
| |
|
|
| Wyciokazz |
parašyta 2012-05-05 11:58
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Aisku kad imanoma nuoroda paredaguok ir viskas.
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] |
| |
|
|
| Getfilm |
parašyta 2012-05-05 13:35
|

Apšylantis

Reputacija:
0
Pranešimai: 67
Įstojo: 2011-11-20
|
Gal galtum padt kur tiksliau ir k |
| |
|
|
| Wyciokazz |
parašyta 2012-05-05 16:01
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
-- Sita
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] |
| |
|
|
| Getfilm |
parašyta 2012-05-05 19:00
|

Apšylantis

Reputacija:
0
Pranešimai: 67
Įstojo: 2011-11-20
|
Bk ?mogus padarytk kaip bandau susirast. |
| |
|