Announcement

Collapse
No announcement yet.

a freebie: recently viewed items.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Originally posted by gabrielcrowe
    try this just after your first body statement, untested:

    <script>
    if(getCookie("p2")==null){setCookie("p2"," ")}
    if(getCookie("p3")==null){setCookie("p3"," ")}
    if(getCookie("p4")==null){setCookie("p4"," ")}
    </script>
    I bloody hate quoting myself.

    Comment


      #47
      Originally posted by gabrielcrowe
      I bloody hate quoting myself.
      Recurring theme it would appear. Post now, think and look later.

      Comment


        #48
        Originally posted by OriginalTouch
        after which body statement

        did it after <bodyonload> to no avail

        or do you mean to replace one of the pieces of script you gave before?
        Believe me, I did read the thread over again.
        But tried the above and was wondering why it didn't work.
        Sometimes, it may be nice to remember that some of us are novices at this and that is why this forum is so useful.
        Rather than criticising?........
        Sam
        http://www.originaltouch.co.uk
        http://www.spcb.co.uk

        If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

        Failure is the tuition you pay for success.

        Comment


          #49
          Sometimes, it may be nice to remember that some of us are novices at this and that is why this forum is so useful.
          Rather than criticising?........
          Its also nice to remember that people are giving thier time for free to help you make money - so be thankfull for what you get. If you cannot cope with the answers given then its not really our problem - Standard Actinic is sutable for the beginer but once you start fidling with things then you need to go away and get the skills required.

          Comment


            #50
            One of the assets of Actinic (and a reason for purchase) is the access to this forum, for ideas and support from more experienced users - a wealth of information that most software lacks after purchase. Unfortunately, nobody is unfallible and everyone makes mistakes. Many visitors, me included, are already experienced website and html designers, just needing an occasional nudge in the right direction for adapting this particular software to our own needs, sometimes even adding new tools (which I also have helped to adapt). This software can be adapted to many different styles of website with some great tweaks to be found in this forum. You can be assured that any support given by Actinic users is always much appreciated and saves great time and effort. My point was just that it does seem a shame if personal criticisms are posted that stray from the query in question (This seems to have happened on quite a few other threads). I am sure that we are all nice people really - let's all be supportive to each other - and I hate arguments!

            In this case, the solution did not work - the script was added after
            <body onLoad="<actinic:variable value="PreloadImages" name="OnLoadScript" />">
            which may be in the wrong place?
            Sam
            http://www.originaltouch.co.uk
            http://www.spcb.co.uk

            If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

            Failure is the tuition you pay for success.

            Comment


              #51
              My point was just that it does seem a shame if personal criticisms are posted that stray from the query in question (This seems to have happened on quite a few other threads).
              This is a forum NOT Actinic support which many people tend to forget so if you bought Actinic on the basis that the forum would get your site built for you then thats not what will happen. May I suggest that you contact actinic support if you are having problems.

              Gabe gave his code as a freebe to the forum and did not offer support for it. If you are having a problem then perhaps you could offer to pay him to fix it for you - a novel idea I know

              Comment


                #52
                how could i implement this so that the recently viewed items were only what the viewer had opened extended info on?

                thanks
                http://www.itwiz.co.uk

                http://www.AntiV.net - The Discount Antivirus Store

                Comment


                  #53
                  Matt,

                  Adapt the bit from post #1 "this part goes in the product layout, at the bottom" top be in your Extended Info layout instead. You should only need to alter the ProductImage variable to use the Extended Info one.

                  Post how you do it so others can benefit from it.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #54
                    I guess I'm going to get slapped for this... But here goes. I have put the javascript in and it is all nearly working. I just don't get any images showing up. I'm sure the answer is simple. Could one of you Actinic Guru's point me in the right direction.

                    Here is a link to product page...

                    http://actinic.hud.ac.uk/u0769560/ac...s_Backing.html

                    Thanks, and please go easy on me, I'm an Actinic Nube!

                    Comment


                      #55
                      Greg,

                      This tweak was really intended for single product per page type sites.

                      Not for multiple product per pages like you're using but it will still work there - just a bit meaningless as it will be fully poulated by all the products on the last page viewed.

                      To debug, add some diagnostic code to your JS so you can see what's happening. E.g.

                      alert('Got here');
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #56
                        Update: Greg, your cookie contains

                        <div class="viewed"><a href="http://actinic.hud.ac.uk/u0769560/acatalog/Leaders_Backing.html"><img src='' width=75 height=75 /><br/></a></div>

                        And that src='' means that you haven't picked up the product image filename.
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #57
                          Ahhh right. So does that mean I need to create the variable ProductImage Filename?

                          Comment


                            #58
                            No - it's a built-in Actinic Variable. It's not being picked up in the JS that sets the cookie. You have to discover why.
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment


                              #59
                              First, thanks for the direction Norman,

                              I have it working so that the cookie is only set when you open the extended info window, which is a good fix for those of us without SPPs. I did this by following Normans instructions above.

                              RE the nullnullnull problem, gabriel's way doesn't quite work yet...
                              I have a half fix, although even with my limited knowledge of javascript, i know it shouldn't really be done this way...
                              Code:
                              <script>
                              if(getCookie("p0")==null){setCookie("p0"," ")}
                              if(getCookie("p1")==null){setCookie("p1"," ")}
                              if(getCookie("p2")==null){setCookie("p2"," ")}
                              if(getCookie("p3")==null){setCookie("p3"," ")}
                              if(getCookie("p4")==null){setCookie("p4"," ")}
                              </script>
                              is the only way i can get it to hide the null words. The problem with this is that the "recently viewed items" text doesn't dissapear when you have no previous items. It just sits there empty. I have tried various combinations of this to similar effect. I understand this well enough to know there is a better way, but not quite enough to figure it out!

                              Secondly,
                              Currently, the javascript writes the cookie so that the link for the image is to document.url, or self basically. Obviously if im setting it from the extended info page then it points to that. id like it so that when the image is clicked, the link is to the product anchor link on the section page, not the extended info page. This way they get taken to the item, not just shown info about it. Im sure there is a variable to do this, but i can't see it for the life of me.

                              Finally, it a bit messy how the images dont keep their aspect ratio. can this be fixed easily?

                              Many Thanks, matt
                              http://www.itwiz.co.uk

                              http://www.AntiV.net - The Discount Antivirus Store

                              Comment


                                #60
                                Link: Use opener.location.href in your JavaScript.

                                Images: Set only width or height - not both.
                                Norman - www.drillpine.biz
                                Edinburgh, U K / Bitez, Turkey

                                Comment

                                Working...
                                X