Hacker Safe and verisign secure website?

Get a Verisign SSL certificate for 30 days FREE. Click here to use coupon...

Get a free trial of Verisign SSL certificates. Click here for this special deal...
First question I got is Hacker Safe and verisign secure website? Thanks for any comment. Second question.. Hi eberybody...

I want to know witch code in witch file I have to change to be able to made a search with out entering a data..

Right now on a stock OSC if you click search it will return.

Enter at least 1 field.. bla bla bla....

But I want to be able to search leaving this as is..

So please what's the answer??.



Comments (158)

That's a good question. I'm not sure what is the answer. I'll do some research in Google and get back to you if I got an decent answer. You should email the people at Verisign as they probably could help you..

Comment #1

No... look in your advance search engine. you will see by defaul ALL categories and ALL manufacturer or selected..

So when you clic on search you receive the error message...

But I want the result of this search.

Base on this information I have other development to do. but first I have to solve this thing..

Thank's and if you can help me it will be appreciate.



Comment #2

You want the search to return all product for selected category?.

Removing error wont help, you'll still get nothing, this should do what you want.

In advanced_search.php.


$info_box_contents[] = array('text' => tep_draw_input_field('keywords', '', 'style="width: 100%"'));.

Replace with.

$info_box_contents[] = array('text' => tep_draw_input_field('keywords', '%', 'style="width: 100%"'));..

Comment #3

Thnk's sam just try it.. it works BUT I know the kind of customer they will came on the Verisign site and they can remove the % in the search critera and then click search. result: got the error message.

I'll try to find a way to hide this caractere.



PS: if someone found something please let me know..

Comment #4

The other things is if you leave the kewyord section empty and choose a categorie only it will return the same erro message.




Comment #5

A category search for nothing will return nothing, so % still required..

NB If you have an early version of Security Pro it will remove the %, if you don`t have Security Pro ADD IT NOW!!!.

If you don't want the % in the input field, modify the error code so if no input it inserts the % and passes...

Comment #6

Thank's spooks will try this...

But in fact i'm looking for something when I don't enter a keyword. look the default advance search is lloking to ALL categories and ALL manufacturer. so by defaulr if I click on search it should be retrun everything in stcok.... no??.

What do you think??.

Also the other problem I found is if I select only a categorie it return the same message but will do the search if I select a munafacturer only... strange???.

So I try this security pro and let you know.



Comment #7

By your logic if you enter nothing into google it should give you every web page in the world as a result!!!.


If you want that, do what I said, bouncing back silly ideas ain`t going to change it...

Comment #8

NO I never say that..

I think you don't understand what I do.. go see by yourself your advance search. by default ALL categories and ALL manufacturer are selected. so .. normaly if I hit the search button it should return the containt of ALL categories and ALL manufacturer. right...

Now try this. select only a categorie and hit the search button. please tell me what you have in answer??.



Comment #9

PROBLEM PROBLEM now nothing run like I want after I instal the security pro contribution..

First: the % character still in the keyword space..

Second: when I hit the search bar error message return... error at leat one ........

Third: now i'm unable to put the scale of my thing like 1/24 because now it doesn't support the / as a caracter..

SPOOKS or anybodyelse HELP ME what's wrong.. if you need any code let me know I will post them.



Comment #10

/ is a proble character, hence it's removal to sanitise..

To allow:.

In includes/functions/security.php.


Return preg_replace("/[^ {}a-zA-Z0-9_.-]/i", "", urldecode($get_var));.

Replace with:.

Return preg_replace("/[^ \/{}a-zA-Z0-9%_.-]/i", "", urldecode($get_var));..

Comment #11

Thank you now it accept my / but the % still visible???.

Is theyre an other file I have to edit??.



Comment #12


From reading the original post, does the OP want to display all products when the keyword is blank?? If so.

This thread.

Does that and I have it working on my site.



Comment #13

That was working. but now I added a contibution... product extra filed and now I receiving this message.

Warning: Invalid argument supplied for foreach() in C:\wamp\www\catalog\advanced_search_result.php on line 309.

This is what I have from line 308 to 333.

// START: Extra Fields Contribution Search Fields 1.0.

Foreach ($pef_values as $pef_id => $pef_value).


Tep_parse_search_string($pef_value, $pef_value_keywords);.

If (isset($pef_value_keywords) && (sizeof($pef_value_keywords) > 0)) {.

$where_str .= " and (";.

For ($i=0, $n=sizeof($pef_value_keywords); $i<$n; $i++ ) {.

Switch ($pef_value_keywords[$i]) {.

Case '(':.

Case ')':.

Case 'and':.

Case 'or':.

$where_str .= " "$pef_value_keywords[$i]" ";.



$keyword = tep_db_prepare_input($pef_value_keywords[$i]);.

$where_str .= "(p2pef.products_extra_fields_value like '%"tep_db_input($keyword)"%'";.

$where_str .= " AND p2pef.products_extra_fields_id = ". (int)$pef_id;.

$where_str .= ')';.




$where_str .= " )";.



// END: Extra Fields Contribution..

Comment #14

Ok now it' working I remove one } and it fo what is supposed to do.

Thank's to all who hel me with this one.



Comment #15

Hi eberybody...

I want to know witch code in witch file I have to change to be able to made a search with out entering a data..

Right now on a stock OSC if you click search it will return.

Enter at least 1 field.. bla bla bla....

But I want to be able to search leaving this as is..

So please what's the answer??.



Comment #16

Are you saying you want to search for nothing?.


Comment #17

This question was taken from a support group/message board and re-posted here so others can learn from it.


Categories: Home | Diet & Weight Management | Vitamins & Supplements | Herbs & Cleansing |

Sexual Health | Medifast Support | Nutrisystem Support | Medifast Questions |

Web Hosting | Web Hosts | Website Hosting | Hosting |

Web Hosting | GoDaddy | Digital Cameras | Best WebHosts |

Web Hosting FAQ | Web Hosts FAQ | Hosting FAQ | Hosting Group |

Hosting Questions | Camera Tips | Best Cameras To Buy | Best Cameras This Year |

Camera Q-A | Digital Cameras Q-A | Camera Forum | Nov 2010 - Cameras |

Oct 2010 - Cameras | Oct 2010 - DSLRs | Oct 2010 - Camera Tips | Sep 2010 - Cameras |

Sep 2010 - DSLRS | Sep 2010 - Camera Tips | Aug 2010 - Cameras | Aug 2010 - DSLR Tips |

Aug 2010 - Camera Tips | July 2010 - Cameras | July 2010 - Nikon Cameras | July 2010 - Canon Cameras |

July 2010 - Pentax Cameras | Medifast Recipes | Medifast Recipes Tips | Medifast Recipes Strategies |

Medifast Recipes Experiences | Medifast Recipes Group | Medifast Recipes Forum | Medifast Support Strategies |

Medifast Support Experiences |


(C) Copyright 2010 All rights reserved.