Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
PHP unset

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
Chombila



Joined: 22 Dec 2003
Posts: 248

PostPosted: 03.05.2004 11:57    Post subject: PHP unset Add user to your forum ignore list Reply with quote

prvo da napomenem koristim cutenews, i ne baratam sa PHP-om (ono kontam nešto)
neznam kak da ovo opišem pa evo link:
http://www.zeleni.hr/aler

problem je ovaj:

kad se ode na pod TISKANO IZDANJE -> VIŠE ( kod: include("$path/trenutni_broj.htm"); )
(pod naslovom TRENUTNI BROJ) i kada se sada pretražuje sa tražilicom (najbolje upisati: "tonere" pošo znam da ima taj tekst),
sve fino radi, prikaže rezultate ali kada se klikne na rezultat, ne prikazuje rezultat nego ponovno vraća na TRENUTNI BROJ.

moje je neko mišljenje da to ima veze sa unset-om...
ali ako neko zna riješenje...pomoć je dobrodošla Smile
Back to top
View user's profile Send private message
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 03.05.2004 12:14    Post subject: Add user to your forum ignore list Reply with quote

ovak, kada odes na search onda ti ispljune ovakav rezultat::

Code:
http://www.zeleni.hr/aler/index.php?[b]misc=search[/b]&subaction=showfull&id=1083265306&archive=&cnshow=news&start_from=&do=trenutni_broj


a kada ides regularno na "vise o tome" onda dobijes nesto ovako:

Code:
http://www.zeleni.hr/aler/index.php?subaction=showfull&id=1083265306


dakle, na search pageu mu moras maknut u query stringu "?misc=search" i staviti da ti prvo bude "?subaction=showfull&id=..........." jer inace dobis blank result posto trazi stvar na krivom mjestu.
Back to top
View user's profile Send private message
Chombila



Joined: 22 Dec 2003
Posts: 248

PostPosted: 03.05.2004 12:50    Post subject: Add user to your forum ignore list Reply with quote

hm...probao sam našto čačkati ali neradi

evo kod iz search.php filea što sam otprilike skonto da bi se to tu nešto moglo izmjeniti
ali što sve i kako Question

Code:

////////// Showing Result

                    echo"<br /><b><a href=\"$PHP_SELF?misc=search&subaction=showfull&id=$local_id&archive=$archive&cnshow=news&start_from=&$user_query\">$item_arr[2]</a></b> (". date("d F, Y", $item_arr[0]) .")";

////////// End Showing Result
                }
            }
         }
     }else{ echo"There are no news matching your search criteria"; }

}//if user wants to search
elseif( ($misc == "search") and ($subaction == "showfull" or $subaction == "showcomments" or $_POST["subaction"] == "addcomment" or $subaction == "addcomment")){

   require_once("$cutepath/show_news.php");

   unset($action,$subaction);
}
Back to top
View user's profile Send private message
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 03.05.2004 13:00    Post subject: Add user to your forum ignore list Reply with quote

Code:
  echo"<br /><b><a href=\"$PHP_SELF?subaction=showfull&id=$local_id\">$item_arr[2]</a></b> (". date("d F, Y", $item_arr[0]) .")";
////////// End Showing Result
                }
            }
         }
     }else{ echo"There are no news matching your search criteria"; }

}//if user wants to search
elseif( ($misc == "search") and ($subaction == "showfull" or $subaction == "showcomments" or $_POST["subaction"] == "addcomment" or $subaction == "addcomment")){

   require_once("$cutepath/show_news.php");

   unset($action,$subaction);
}




probaj s ovim
Back to top
View user's profile Send private message
Chombila



Joined: 22 Dec 2003
Posts: 248

PostPosted: 03.05.2004 13:10    Post subject: Add user to your forum ignore list Reply with quote

e čovječe radi sada! Very Happy
svaka čast majstore, sam to nebi nikada skužio... Very Happy

pitanje:
to bi sada trebalo raditi sa bilo kojeg linka tj ovog izmjenjivog php djela?
Back to top
View user's profile Send private message
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 03.05.2004 13:15    Post subject: Add user to your forum ignore list Reply with quote

Chombila wrote:
pitanje:
to bi sada trebalo raditi sa bilo kojeg linka tj ovog izmjenjivog php djela?



pa ne znam, moras probati sam Smile
ako je to jedan ili glavni search file onda bi trebalo raditi od svugdje.
doduse, ja sam izvadio dosta toga iz querystringa tako da ti samo pokaze link na vijest koju si pronasao.

da budes ziher, mozda mozes upotrijebiti i ovaj kod (jako je slican):

Code:

////////// Showing Result

                    echo"<br /><b><a href=\"$PHP_SELF?subaction=showfull&id=$local_id&archive=$archive&cnshow=news&start_from=&$user_query\">$item_arr[2]</a></b> (". date("d F, Y", $item_arr[0]) .")";

////////// End Showing Result
                }
            }
         }
     }else{ echo"There are no news matching your search criteria"; }

}//if user wants to search
elseif( ($misc == "search") and ($subaction == "showfull" or $subaction == "showcomments" or $_POST["subaction"] == "addcomment" or $subaction == "addcomment")){

   require_once("$cutepath/show_news.php");

   unset($action,$subaction);
}


sad sam testiraj to sve pa javi ako nest ne radi.
Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group