PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Change Search and Results template to php page?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change Search and Results template to php page?

    New to Zoom.

    I am placing the Zoom Search and Results inside div containers located on
    php pages.

    However the template is html and the search defaults to this template page.

    I just want to change the default from html to php.

    I have been looking for how to change this and wanted to know if there is a solution that is used for best results.?

    Thanks

  • #2
    My Process

    So here is how I am setting up Zoom:

    On the search_template.html I copy all of the code between the body tags.

    Then on a page I have already built with my navigation and other elements I place the zoom body code copied earlier inside a Div container.
    (also add the css elements between the head tags)

    Then save that page as search-template.html

    However, on the page I pasted the zoom body code to, I have my own php elements on the page.

    When I open search.php all of the search features work the page looks fine but none of my php elements work.

    Any ideas?

    Comment


    • #3
      What we believe to be the best approach is detailed in this FAQ.
      Q. How can I add server-side scripting (eg. PHP, ASP) to the search template?

      Comment


      • #4
        Remove <b> tags

        Thanks for the input on the suggested way of placing the Zoom engine.

        I just used the page and removed my php, just to keep it simple. Looks fine now.

        My problem now is on the results i get the html tags showing up. Like the <b> tags.
        Example:

        2. Get the Skinny on Video ~ More information ~ Skinny Pixel Technologies Inc.
        ... Home<b> <b>Advertising<b> <b> Main Ad Page<b> <b>Details For Print<b> < ...
        Terms matched: 1

        How do I get rid of those <b> tags?

        Comment


        • #5
          My guess would be that you have a HTML syntax error on the page in question. What is the URL for this page, so we can see it?

          Comment


          • #6
            The site is still under construction;

            http://www.skinnypixel.com/search/search.php

            Comment


            • #7
              I think I see where the tags are coming from. My Flash Menu.

              Thanks I just needed to rule out that it was not a zoom deal.

              Thanks for your help.
              I will be upgrading to a purchased version of Zoom shortly.

              Comment


              • #8
                Yes the <b> tags do appear to be coming from my menu code;

                <a href='../targeted/index.php'>&lt;b&gt;Professionals Home&lt;/b&gt;</a>

                However I need the fonts to be bold in the menu and the <strong> tag will offset the menu (Flash menu)

                So I tried reading up but I can not find an alternative.

                So the <b> still remain in the Results Page.

                Is
                &lt;b&gt;Professionals Home&lt;/b&gt;
                not a proper tag? Or is there a way to strip the b's in the results.

                Comment


                • #9
                  No, that is not a proper tag. You have used HTML entities by replacing "<" with "&lt;" and ">" with "&gt;". I would recommend looking up an introductory tutorial on HTML regarding HTML entities.

                  By using HTML entities, you are not only failing to mark that text as bold, you are asking the browser and any web client to show the text as "<b>" and not interpret it as HTML.
                  --Ray
                  Wrensoft Web Software
                  Sydney, Australia
                  Zoom Search Engine

                  Comment


                  • #10
                    See also this FAQ
                    Q. How do I prevent parts of my webpage from being indexed (eg. exclude navigation menus, or page footers)?

                    Comment


                    • #11
                      Thanks guys for your help.

                      Comment

                      Working...
                      X