eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 3 4 
Another simple solution... (Read 82 times)
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Another simple solution...
Reply #6 - 02/03/06 at 16:57:31
 
No hard feelings please ...
if I would give you the status I would have to give it to everybody else too.
Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
annetappe
eAuction User
**
Offline

I Love To Learn

Posts: 36
MidSouth
Gender: female
Re: Another simple solution...
Reply #7 - 02/03/06 at 17:21:01
 
That is no problem - I am not at Developer level yet! - long way to go.

Shame about Volfe - seemed like he could of been a good contributor.

Have a good day/evening?
Back to top
 
 


Advertising
View Profile   IP Logged
afcbob
eAuction Novice
*
Offline

I Love Perl

Posts: 3

Re: Another simple solution...
Reply #8 - 02/03/06 at 23:45:47
 
Volf wrote on 01/05/06 at 22:35:23:
Another simple solution...

In search box you must enter user name with first Capital leter, CaSe SeNsItIVe
for example: If you tipe john you will get no results, if you type John
you will get results.

This is very confusing for users, and you will have to explain searching in help,
but, as we know users do not read help, they think that your site is not working, and they go away.

Ther is no need for this, here is simple solution: ucfirst



in your eAuction.pl find Code:
 i tried this code and it did not work for me i just get a page error when i tyr it. my is this
$query = {
	  'end'			=> q|$close_time - $the_time < ($config{'soon_time'} * 3600)|,
	  'hot'			=> q|$#bids > $config{'hot_num'}|,
	  'new'			=> q|$the_time - $start_time < ($config{'new_time'} * 3600)|,
	  'min'			=> q|$firstbid[2] == 1|,
	  'reserve'		=> q|$reserve <= $lastbid[2]|,    
	  'keyword'		=> q|$title =~ /$form{'searchstring'}/i or $desc =~ /$form{'searchstring'}/i|,
	  'username'		=> q|$firstbid[0] eq $form{'searchstring'}|,
	  'itemnumber'		  => q|$item =~ /$form{'searchstring'}/o|,
	  'price'		=> q|$lastbid[2] <= $form{'searchstring'}|,
	  'buyitnow'		=> q|$firstbid[3] > 0|,
	  'items'		=> q|$cat eq $form{'searchstring'}|
   }; 



In the row 'username'            => q|$firstbid[0] eq $form{'searchstring'}|
add ucfirst before $form{'searchstring'}

Now it shoud be like this Code:
 

$query = {
	  'end'			=> q|$close_time - $the_time < ($config{'soon_time'} * 3600)|,
	  'hot'			=> q|$#bids > $config{'hot_num'}|,
	  'new'			=> q|$the_time - $start_time < ($config{'new_time'} * 3600)|,
	  'min'			=> q|$firstbid[2] == 1|,
	  'reserve'		=> q|$reserve <= $lastbid[2]|,    
	  'keyword'		=> q|$title =~ /$form{'searchstring'}/i or $desc =~ /$form{'searchstring'}/i|,
	  'username'		=> q|$firstbid[0] eq ucfirst $form{'searchstring'}|,#line with added ucfirst
	  'itemnumber'		  => q|$item =~ /$form{'searchstring'}/o|,
	  'price'		=> q|$lastbid[2] <= $form{'searchstring'}|,
	  'buyitnow'		=> q|$firstbid[3] > 0|,
	  'items'		=> q|$cat eq $form{'searchstring'}|
   }; 


   
that is it
now try to search by username...


I tried this but all i get is a page error why is this
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 2 3 4 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only