1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Top Referrer's Script

Discussion in 'PHP' started by MediaHustler, Dec 7, 2006.

  1. TromS

    TromS Well-Known Member

    Messages:
    537
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #21
    Is there any way I can split the script?
    See on jarkley.net, they have a list of links on their left menu with 30 links, and then you can click on "more" to get the full list.
    I tried having two "xReferrer-class.php" files, but I couldn't get it to work..

    Still a great script :rolleyes:
     
    TromS, Dec 9, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #22
    Well, I was asked to write a "top referrers" script, and that's what I did, I spose you could add the class to page by itself and adjust the number to a number that will never be reached to spit all the referers ever.....
     
    krakjoe, Dec 9, 2006 IP
  3. TromS

    TromS Well-Known Member

    Messages:
    537
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #23
    What I tried to do, was to have a simple list of links on the frontpage - like the list on jarkley.net that has about 30 links.
    I edited "xReferrer-class.php" to only show "hosts".

    Then I added a link to another page (ex: links.php), who would show more links + hits in (reading from "xReferrer-class2.php").

    I used this code for the frontpage:
    
    <?
    @include("install/xReferrer-class.php");
    $xRf = &new xReferrer("output", 10);
    ?>
    
    PHP:
    And this for the links page:
    
    <?
    @include("install/xReferrer-class2.php");
    $xRf = &new xReferrer("output", 10);
    ?>
    
    PHP:

    But I couldn't get it to work; the list and the links page still showed the same (host+hits+last hit).
    Can you please help me with this?
     
    TromS, Dec 9, 2006 IP
  4. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #24
    <?
    @include("install/xReferrer-class2.php");
    $xRf = &new xReferrer("output", 10);
    ?>

    is uneccesary, the number is the number you're selecting from the database, so if you put 10 there, you'll get 10 results, if you put 100 you'll get 100 results
     
    krakjoe, Dec 9, 2006 IP
  5. TromS

    TromS Well-Known Member

    Messages:
    537
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #25
    Yes, I understood that.
    But I wanted one page to show _just_ the link, and the other to show the link + hits in + last hit in.

    Frontpage: A box in the left menu will show the top referers, but the links only
    Links page: Shows top links, amount of hits in and time for the last hit in.

    Understand what I mean?
     
    TromS, Dec 9, 2006 IP
  6. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #26
    yeah, you'll need to edit the html, but either way, it's still going to spit all links upto the number included in the class initiation....

    FYI Evry1 : Ported to work with wp, and packaged as a plugin :

    http://krakjoe.info as always
    demo : http://krakjoe.info/wp
     
    krakjoe, Dec 9, 2006 IP
  7. fakestar

    fakestar Peon

    Messages:
    132
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #27
    Very nice script.

    Is it possible filter URL by keywords?
    for example, i don't want visit coming from domain containing healthinsurance.

    how can i do this?

    Thanks!
     
    fakestar, Jan 11, 2007 IP
  8. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #28
    I dunno, haven't thought about it, it'd mean collecting data from all different search engines about how thier queries are formatted, if someone does that I'll do the rest ...
     
    krakjoe, Jan 11, 2007 IP
  9. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #29
    Cool script Im looking for something similar that would also show hits out....maybe on mouseover???
     
    phantom, Jan 27, 2007 IP
  10. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #30
    If you get in touch with me on msn, I can spend an hour or two making it do what you want it to .....
     
    krakjoe, Feb 6, 2007 IP
  11. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #31
    Krakjoe,

    Thanks for the offer....I don't use MSN though only google talk. Basically I'm trying find one that works the same way as the one in my arcade Ninjaplayer.com which running off of phparcadescript.
     
    phantom, Feb 6, 2007 IP
  12. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #32
    I could make something to work with that also, I'll pm you when I have google talk installed and got a couple of hours to spare ....
     
    krakjoe, Feb 6, 2007 IP
  13. phantom

    phantom Well-Known Member

    Messages:
    1,509
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    140
    #33
    krakjoe: Not sure if I was clear or not but I don't need it to work with the arcade. I am looking for something like this that can be used standalone or inserted where I need it with say in a php include so I could use it on any project.

    Also how much is this going to cost me? :) I would hate to make you work for a couple hours on this. Maybe you can make this a finished product then offer it for sale?
     
    phantom, Feb 6, 2007 IP