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 
New Functions (Read 763 times)
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: New Functions
Reply #3 - 10/01/04 at 12:45:49
 
All of this has been tested and it works as expected.

So try it again ...
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
www.blitzday.com
eAuction User
**
Offline

I love the script
and hate it if it
does not work

Posts: 60

Re: New Functions
Reply #4 - 10/01/04 at 15:17:34
 
Bummer, it really does not work  ??? I must have made a mess of my script, although i still get it. This seem to crash somewhere around the 3/4th part of this addon.

As soon as i change something after:
sub get_table_val {
   my ($option, $random_data) = @_;
   my $pic_cnt = 0;
   my $row_switch = (int(@$random_data / 2) + 1) if @$random_data > 4;
   my (
$close_time, $image, $img_info, $title, $bids, $bid, $cat,
$item, $row, $rowcolor, $tbl_val, $the_bid, $date, $time,
   );
   local $_;
   
foreach (@$random_data) {
 $pic_cnt++;
 
    (
 $close_time,
 $image,
 $title,
 $bids,
 $bid,
 $cat,
 $item
    ) = split /\[\]/, $_;
     
    $img_info = qq|<img src="$config{'img_url'}/$image"@{[img_size($image, 110)]}>|
    if $option eq 'pic' and $image !~ /http\:/;
     
    $img_info = qq|<img src="$config{'icon_url'}/$config{'if_image'}" border="0">|
    if $option eq 'list' and $image =~ /\.\w{3,}/;
     
    $img_info = qq|<img src="$config{'icon_url'}/$config{'no_image'}" border="0">|
    if $option eq 'list' and $image !~ /\.\w{3,}/;
     
 $the_bid = form_currency($bid);
    ($date, $time) = form_date($close_time) if $option eq 'list';
     
 ($row, $rowcolor) = get_row_color($row);
     

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxx xxxxxxxxxxxxxx

There is goes wrong.

What can I do?

Freddy
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: New Functions
Reply #5 - 10/01/04 at 15:42:36
 
The forum-software is adding some linefeeds ... :'(
so you have to  know what you  are doing.

For example:
$tbl_val .= <<EO_HTML if $option eq 'pic' and $#$random_data >= 0 and $row_switch and $pic_cnt == $row_switch;

must be written as single line.

I'm willing to help out everyone with code - but it's not my part to implement it too. Wink
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
Pages: 1 2 3 


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