Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Search Engine:
how to custom results from Search?

 

 


toplisek
User

Mar 17, 2006, 2:02 AM

Post #1 of 23 (9147 views)
Shortcut
how to custom results from Search? Can't Post

I have two question. Please help...

- question: how to show results in my web layout?
I would like to show results within my web site. Now it shows me new window with results. Is there possibility to do this?

- question: basic search shows description from Meta search
When I search with basic search, it will show all content from
Meta description. Even I put Keyword Weights and Meta Description to 0 it will show all contant.

Need help.Smile


Cliff
Staff


Mar 17, 2006, 6:52 PM

Post #2 of 23 (9126 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi toplisek,

Thanks for posting and welcome to the discussion forum! I'll go over your questions one at a time.

1. I think that you are looking for instructions on how you make the search results look the way that you want, but if I'm off base just let me know.

Search Engine uses an HTML template system to control the look and feel of it's pages.

Our templates are normal HTML - with a few custom tags - that you can view normally in your browser. This makes it easy to look at the templates and see your changes before you upload them to your live site, and they're as easy to modify as any other HTML page.

Your templates are usually located on the server here:

/cgi-bin/searchengine/templates/

I've found that one of the best ones to start with is the /cgi-bin/searchengine/templates/search_results.html template.

By default, your search results are based off of the look and feel of this template. Think of it like a blueprint for how all the results are going to look. So using FTP, download this template from your web server to your computer. Here is a link to our online documentation regarding this template in case you want to read it:

http://www.interactivetools.com/docs/doc.cgi?/searchengine/doc_page43.html

You can modify the templates as easily as any other HTML file, using your favorite text or WYSIWYG web page editor such as HomeSite, UltraEdit, Dreamweaver, FrontPage, etc. When you open up this template (in the code view) you will 3 different elements:

1. HTML, which determines the page structure and appearance.

2. 'Template Cells': Some sections of HTML are only displayed in specific circumstances, such as a "Not Found" message on the search results page. Templatecells are used to define the boundaries of these sections.

3. 'Placeholders': Templates use Placeholders to tell the program where to insert content. They are the things with the $ around them like $description$ which is the placeholder for the description of the page. Each placeholder corresponds to different content.

From within these template you are able to apply the exact look and feel that you want.

2. From inside the templates you can control what is displayed and what is not. If you don't want to display the description, then you can simply remove the $description$ placeholder from the search results template!

I hope that helps get you started, but let me know if you need any more help Smile
Regards,
Cliff Stefanuk - Customer Service Manager
support@interactivetools.com


toplisek
User

Mar 19, 2006, 3:39 AM

Post #3 of 23 (9071 views)
Shortcut
Re: [Cliff] how to custom results from Search? [In reply to] Can't Post

1. QUESTION:
You quoted that your templates are usually located on the server here:/cgi-bin/searchengine/templates/

Is possible to move Search result file, which is in directory:
/cgi-bin/searchengine/templates/

and move it to my new directory?


ross
Staff / Moderator


Mar 19, 2006, 12:49 PM

Post #4 of 23 (9062 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi toplisek.

Thanks for posting again Smile.

Search Engine is going to need its templates folder to stay in the same location relative to you exec folder. What that means is you can move the templates folder anywhere on your server as long as the exec folder and its cgi files can run from the same location.

Perhaps you could let me know why you wanted to move the templates and I can see what options you have. How does that sound? I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




toplisek
User

Mar 20, 2006, 1:18 AM

Post #5 of 23 (9049 views)
Shortcut
Re: [ross] how to custom results from Search? [In reply to] Can't Post

thanks. What is defined as exec folder?

I need to move from current directory because I have relative path for page properties. That means that if I put html code in this template, it will not recognise properties for page.
I have to change (in this case) all links to absolute path.
It is easy to move results page in folder as all files for page.


(This post was edited by toplisek on Mar 20, 2006, 1:24 AM)


ross
Staff / Moderator


Mar 20, 2006, 12:09 PM

Post #6 of 23 (9030 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi toplisek.

There are going to be three folders that you’ll need to keep together:

data
exec
templates

They should all be in the same place right now though so finding them all won’t be difficult. As long as they all end up in the same folder again, they will be happy.

