uCoz Community » uCoz Modules » Additional Features » Site search (And everything that is related to it)
Site search
Natashko
Posts: 3366
Reputation: 171

Message # 1 | 2:41 PM

uCoz Web Service has its own Site search.

You do not have to install this module. It is installed by default and it is a required module.
Attention: it is impossible to deinstall the Site Search module!

Though it is possible to set it up or not to use it at all.

You can select the modules to search in:


We would like to draw your attention to the setting

Supplement search results by tags with the results of site search:
If the checkbox is tagged, the site search results will be shown after the search results by tags.
Here is how the site search results will look for the request: CINEMA

And this is the way the search results by the tag CINEMA will look (You will see them in addition with site search results).

Where the first result is the search result by the tag CINEMA. And the rest of he results are site search results for the request CINEMA.
(This is an example with the default settings of Appearance of entries. "Entry brief description" in the modules is also disabled)


It is not difficult to distinguish the search results by the tag from the site search results. The appearance of the site search entries is the following: module name + the date (day-month-year the time of adding the entry).

The appearance of the search entries by the tag is the following: module name + the title of the module category (nesting depth of an entry. The code $ENTRY_DEPTH$ is responsible for that)+the date when the entry was added (day.month.year).

It is also possible to distinguish the search results by the tag from the site search results with a help of the URL of the request:

The appearance of the request URL of the site search results is the following: http://siteaddress/search/?q=
The appearance of the request URL of the search results by the tag is the following: http://siteaddress/search/

If the checkbox “Supplement search results by tags with the results of site search:” is not tagged:
the search by tag will show the results for the request of this tag only. And the site search will show the results on the search requests only.

Site search module has design customization feature.

Search page – will help you to customize the design of the page with the results of the site search and the search by tags.
Appearance of entries – will help you to customize the appearance of search results entries.

Sitemap

Sitemap is generated automatically on each website now. Users do not have to create it any more. Sitemap files are updated automatically, approximately once a day (depends on how often the website is updated). URLs of Sitemap files are written in the default robots.txt file, which we advise not to change.
You can get URLs of the Sitemap in Control panel->Site search
Note on search forms: each site module has codes $SEARCH_FORM$ and $MODULE_SEARCH_FORM$
It means that either the form for the indexed search on the whole website ($SEARCH_FORM$) or form to search entries of a module ($MODULE_SEARCH_FORM$) can be embedded into the template of the modules. Of course, both forms can be used simultaneously in order to search on the whole website or to search entries of a certain module.

Addition: on the websites with uID login, uNet users' bar has a site search form: Userbar->Control->Site search

Note:
  • The new entries are indexed within 10 days.
  • The entries that are deleted from the website, disappear from the search results within 14 days
  • In order to re-index the entries in the catalog manually, you need to tag the checkbox “Entry date:“ and Save without making any other changes.

See how to enable Site Search here:

Attachments: 4952405.png (26.3 Kb) · 2896905.png (1.4 Kb) · 7026367.png (7.1 Kb) · 0944180.png (9.3 Kb) · 8864910.png (1.5 Kb)
Natashko
Posts: 3366
Reputation: 171

Message # 211 | 2:38 PM
gadget, the search doesn't work for HTML pages uploaded via File Manager.
gadget
Posts: 65
Reputation: 3

Message # 212 | 7:28 PM
Natashko, then can you tell me any solution for this.
Happiness comes to those who are moving toward something they want very much to happen. And it almost always involves making someone else happy.

LOL
Gadget
Natashko
Posts: 3366
Reputation: 171

Message # 213 | 8:33 AM
gadget,
Quote (gadget)
then can you tell me any solution for this.

I can suggest you not to use use .html files as your site. It is said in our FAQ that - If you need a simple static site constructed of html pages, uCoz is not what you need. I also suggest you to create pages with the help of Page Editor. Then your problem will be solved.
gadget
Posts: 65
Reputation: 3

Message # 214 | 1:18 PM
Natashko, thanks for your suggestion, I'll try to use such advice.
Happiness comes to those who are moving toward something they want very much to happen. And it almost always involves making someone else happy.

LOL
Gadget
Movies-Source
Posts: 66
Reputation: 0

Message # 215 | 12:19 PM
hi guyes a have a movie site and i have all the movies on the file catalog...i want when someone search for a movie a picture to show and not just text...how can i make it? look ok this site
http://www.moviestime.co.cc/#
when you search an images shows...can anyone give me the code or something???????? please

natashko gave me this code

Movies-Source, Go to CP->Design->Design management(templates)->Site search->Search page
Substitute $BODY$ with:
Code
<div id="searchText">$BODY$</div>

