NOTE: Always state the software package and version you have
when asking questions so you will get the correct answer,
as it does make a big difference in the answers you'll get!

USANet Creations
Support and Discussion Forums

Subject: "favourite"   Page 1 | 2 | Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences MakeBid Auction general discussion area Topic #246
Reading page 1 of 2 pages
cashbudy
unregistered user
May-20-04, 10:26 AM (CST)
 
"favourite"
 
   Can anyone provide programming services for me.
would like to add a little code to site,when a user click on an item it is automatically displayed in a favourite search box section ( like previously viewed items .
If anyone can help i will pay for services.
Thank you.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
James
unregistered user
May-20-04, 10:32 AM (CST)
 
1. "RE: favourite"
 
   I have been working on something like this for about 3-4 months and have been receiving many errors. It is similar to what eBay has which shows four previously viewed items near the bottom of the page.

If anyone gets this working before I do, I would be interested as well. Otherwise, if I ever get it working, I will post it in the USER ADDON area where I post any add on I can get working.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
cashbudy
unregistered user
May-20-04, 02:36 PM (CST)
 
2. "RE: favourite"
 
   Very beautiful,thank you hope you do get it going soon.I believe it is associated with cookies setup. To be honest i have no idea.Hope you get it working .Thank you.Cashbudy.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
James
unregistered user
May-24-04, 09:28 PM (CST)
 
3. "RE: favourite"
 
   This is the script I found that I have been playing with. Perhaps someone will have some luck.

Basically, it places the 4 previsously viewed items in a box on the page with clickable images to take them directly back to the item.

##################
# Recently viewed items
sub getMRV {
my $maxmrv = 4;
my $template =

qq~
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100%>
<TR><TD><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=157>
<TR><TD bgcolor=#6394BD ROWSPAN=2 WIDTH=2>
<img src=../images/html/spacer.gif width=1 height=1></TD>
<TD HEIGHT=1 bgcolor=#6394BD VALIGN=top WIDTH=133>
<img src=../images/html/spacer.gif width=1 height=1></TD>
<TD ROWSPAN=2 VALIGN=top ALIGN=right WIDTH=2>
<img src=".././images/html/corner.gif" ALIGN=top width=22 height=21></TD>
</TR><TR><TD bgcolor=#DEE7EF>
<IMG SRC="images/html/spacer.gif" WIDTH=1 HEIGHT=10><FONT face=arial size=2>
Recently viewed</FONT></TD></TR></TABLE>

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% style="border: 1px solid #6394BD;">
<tr><TD ALIGN=bottom width=25%>
<table border=0 cellpadding=0 cellspacing=0 width=100\%><tr>
<div id=MRVList><<MRVList>></div>
</tr></table>

</TD></tr></TABLE></td></tr></table><IMG src=.././images/html/shadowb.gif width=362 border=0 height=15 align=right>
~;
my $newmrv;
if ($form{category} && $form{item}) {
my ($title, $reserve, $inc, $desctitcolor, $desctitsize, $desctit, $desccolor, $descsize, $desc, $image, $image2, $image3, $image4, $feature, $grabber, $currency, $dutch, $qty, $payment, $condition, $shipping, $paypal, $bookers, $relist, $relistcnt, $gallery, $buyit, $music, $usecounter, @bids) = read_item_file($form{category},$form{item});
my ($alias, $email, $bid, $time, $add1, $add2, $add3, $oqty, $soldqty) = &read_bid($bids); # read last bid
my $timeremain = time_remain($form{item});

######### TO DISPLAY THUMBNAILS
my @images = split /\t/, $image;
$image = join "\t", @images;
my $pic = "";
$pic = "<IMG SRC=$music BORDER=\"0\" alt=\"$title, currently: $currency$bid\">" if ($music);
$pic = "<img src=$config{'picrv'} alt=\"$title, currently: $currency$bid\">" if (($image) && ($music eq ""));
$pic = "<img src=$config{'nopicrv'} alt=\"$title, currently: $currency$bid\">" if ($image eq "");
######### TO DISPLAY THUMBNAILS

if ($title ne '') {
my $closetime = localtime($form{item});

if (length($title)>30) {
$title =~ /(.{1,30}\W)/ims;
$title = $1;
$title =~ s/^(.*)$/$1\.\.\./;
}

$newmrv = "<td width=25\% align=center valign=bottom><font face=arial size=1><IMG height=7 src=.././images/html/spacer.gif width=1><BR><a href=\"$ENV{SCRIPT_NAME}?category=$form{category}&item=$form{item}\">$pic</A><br><IMG height=5 src=.././images/html/spacer.gif width=1><BR><a style=\"TEXT-DECORATION: none\" href=\"$ENV{SCRIPT_NAME}?category=$form{category}&item=$form{item}\">$title</A><BR><IMG height=5 src=.././images/html/spacer.gif width=1><BR>Currently: $currency$bid</font><br><IMG height=5 src=.././images/html/spacer.gif width=1></td>";
$newmrv =~s/()/'%'.unpack('H2', $1)/eg;
$newmrv = qq~
var newmrv = "$newmrv"\nif (newmrv != "") {\n\tvar mrvList = mrv.split("&")\n\tvar newList = \n\tvar i\n\tfor (i in mrvList) {\n\t\tif (newmrv != mrvList) newList = mrvList\n\t\tif (newList.length == $maxmrv) break\n\t}\n\tmrvList = newList\n\tmrv = mrvList.join("&")\n\tdocument.cookie = "MRVList=" + mrv\n}\n
~;
}
}
$template =~s/(\W)/'%'.unpack('H2', $1)/eg;
return qq~
<script language="JavaScript"><!--\nvar mrv = document.cookie.match("MRVList=*")\nmrv = (mrv ? mrv : "")\nmrv = mrv.replace("MRVList=","")\n${newmrv}var template = unescape("$template").replace("<<MRVList>>", unescape(mrv.split("&").join("")))\nif (mrv != '') document.write(template)\n//--></script>
~;
}


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
cashbudy
unregistered user
May-25-04, 06:16 PM (CST)
 
4. "RE: favourite"
 
   LAST EDITED ON May-25-04 AT 06:41 PM (GMT)
 
Thanks for the script.But did you get it to work at all?
Have you tried it at all.Yes where would you put it ?

I would like to put an image over each subcategory,when you click on the main category. Can anyone help
Auction Sub Categories
Categories > Antiques
>.........This is where i would like the image to ............<

Antique (0) Collectible (0)
Antique & Collectible Toys (0) Antique Ceramics (0)
Antique China (0) Antique Furniture (0)
Antique Glassware (0) Musical Items (0)
Antique Prints & Artwork (0) Asian Antiques (0)
Barbie Dolls (0) Black Memorbilia (0)
Books, Maps, (0) Memorbilia (0)
Cookie Jars (0) Estate Jewelry (0)
European Antiques (0) Flea Market Items (0)
FloBlue (0) Folk Art (0)
General Antiques (0) Ornaments (0)
Lunchboxes (0) Madam Alexander (0)
Other Antiques & Collectibles (0) Other Collectible Dolls (0)
Primative (0) Time pieces -Clocks & Watches (0)
Trading Cards (0) Weird Stuff (0)


Thank you all for the great works around here.



  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
James
unregistered user
May-25-04, 08:47 PM (CST)
 
5. "RE: favourite"
 
   I have tried the script in many different styles. I had to modify the elsif statements and create a new .pl and I tried to have it display at the bottom of an auction item page.

As for the image on top like you are requesting, I have mine set so that 4 images from the GALLERY FEATURE appear there randomly. Will this work for you?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
cashbudy
unregistered user
May-27-04, 12:38 PM (CST)
 
6. "RE: favourite"
 
   Yes that one sounds good,but what would be good is if each time when you click on main category like ebay you have an image displaying the type of item in the category.
Image on top going across and the category items underneath it.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Cashbudy
unregistered user
Jun-02-04, 02:28 PM (CST)
 
7. "alstrasoft"
 
   Does anyone no anything about alstrasoft softwares?
I am seeking someone who can do an installation for me.


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Jayzfury click here to view user rating
Charter Member
73 posts, 2 feedbacks, 4 points
Jun-28-04, 00:47 AM (CST)
Click to EMail Jayzfury Click to send private message to Jayzfury Click to view user profileClick to add this user to your buddy list  
8. "RE: favourite"
 
Hey All,
    Hi James.. I think we have talked once before.  I have the MRV JavaScript that is the MRVList similar to the one you placed on this forum (MRV JavaScript).  It's in html and the template is in java.  I can convert those back and forth to insert new tables and what I want them to print out (images & text).  Anyways, I got this working as far as placing the item currently visited but when I go to the next item it only replaces it with the that current visit.  Cookies are not staying around.  I must be missing an element that needs to do the document.cookie thing.  When I go to my perldiver.cgi which is the same dir with my auction files, the MRVList= displays on that page.  So, I figure it's trying to tell me something here, but what!
    Does anyone out there have the rest of this MRVList= javascript?  If so, let's work on this problem together.  Visit http://specialengines.com/auction to see this working as I described above.  It's just not working the cookies yet but at least it does not give me any errors (took a couple of test runs (4 hours+)).  Have a good one!   Laters...
Regards,
jayzfury@specialengines.com
at
http://specialengines.com


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
James
unregistered user
Jun-28-04, 05:07 PM (CST)
 
9. "RE: favourite"
 
   jazyfury...

What do you have the $maxmrv set to? Have you tried 2 or 3 versus 4?


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Jayzfury click here to view user rating
Charter Member
73 posts, 2 feedbacks, 4 points
Jun-28-04, 06:47 PM (CST)
Click to EMail Jayzfury Click to send private message to Jayzfury Click to view user profileClick to add this user to your buddy list  
10. "RE: favourite"
 
Hi James,
    Email me and I will send you what I have working to date.  I have no $maxmrv set anywhere!   Laters...
Jayzfury@specialengines.com
at
http://specialengines.com/auction
or
GO TO MY TESTING SITE,
http://ibauctions.com

(Site for sale!)


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote


Page 1 | 2 | Conferences | Topics | Previous Topic | Next Topic
Rate this topic Rate this topic