One thing to keep in mind when moving these folders around is that you’ll need to log into Search Engine and make sure all the paths on the Server tab of Setup Options are pointing to the right places.

Does that help? Keep me up to date on how you are making out. If you need a hand with anything, let me know Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




toplisek
User

Mar 20, 2006, 2:40 PM

Post #7 of 23 (9026 views)
Shortcut
Re: [ross] how to custom results from Search? [In reply to] Can't Post

Now I think I understand.
So, in Search Program URL I have to change path and I can move all 3 (together) to other destination?


Donna
Staff / Moderator


Mar 20, 2006, 4:41 PM

Post #8 of 23 (9023 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi there,

That's right -- as long as those three directories are in the same parent directory, you should be able to move it anywhere your hosting provider will allow. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


toplisek
User

Mar 21, 2006, 2:50 AM

Post #9 of 23 (9005 views)
Shortcut
Re: [Donna] how to custom results from Search? [In reply to] Can't Post

Sorry, but I have tested and my pages are in PHP, so Layout is made from include files. Is possible to transform search_results.HTML to extension PHP? Your Search results page is in HTML, but I need with PHP Smile


ross
Staff / Moderator


Mar 21, 2006, 12:29 PM

Post #10 of 23 (8987 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi there.

The search_result.html page is actually loaded dynamically through the search.cgi script. That means you should be able to use your PHP script on the page just fine. In fact, I have seen quite a few people working with PHP scripts on there search page already. Give it a shot and let me know how you make out Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




toplisek
User

Mar 21, 2006, 2:52 PM

Post #11 of 23 (8985 views)
Shortcut
Re: [ross] how to custom results from Search? [In reply to] Can't Post


In Reply To
Hi there.

The search_result.html page is actually loaded dynamically through the search.cgi script. That means you should be able to use your PHP script on the page just fine.

Thank you for your reply.

My layout is in PHP. If I search my web site, it will always show search_result.html. So, I do not understand your reply. E.g. My layout has files which are included.If I change search_result.html with the same name I can not include files because this page is HTML and not PHP.

Please suggest me what to do or I can change search.cgi that it will loaded dynamically my new file search_result.PHP


Donna
Staff / Moderator


Mar 21, 2006, 5:57 PM

Post #12 of 23 (8978 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi there,

Good to hear from you. :)

The extension on the template doesn't actually matter -- it's being loaded THROUGH the CGI script, not directly in the browser -- in fact, you should never be accessing the search_result.html through the browser. It could be named anything, but to make it simple for our customers, we chose to give it a .html extension.

So, when the page is run, it's actually a .cgi extension, not .html at all.

I hope this helps. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


toplisek
User

Mar 22, 2006, 2:17 AM

Post #13 of 23 (8965 views)
Shortcut
Re: [Donna] how to custom results from Search? [In reply to] Can't Post

thanks. Sorry but I do not undesstand completely.

I kindly ask you to inform me with procedure to include serch result page into my page if I have layout with PHP files.


ross
Staff / Moderator


Mar 22, 2006, 12:03 PM

Post #14 of 23 (8941 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi toplisek.

I am actually thinking that Search Engine will actually be able to just generate you some HTML that you can put onto your PHP page. That way, we don’t need to worry about setting up includes and things.

When you first log into Search Engine, the first page is going to have a little form that you can use to generate HTML code for three different kinds of search forms. Pick the one that you think is going to fit the best, hit the Go button and the code will appear automatically for you in the textbox bellow.

You can copy that code and use it on any page on your site. Does that seem like it’s going to work better for you?

Let me know if you need more detail Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




toplisek
User

Mar 22, 2006, 12:20 PM

Post #15 of 23 (8940 views)
Shortcut
Re: [ross] how to custom results from Search? [In reply to] Can't Post

Yes, it will work if I put your pure enigine code in my PHP files. This should work. When you will have this or I have to buy new one?


ross
Staff / Moderator


Mar 22, 2006, 3:26 PM

Post #16 of 23 (8934 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi again toplisek.

You can actually reuse that code as many time as you like on your site without having to pay for a new license. The only time a second license is needed would be when you wanted to have Search Engine do search more than one site. You’ll need to have one Search Engine per site but you can have as many different search forms on each one as you like.