Embed the code at the bottom of the template before :
Code
<script type="text/javascript">
$(document).ready(function(){
/*Start DocumentReady*/
$('#searchText table.eBlock div.eTitle a').each(function(){
var el=$(this),$this=el.parents('table.eBlock'),url=el.attr('href');
if(/load|publ|blog|dir|news/i.test(url.toLowerCase())){
$.get(url,{},function(data){
var src=$(data).find('td.eMessage img:eq(0)').attr('src')||'undefined';
if(src!=='undefined'){
$this.find('div.eMessage').prepend($('<img/>').attr('src', src).addClass('preview'));
};});};});
/*End DocumentReady*/
});
</script>

Then before embed:
Code
<style type="text/css">
/* StartStyle */
img.preview{width:100px;height:100px;float:left;margin:3px 7px 3px 0px;display:inline;}
/* EndStyle */
</style>

Where width:100px;height:100px - is the size of your image

but i don't know where to post it....can someone explain me in details?
Natashko
Posts: 3366
Reputation: 171

Message # 216 | 12:25 PM
Movies-Source,
Quote (Movies-Source)
but i don't know where to post it....can someone explain me in details?

Please read the answer carefully before asking questions!!!
Everything is there. Go to Control Panel->Design->Design management(templates)->Site search->Search page. That is where you substitute $BODY$ with the code I have provided. And embed the second code there.
Movies-Source
Posts: 66
Reputation: 0

Message # 217 | 12:38 PM
the code on my site is like that

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<title><?if($SEARCH_QUERY$)?>$SEARCH_QUERY$ - <?endif?>Search</title>
<?$META_DESCRIPTION$?>
<link type="text/css" rel="StyleSheet" href="http://s52.ucoz.net/src/css/381.css" />
</head>

<body style="background:url('/.s/t/381/1.jpg') #FBFBD9; margin:0px; padding:0px;">
$ADMIN_BAR$
$GLOBAL_AHEADER$

<table cellpadding="0" cellspacing="10" border="0" width="100%"><tr><td style="background:url('/.s/t/381/16.jpg');padding:10px;border:1px solid #DBB270;">
<!-- <middle> -->
<!-- <body> --><div style="padding:0 0 5px 0;">$SEARCHFORM$</div><div style="padding:4px 4px 0 4px;"><!--<s5248>-->Results <b>$NUM_SHOWN$</b> of <b>$NUM_ENTRIES$</b> for the request <b>$SEARCH_QUERY$</b><!--</s>--></div><hr/>
$BODY$<div align="center">$PAGE_SELECTOR$</div><!-- </body> -->
<!-- </middle> -->
</td></tr></table>

</td>

<td valign="top" width="202" style="padding:10px 0px 10px 0px;">
$GLOBAL_CLEFTER$
</td>

</td><td width="10"> </td></tr></table>

$GLOBAL_BFOOTER$

</body>

</html>

can you make the code exactly? i tried but nothing sad please natashko
redhead
Posts: 113
Reputation: 9

Message # 218 | 12:47 PM
Movies-Source, your code should look like this:
Post edited by redhead - Monday, 2011-08-29, 12:51 PM
Movies-Source
Posts: 66
Reputation: 0

Message # 219 | 12:52 PM
are you sure redhead, ?
Natashko
Posts: 3366
Reputation: 171

Message # 220 | 12:56 PM
Movies-Source, I confirm. The code that was suggested is correct.
Movies-Source
Posts: 66
Reputation: 0

Message # 221 | 12:58 PM
right...i paste the same code but still nothing...do i have to wait?
Natashko
Posts: 3366
Reputation: 171

Message # 222 | 1:22 PM
Movies-Source,
Quote (Movies-Source)
right...i paste the same code but still nothing...do i have to wait?

Provide the website address for us to check.
Movies-Source
Posts: 66
Reputation: 0

Message # 223 | 1:30 PM
http://mouvadiko.com
please tell me after
Natashko
Posts: 3366
Reputation: 171

Message # 224 | 1:35 PM
Movies-Source, we do not see any changes. Most probably you have embedded it in the wrong template. Make sure to go to Control Panel->Design->Design management(templates)->Site search->Search page. Do not forget to click Save at the bottom of the page!
Movies-Source
Posts: 66
Reputation: 0

Message # 225 | 2:04 PM
i did it but when i try to search look what sjows me sad
http://mouvadiko.com/search/?q=rec

Added (2011-08-29, 8:04 Am)
---------------------------------------------
did you see?

uCoz Community » uCoz Modules » Additional Features » Site search (And everything that is related to it)
Search: