|
v7 Padëkit su paie?ka
|
| RaZoRaS |
parašyta 2012-05-17 15:32
|
Apšylantis

Reputacija:
0
Pranešimai: 80
Įstojo: 2011-10-15
|
Padëkit kasnors su filmu paie?a filmu webui.
I?nar?iau visà phpfusion.lt neradau normalios paie?kos pritaikytos filmu webui va pvz: http://phpfusion.lt/forum/viewthread.php?thread_id=10835&highlight=paie%F0ka+filmu&pid=64283#post_64283 bet ?itas neveikia
Man reikia ka?ko pana?au á filmai.in ar gerifilmai.net ( nereklamuoju )
Ádëkit kodà èia ir pamokà kaip kur viskà ákelti, aèiû. |
| |
|
|
| Wyciokazz |
parašyta 2012-05-17 19:17
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Tai gal ponaiti rasyk kas neveikia o ne neveikia ir vsio padarykit tik uz pinigus galima padaryt uz tave nes tikrai tyngiu dirbt rasyk nebent kas ten neveikia.
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] |
| |
|
|
| gipsy |
parašyta 2012-05-17 20:18
|

Geradarys

Reputacija:
0
Pranešimai: 585
Įstojo: 2009-10-21
|
Ant kokios sistemos tau reikia paieskos? weberio ar paprastos kuri eina nuo naujienu?
Gryzau  |
| |
|
|
| Domis17 |
parašyta 2012-05-17 22:26
|
Pradinukas

Reputacija:
0
Pranešimai: 44
Įstojo: 2010-05-07
|
Perdarinejau search.php savo filmu svetainei , bet nenaudoju , jeigu veiks tada va gero naudojimo :
Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: search.php by www.ziopsok.wu.lt
| Author: Robert Gaudyn (Wooya) redagavo : www.ziopsok.wu.lt
+--------------------------------------------------------+
| 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).
+--------------------------------------------------------*/
require_once \"maincore.php\";
require_once THEMES.\"templates/header.php\";
include LOCALE.LOCALESET.\"search.php\";
add_to_title($locale['global_202']);
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) { $_GET['rowstart'] = 0; }
if (isset($_GET['stext'])) {
if (is_array($_GET['stext'])) {
redirect(FUSION_SELF);
} else {
$_GET['stext'] = urlencode(stripinput($_GET['stext']));
}
} else {
$_GET['stext'] = \"\";
}
if (isset($_GET['method'])) { $_GET['method'] = ($_GET['method']==\"OR\" || $_GET['method']==\"AND\") ? $_GET['method'] : \"OR\"; }
else { $_GET['method'] = \"OR\"; }
if (isset($_GET['datelimit'])) { $_GET['datelimit'] = isnum($_GET['datelimit']) ? $_GET['datelimit'] : 0; }
else { $_GET['datelimit'] = 0; }
if (isset($_GET['fields'])) { $_GET['fields'] = isnum($_GET['fields']) ? $_GET['fields'] : 2; }
else { $_GET['fields'] = 2; }
if (isset($_GET['sort'])) { $_GET['sort'] = in_array($_GET['sort'], array(\"datestamp\", \"subject\", \"author\")) ? $_GET['sort'] : \"datestamp\"; }
else { $_GET['sort'] = \"datestamp\"; }
if (isset($_GET['order'])) { $_GET['order'] = isnum($_GET['order']) ? $_GET['order'] : 0; }
else { $_GET['order'] = 0; }
if (isset($_GET['chars'])) { $_GET['chars'] = isnum($_GET['chars']) ? ($_GET['chars'] > 200 ? 200 : $_GET['chars']) : 50; }
else { $_GET['chars'] = 50; }
if (isset($_GET['forum_id'])) { $_GET['forum_id'] = isnum($_GET['forum_id']) ? $_GET['forum_id'] : 0; }
else { $_GET['forum_id'] = 0; }
$radio_button = array();
$form_elements = array();
$available = array();
$dh = opendir(INCLUDES.\"search\");
while (false !== ($entry = readdir($dh))) {
if ($entry != \".\" && $entry != \"..\" && preg_match(\"/include_button.php/i\", $entry)) {
$available[] = str_replace(\"search_\", \"\", str_replace(\"_include_button.php\", \"\", $entry));
}
}
closedir($dh);
$available[] = \"all\";
if (isset($_GET['stype'])) { $_GET['stype'] = in_array($_GET['stype'], $available) ? $_GET['stype'] : \"all\"; }
if (!isset($_GET['stype'])) { $_GET['stype'] = $settings['default_search']; }
$c_available = count($available);
for ($i = 0; $i < $c_available - 1; $i++) {
include (INCLUDES.\"search/search_\".$available[$i].\"_include_button.php\");
}
sort($radio_button);
opentable($locale['400']);
// maybe rewrite with jQuery
$search_js = \"\";
add_to_footer($search_js);
echo \"\n\";
closetable();
function search_striphtmlbbcodes($text) {
$text = preg_replace(\"[\[(.*?)\]]\", \"\", $text);
$text = preg_replace(\"<\<(.*?)\>>\", \"\", $text);
return $text;
}
function search_textfrag($text) {
if ($_GET['chars'] != 0) {
$text = nl2br(stripslashes(substr($text, 0, $_GET['chars']).\"...\"));
} else {
$text = nl2br(stripslashes($text));
}
return $text;
}
function search_stringscount($text) {
global $swords;
$count = 0; $c_swords = count($swords); //sizeof($swords)
for ($i = 0; $i < $c_swords; $i++) {
$count += substr_count(strtolower($text), strtolower($swords[$i]));
}
return $count;
}
function search_querylike($field) {
global $swords;
$querylike = \"\"; $c_swords = count($swords); //sizeof($swords)
for ($i = 0; $i < $c_swords; $i++) {
$querylike .= $field.\" LIKE '%\".$swords[$i].\"%'\".($i < $c_swords - 1 ? \" \".$_GET['method'].\" \" : \"\");
}
return $querylike;
}
function search_fieldsvar() {
$fieldsvar = \"(\";
$numargs = func_num_args();
for ($i = 0; $i < $numargs; $i++) {
$fieldsvar .= func_get_arg($i).($i < $numargs - 1 ? \" || \" : \"\");
}
$fieldsvar .= \")\";
return $fieldsvar;
}
function search_globalarray($search_result) {
global $search_result_array, $global_string_count, $memory_limit;
$global_string_count += strlen($search_result);
if ($memory_limit > $global_string_count) {
$search_result_array[] = $search_result;
$memory_exhaused = false;
} else {
$memory_exhaused = true;
}
return $memory_exhaused;
}
function search_navigation($rows) {
global $site_search_count, $composevars;
$site_search_count += $rows;
$navigation_result = \"\n\".makePageNav($_GET['rowstart'], 10, ($site_search_count > 100 || search_globalarray(\"\") ? 100 : $site_search_count), 3, FUSION_SELF.\"?stype=\".$_GET['stype'].\"&stext=\".urlencode($_GET['stext']).\"&\".$composevars).\"\n \n\";
return $navigation_result;
}
$composevars = \"method=\".$_GET['method'].\"&datelimit=\".$_GET['datelimit'].\"&fields=\".$_GET['fields'].\"&sort=\".$_GET['sort'].\"&order=\".$_GET['order'].\"&chars=\".$_GET['chars'].\"&forum_id=\".$_GET['forum_id'].\"&\";
$memory_limit = str_replace(\"m\", \"\", strtolower(ini_get(\"memory_limit\"))) * 1024 * 1024;
$memory_limit = !isnum($memory_limit) ? 8 * 1024 * 1024 : $memory_limit < 8 * 1024 * 1024 ? 8 * 1024 * 1024 : $memory_limit;
$memory_limit = $memory_limit - ceil($memory_limit / 4);
$global_string_count = 0;
$site_search_count = 0;
$search_result_array = array();
$navigation_result = \"\";
$items_count = \"\";
$_GET['stext'] = urldecode($_GET['stext']);
if ($_GET['stext'] != \"\" && strlen($_GET['stext']) >= 3) {
add_to_title($locale['global_201'].$locale['408']);
opentable($locale['408']);
$fswords = explode(\" \", $_GET['stext']);
$swords = array();
$iwords = array();
$c_fswords = count($fswords); //sizeof($fswords)
for ($i = 0; $i < $c_fswords; $i++) {
if (strlen($fswords[$i]) >= 3) {
$swords[] = $fswords[$i];
} else {
$iwords[] = $fswords[$i];
}
}
unset($fswords);
$c_swords = count($swords);
if ($c_swords == 0) { redirect(FUSION_SELF); } //sizeof($swords)
$higlight = \"\"; $i = 1;
foreach ($swords as $hlight) {
$higlight .= \"'\".$hlight.\"'\";
$higlight .= ($i < $c_swords ? \",\" : \"\");
$i++;
}
add_to_head(\"\");
$highlight_js = \"\";
add_to_footer($highlight_js);
if ($_GET['stype'] == \"all\") {
$dh = opendir(INCLUDES.\"search\");
while (false !== ($entry=readdir($dh))) {
if ($entry != \".\" && $entry != \"..\" && preg_match(\"/include.php/i\", $entry)) {
include (INCLUDES.\"search/\".$entry);
}
}
closedir($dh);
} else {
include INCLUDES.\"search/search_\".$_GET['stype'].\"_include.php\";
}
$c_iwords = count($iwords);
if ($c_iwords) {
$txt = \"\";
for ($i = 0; $i < $c_iwords; $i++) {
$txt .= $iwords[$i].($i < $c_iwords - 1 ? \", \" : \"\");
}
echo \"\".sprintf($locale['502'], $txt).\" \";
}
if ($_GET['stype'] == \"all\") {
$navigation_result = search_navigation(0);
echo \"\".$items_count.\" \".THEME_BULLET.\" \".(($site_search_count>100 || search_globalarray(\"\"))?sprintf($locale['530'], $site_search_count):$site_search_count.\" \".$locale['510']).\" \";
} else {
echo $items_count.\" \";
echo (($site_search_count>100 || search_globalarray(\"\")) ? \"\".sprintf($locale['530'], $site_search_count).\" \" : \"\");
}
$c_search_result_array = count($search_result_array);
if ($_GET['stype'] == \"all\") {
$from = $_GET['rowstart'];
$to = ($c_search_result_array - ($_GET['rowstart'] + 10)) <= 0 ? $c_search_result_array : $_GET['rowstart'] + 10;
} else {
$from = 0;
$to = $c_search_result_array < 10 ? $c_search_result_array : 10;
}
echo \"\n\";
for ($i = $from; $i < $to; $i++) {
echo $search_result_array[$i];
}
echo \" \n\";
echo $navigation_result;
closetable();
} elseif (isset($_GET['stext'])) {
add_to_title($locale['global_201'].$locale['408']);
opentable($locale['408']);
echo $locale['501'];
closetable();
}
require_once THEMES.\"templates/footer.php\";
?>
|
| |
|
|
| RaZoRaS |
parašyta 2012-05-18 05:39
|
Apšylantis

Reputacija:
0
Pranešimai: 80
Įstojo: 2011-10-15
|
Wyciokazz para?ë:
Tai gal ponaiti rasyk kas neveikia o ne neveikia ir vsio padarykit tik uz pinigus galima padaryt uz tave nes tikrai tyngiu dirbt rasyk nebent kas ten neveikia.
Èia taip su tà nuoroda kur ank?èiau paminëjau ( http://phpfusion.lt/forum/viewthread.php?thread_id=10835&highlight=paie%F0ka+filmu&pid=64283#post_64282 )
 |
| |
|
|
| Wyciokazz |
parašyta 2012-05-18 09:04
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Tai kad jis lenteles neranda filmu moda tikrai isirases tu ir pridejes filmu? Prefixas atitinka aprasoma cia prefixa?
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] |
| |
|
|
| minimukas |
parašyta 2012-05-18 09:36
|

Geradarys

Reputacija:
0
Pranešimai: 602
Įstojo: 2009-06-11
|
RaZoRaS - tu ne weberio moda turi ;DD o ant naujienu padaryta ir laukeliai neatitinka taine filmai turi but, o ."perfix_news".
www.nusirasinek.lt - Pratybų atsakymai |
| |
|
|
| Wyciokazz |
parašyta 2012-05-18 10:18
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Naudoja visokius pasenusius modus ir zyzia man po to jog as blogas.
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] |
| |
|
|
| RaZoRaS |
parašyta 2012-05-20 11:25
|
Apšylantis

Reputacija:
0
Pranešimai: 80
Įstojo: 2011-10-15
|
minimukas para?ë:
RaZoRaS - tu ne weberio moda turi ;DD o ant naujienu padaryta ir laukeliai neatitinka taine filmai turi but, o ."perfix_news".
Per skype neatsakai. Kokiam faile reikia pakeiti tà i? filmai á news? |
| |
|
|
| minimukas |
parašyta 2012-05-20 18:57
|

Geradarys

Reputacija:
0
Pranešimai: 602
Įstojo: 2009-06-11
|
Ta faila kur redaguojies(kur paieska darais)
P.S. atsijungiau nuo skypes, nes visi rasineja(atsibodo)
Redagavo minimukas 2012-05-20 18:57
www.nusirasinek.lt - Pratybų atsakymai |
| |
|
|
| Wyciokazz |
parašyta 2012-05-20 19:43
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Minimuk You coming back to life i'm glad to hear this :D
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] |
| |
|
|
| RaZoRaS |
parašyta 2012-05-20 20:33
|
Apšylantis

Reputacija:
0
Pranešimai: 80
Įstojo: 2011-10-15
|
Dabar toje paèioje vietoje meta Unknown column 'news_pav' in 'where clause'
P.S naudoju wyziokazz kodà http://phpfusion.lt/forum/viewthread.php?thread_id=10835&highlight=paie%F0ka+filmu&pid=64283#post_64283 apaèioje |
| |
|
|
| Wyciokazz |
parašyta 2012-05-20 20:39
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
is kur jam istraukti news_pav turetu but jauciu news_subject
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] |
| |
|
|
| RaZoRaS |
parašyta 2012-05-20 21:03
|
Apšylantis

Reputacija:
0
Pranešimai: 80
Įstojo: 2011-10-15
|
Wyciokazz para?ë:
is kur jam istraukti news_pav turetu but jauciu news_subject
Toliau pra?o pakeisti
$smessage = search_querylike("news_apr");
$sextended = search_querylike("news_kat0");
kas vietoj apr ir kat0 gali bûti? |
| |
|
|
| Getfilm |
parašyta 2012-05-20 21:16
|

Apšylantis

Reputacija:
0
Pranešimai: 67
Įstojo: 2011-11-20
|
Sveiki kad nevarktumetë dovanoju savo susitvarkyta paieskos faila , ji reikia ikelti i include/sarch , tai yra wycioko tik truputëli pasikeites kad surasta faila paspaudzius ant jo numestu á jo apra?yma o ne i?karta á per?iûra èia yra minimuko ir weberio modui tai lyg orginali tik filmø modui.
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.\" \".$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);
}
?>
A? vytiokas , kitaip Vytautas , pradëjau domëtis php kalba ir jos pradmenu mokintis |
| |
|
|
| gipsy |
parašyta 2012-05-20 21:28
|

Geradarys

Reputacija:
0
Pranešimai: 585
Įstojo: 2009-10-21
|
Jam juk reike ne ant weberio o ant naujienu paieskos
Gryzau  |
| |
|
|
| Wyciokazz |
parašyta 2012-05-20 21:40
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
galetu ir pats pasiziuret uzuomina esu daves o tik verkia jis cia amzinai uz tave niekas nepadarys nori galiu bet uz tai man sumokek.
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] |
| |
|
|
| gipsy |
parašyta 2012-05-20 22:31
|

Geradarys

Reputacija:
0
Pranešimai: 585
Įstojo: 2009-10-21
|
mokek man jis nepatikimas :D
Gryzau  |
| |
|
|
| Wyciokazz |
parašyta 2012-05-20 22:51
|

Administratorius

Reputacija:
1
Pranešimai: 2108
Įstojo: 2008-02-27
|
Man mokekit pinigus ir dar neto jum galiu pridaryt :D
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] |
| |
|
|
| gipsy |
parašyta 2012-05-20 22:59
|

Geradarys

Reputacija:
0
Pranešimai: 585
Įstojo: 2009-10-21
|
:D
Gryzau  |
| |
|