Is that what you were looking for? Let me know if you need more details or I am not on the right track here Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




toplisek
User

Mar 23, 2006, 2:01 AM

Post #17 of 23 (8919 views)
Shortcut
Re: [ross] how to custom results from Search? [In reply to] Can't Post


In Reply To
I am actually thinking that Search Engine will actually be able to just generate you some HTML that you can put onto your PHP page. That way, we don't need to worry about setting up includes and things.


When it will be this modification?


(This post was edited by toplisek on Mar 23, 2006, 2:02 AM)


ross
Staff / Moderator


Mar 23, 2006, 2:24 PM

Post #18 of 23 (8898 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi toplisek.

I am not actually quite sure what you are asking here. Could you post me a couple more details? I am sure we’ll be able to get everything sorted out once we are both on the same pages as to what you want to get going.

I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




toplisek
User

Mar 24, 2006, 12:43 AM

Post #19 of 23 (8878 views)
Shortcut
Re: [ross] how to custom results from Search? [In reply to] Can't Post


In Reply To
Hi toplisek.

I am actually thinking that Search Engine will actually be able to just generate you some HTML that you can put onto your PHP page. That way, we don�t need to worry about setting up includes and things.


I do not understand your question. You have posted this above reply. Can you explain this reply, because I do not know what to do.


Donna
Staff / Moderator


Mar 24, 2006, 10:24 AM

Post #20 of 23 (8852 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi toplisek,

Can you give me a little more detail about how you're trying to format your page? Do you have an example of how you want it to look right now, or what type of code you're wanting to have on the page?

Once I get that, I can give you further instructions on how to make it happen. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


toplisek
User

Mar 24, 2006, 10:33 AM

Post #21 of 23 (8851 views)
Shortcut
Re: [Donna] how to custom results from Search? [In reply to] Can't Post

My web site is typical PHP web site. So, it is like e.g.

Code
<body> 
<!--Menu1-->
<?PHP
include("menu.php");
?>

<!--Username & logout-->
<?PHP include("user_welcome.php");?>
<!--END Username & logout-->


<!--Start Header-->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="header">
<tr>
<td height="119" align="left" valign="middle"> <img alt="" src="images/company_name.gif" width="304" height="53">
</td>
<td align="right" width="287"><img alt="" src="images/header_graphic.jpg" width="287" height="119"></td>
</tr>
</table>
<!--End Header-->

<!-- #End Main window-->
<?PHP include("footer.php");?>

</table>
</body>
</html>

I have to put search result within such PHP code. If I have layout with my code, I can not put my code within Search_result.HTML.


(This post was edited by toplisek on Mar 24, 2006, 10:34 AM)


ross
Staff / Moderator


Mar 26, 2006, 10:00 AM

Post #22 of 23 (8707 views)
Shortcut
Re: [toplisek] how to custom results from Search? [In reply to] Can't Post

Hi again toplisek.

I am actually thinking that PHP code just doesn’t work on the search engine pages because they are dynamic. This isn’t going to be specific to Search Engine though so I don’t think PHP code (or ASP, or any server side scripting) will work on dynamic pages.

With the search results page, I think the best alternative is going to be taking the contents of your PHP include file and adding it right to the template itself. Do you think that would work? It’s just one extra file that needs to be updated when you make changes to the header of your site.

Let me know what you think Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




toplisek
User

Mar 26, 2006, 10:40 AM

Post #23 of 23 (8706 views)
Shortcut
Re: [ross] how to custom results from Search? [In reply to] Can't Post

It can be done in such way that I include content manually.
Problem is
1. if I have on page also e.g. time which is updated with server time.
2. Problem is also with showing path of files called e.g. breadcrumb
3. if I have registered users, it should be PHP code which will track registered users. Plain HTML will not work.


So, just 3 examples that can not be solved and web site is not full functional.

Can you please tell me also about second question?
second question: basic search shows description from Meta search
When I search with basic search, it will show all content from
Meta description. Even I put Keyword Weights and Meta Description to 0 it will show all contant.


(This post was edited by toplisek on Mar 29, 2006, 1:28 PM)

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4