Post by wackyracer8 » Wed May 02, 2012 5:58 pm

Hi guys I want to implement the standard search feature for a theme I purchased, it originally just had a link which then took the user to the search page, I want the search field in the header like the default theme.

I have copied the code from the default header.tpl file to the new theme but now I get this error;
/public_html/vqmod/vqcache/vq2-catalog_view_theme_vanityshop_template_common_header.tpl on line
146
I'm guessing I need to add some other code to the other files? some help to get this working would be appreciated.

OC version 1.5.2.1
Theme Vanity Shop

Cheers guys.

Active Member

Posts

Joined
Fri May 13, 2011 1:15 am

Post by inspirio » Wed May 02, 2012 6:01 pm

Maybe you miss a little part of source code or not?

Image


User avatar
New member

Posts

Joined
Fri Feb 17, 2012 9:11 pm

Post by wackyracer8 » Wed May 02, 2012 6:08 pm

The code I got in the header.tpl file for search is as follows;

Code: Select all

  <div id="search">
    <div class="button-search"></div>
    <?php if ($filter_name) { ?>
    <input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
    <?php } else { ?>
    <input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
    <?php } ?>
  </div>

Active Member

Posts

Joined
Fri May 13, 2011 1:15 am

Post by johan019 » Fri May 04, 2012 3:16 pm

On line 146 in your "new" header.tpl, what does it say?

New member

Posts

Joined
Fri Mar 09, 2012 12:52 am
Who is online

Users browsing this forum: No registered users and 21 guests