Announcement

Collapse
No announcement yet.

referrer wish list

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

    referrer wish list

    allow a 14 day (or whatever) cookie to be set so any orders within 14 days get attributed to the last referrer. other software does this (?) and my referrers want it from me too!!!


    Allow referrer cookies to be set from other scripts, not just the referrer one ( i covered this one before I think)

    Andy
    Andy Warner

    www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
    www.RPGMiniatures.com D&D and Star Wars Miniatures

    Both running the Cart from Search Page hack

    Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

    All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

    #2
    Hello Andy

    I am speaking to our development team about this one.
    Will keep you posted.
    Darren

    SellerDeck

    www.sellerdeck.co.uk

    Comment


      #3
      Hello there.

      Have not forgotten you, still working...
      Darren

      SellerDeck

      www.sellerdeck.co.uk

      Comment


        #4
        Hello there.

        It has been suggested that you may want to try editing the referrer.pl script.

        Iit is strongly advised that you create a snapshot before editing any code. It would also be advisable to back up the script before beginning (although a set of replacement .pl files is kept in the Actinic Original folder).

        Please also note that this has not been tested, hence the need to make sure you have backed-up

        Browse to the site1 folder on your computer and open referrer.pl with notepad and search for print "Set-Cookie: ACTINIC_SOURCE="

        You will need to change the lines:

        print "Set-Cookie: ACTINIC_SOURCE="
        $sCookie . "; PATH=/;\r\n";


        to:

        my $later = $now + 14 * 24 * 3600;
        @later = gmtime($later);
        $day = $days[$later[6]];
        $month = $months[$later[4]];
        my $sLater = sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT", $day,
        $later[3], $month, $later[5]+1900, $later[2], $later[1], $later[0]);

        print "Set-Cookie: ACTINIC_SOURCE=" .
        $sCookie . "; EXPIRES=" .
        $sLater . "; PATH=/;\r\n";


        Then save the changes and refresh the site.

        I hope this helps.
        Darren

        SellerDeck

        www.sellerdeck.co.uk

        Comment


          #5
          oh dear....

          I cant seem to get this one to work. can the boyz in dev confirm its correct?????

          appreciate your efforts guys n gals

          andy
          Andy Warner

          www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
          www.RPGMiniatures.com D&D and Star Wars Miniatures

          Both running the Cart from Search Page hack

          Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

          All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

          Comment


            #6
            Sorry to hear that, checking for you....
            Darren

            SellerDeck

            www.sellerdeck.co.uk

            Comment


              #7
              need to add var names to name package

              sorted, I think:
              add @later and $sLater to name package :

              my (@expires, $day, $month, $now, $later, @now, $sNow, $sLater, @later);


              Ok, now its a runner!
              thanks guys
              andy
              Andy Warner

              www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
              www.RPGMiniatures.com D&D and Star Wars Miniatures

              Both running the Cart from Search Page hack

              Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

              All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

              Comment


                #8
                Add what, where?

                --------------------
                add @later and $sLater to name package :

                my (@expires, $day, $month, $now, $later, @now, $sNow, $sLater, @later);
                --------------------

                Hiya,

                Where and what exactly do you add to the referrer.pl script to make it work with cookies for a set length of time? I've added the stuff from Darren's post, but I'm not sure what the last post needed added to get it to work? Can you post *exactly* what else to add, and where exactly to add it?

                Regards,
                David.

                Comment


                  #9
                  adding what where!!

                  WOW! ITS A LOOOONG TIME AGO.....

                  Right, the referrer pearl code is in referrer.pl file.

                  open in a text editor such as notepad and do a find for the following line:

                  my (@expires, $day, $month, $now, $later, @now, $sNow);

                  and replace it with

                  my (@expires, $day, $month, $now, $later, @now, $sNow, $sLater, @later);

                  simply put, the guys didnt add a couple of strings when they tweeked the code. no big deal, as it was done as a favour and isnt supported.


                  remember the code might have changed in referrer.pl since then! so this is not guaranteed to work.

                  Happy coding and a fruitfull new year to you all.

                  andy warner
                  www.legendgames.co.uk

                  (looking for referrers by the way!)
                  Andy Warner

                  www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
                  www.RPGMiniatures.com D&D and Star Wars Miniatures

                  Both running the Cart from Search Page hack

                  Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

                  All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

                  Comment


                    #10
                    Thanks!

                    Many thanks! It worked a treat.

                    I know it was a long time since the thread was created, but I thought I'd ask anyway within the thread instead of creating a new one, as I'd done a search before asking and this thread came up

                    Regards,
                    David.

                    Comment


                      #11
                      This could well be the longest thread ever!

                      Just wondering if anyone is using this successfully in v7. I have tried but cant seem to get it to work, as soon as a customer exits the browser the referrer information is lost!

                      Anyone any experience here?

                      Dave
                      Cheers

                      David
                      Located in Edinburgh UK

                      http://twitter.com/mcfinster

                      Comment


                        #12
                        (not a reply to dave... sorry)

                        Just a message to say I have implemented a version of referrer.pl (v6) that goes to a specific item in the catalog. See other posts on the other referrer thread for details

                        dave.... sounds like you have a problem with the cookie code having a short expiry limit??? so its expiring 'before' its set, or at the same time???
                        Andy Warner

                        www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
                        www.RPGMiniatures.com D&D and Star Wars Miniatures

                        Both running the Cart from Search Page hack

                        Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

                        All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

                        Comment


                          #13
                          Andy,

                          My apologies, after trying again (or trying the same thing again actually) I have it working, must have done something wrong the first time!!

                          Am I correct in saying that this part of the cookie will last until the customer places an order after which it is cleared out? Or is it supposed to keep the referrer info regardless of how many orders the customer places within the 14 days?

                          Cheers Andy

                          Dave
                          Cheers

                          David
                          Located in Edinburgh UK

                          http://twitter.com/mcfinster

                          Comment


                            #14
                            Hi Dave

                            Am I correct in saying that this part of the cookie will last until the customer places an order
                            This is correct. The referrer code only last until you complete an order.

                            Kind Regards

                            Nadeem R
                            Nadeem Rasool
                            SellerDeck Development

                            Comment


                              #15
                              Ok, let me puff the dust off this old post.

                              What would you suggest if my version of Actinic (8.5) doesn't have these lines of code in referrer.pl any more? Is there another way round it?

                              Thanks.
                              Eco-Friendly House

                              Comment

                              Working...
                              X