Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Adding ScanAlert to search side box

    hello everyone,

    i am trying to achieve putting the hacker safe logo into the search sidebox. everything i have tried leaves the hacker logo outside of the sidebox. this picture was done in frontpage usual html ..
    this is what i tried.. altering the file: includes/templates/my_template/sideboxes/tpl_search.php. this is what is in its original state:
    PHP Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_search.php 4142 2006-08-15 04:32:54Z drbyte $
     */
      
    $content "";
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent centeredContent">';
      
    $content .= zen_draw_form('quick_find'zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT'''NONSSL'false), 'get');
      
    $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
      
    $content .= zen_draw_hidden_field('search_in_description''1') . zen_hide_session_id();

      if (
    strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
        
    $content .= zen_draw_input_field('keyword''''size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
        
    $content .= '<br /><a href="' zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' BOX_SEARCH_ADVANCED_SEARCH '</a>';
      } else {
        
    $content .= zen_draw_input_field('keyword''''size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' HEADER_SEARCH_DEFAULT_TEXT '" onfocus="if (this.value == \'' HEADER_SEARCH_DEFAULT_TEXT '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' HEADER_SEARCH_DEFAULT_TEXT '\';"') . '<br /><input type="submit" value="' HEADER_SEARCH_BUTTON '" style="width: 50px" />';
        
    $content .= '<br /><a href="' zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' BOX_SEARCH_ADVANCED_SEARCH '</a>';
      }

      
    $content .= "</form>";
      
    $content .= '</div>';
    ?>
    this is how i altered it:
    PHP Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_search.php 4142 2006-08-15 04:32:54Z drbyte $
     */
      
    $content "";
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent centeredContent">';
      
    $content .= zen_draw_form('quick_find'zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT'''NONSSL'false), 'get');
      
    $content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
      
    $content .= zen_draw_hidden_field('search_in_description''1') . zen_hide_session_id();

      if (
    strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
        
    $content .= zen_draw_input_field('keyword''''size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);
        
    $content .= '<br /><a href="' zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' BOX_SEARCH_ADVANCED_SEARCH '</a>';
      } else {
        
    $content .= zen_draw_input_field('keyword''''size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px" value="' HEADER_SEARCH_DEFAULT_TEXT '" onfocus="if (this.value == \'' HEADER_SEARCH_DEFAULT_TEXT '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' HEADER_SEARCH_DEFAULT_TEXT '\';"') . '<br /><input type="submit" value="' HEADER_SEARCH_BUTTON '" style="width: 50px" />';
        
    $content .= '<br /><a href="' zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' BOX_SEARCH_ADVANCED_SEARCH '</a>';
      }

    ?>

    <table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1">
      <tr>
        <td align="center" style="border-top: 1px dashed #C0C0C0"><!-- START SCANALERT CODE -->
    <a target="_blank" href="xxxxxxxxx/www.batteriesinaflash.com">
    <img width="115" height="30" border="0" src="xxxxxxxx/www.batteriesinaflash.com/32.gif" alt="HACKER SAFE certified sites prevent over 99.9% of hacker crime." oncontextmenu="alert('Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert'); return false;" style="position: relative; top: 10; "></a>
    <!-- END SCANALERT CODE --></td>
      </tr>
    </table>

    <?php

      $content 
    .= "</form>";
      
    $content .= '</div>';
    ?>
    this leave the image in floating in wierd places. Am i going about this all wrong? wht else should i try. my desired output is the picture or attachment.

    thank you,
    batteryman

    ps i dont want it in another sidebox.
    Attached Images Attached Images  
    User of zencart

  2. #2
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Re: Adding ScanAlert to search side box

    I still am looking for an answer to this problem.. if anyone could look at what it should look like in the attachment and tell me how to achieve it.

    Thanks
    Avel
    User of zencart

 

 

Similar Threads

  1. Formating Side Box Search
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jun 2010, 10:37 AM
  2. search in side box
    By uniqueliving in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 1 May 2010, 09:48 AM
  3. Search text input box width (in side box)
    By joshuaholland in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Apr 2010, 01:11 PM
  4. Adding ScanAlert to Credit Card Sidebox
    By gems14k in forum Basic Configuration
    Replies: 0
    Last Post: 27 Nov 2006, 08:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg