+ Reply to Thread (include dating software, release, and patch number!)
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Profile hit counter ?

  1. #1
    Kleetus
    Guest

    Default Profile hit counter ?

    Hi all,
    does anybody has got a mod or something like a hitcounter for the profiles ?
    It would be nice to see how often each profile has been visited ?!

  2. #2
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    Yea, I would love somthing like this!
    SocialEngine 2.81 Nulled

  3. #3
    mirepup
    Guest

    Default

    I started working on this (Since I'm a newbie, I figured why not tackle something hard). I got the database tracking done, but then I realized (being a newbie to Dolphin) - Don't we pretty much already have this?

    In the PIONEER template at least in the Communicator page it tells me (as the user) who has viewed my profile. Since I've only got this in a test environment, I can't tell how it REALLY works. It's not the same as a hit counter. I was building basically this (more than a hit counter).

    But if you just want a hit counter, it's pretty damned easy. Could you clarify what you want? And could someone explain what the "Viewed by" stat is?

  4. #4
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    Were looking for something on the main profile page saying somthing like "Hits: 2"

    The direct mod code would be nice.
    SocialEngine 2.81 Nulled

  5. #5
    Kleetus
    Guest

    Default

    Quote Originally Posted by CodyT
    Were looking for something on the main profile page saying somthing like "Hits: 2"
    That's exactly what i meant ! But it should work with a ip blocker that every user hit will just be counted once !

  6. #6
    gvpm
    Guest

    Default

    The way there tracker works is like that, when a person visits the profile page it deletes the row if it exist and then update the row so the tracker only gets that person once, but this task is fairly easy just count the database table track profles i will break it down...,

    add in your member.php script in the top part BUT!! not past $_ni = $_page['name_index'];

    and below $profileID = (int)$member['ID'];

    if you don't have $profileID = (int)$member['ID']; add that above the $count below

    i don't really know the exact lines becuz of how many changes i have but to continue...


    but add this:

    PHP Code:
    $counter db_arr("SELECT COUNT(*) FROM `ProfilesTrack` WHERE `Profile` = {$profileID}"); 
    afterwards you can call the count like this

    PHP Code:
    $_page_cont[$_ni]['total_count'] =  $counter[0]; 
    then in your page_6.html you can do something like:

    Hits : __total_count__
    Last edited by gvpm; 04-08-2007 at 11:30 AM.

  7. #7
    mirepup
    Guest

    Default

    Quote Originally Posted by gvpm
    The way there tracker works is like that, when a person visits the profile page it deletes the row if it exist and then update the row so the tracker only gets that person once,
    Thanks for this GVPM. This will count views by MEMBERS but not non-members. Although I'm not sure there's a way to do that without a lot more work.

    To be more efficient, since we're just counting hits and not using the other data, I'd use count('member') instead of count(*) to return less data.

    Your suggestions did enlighten me quite a bit as to how the software works though! Thanks.

  8. #8
    Kleetus
    Guest

    Default

    Hi GVPM, great
    I had a look at the .sql install file and it looks like only logged in members are counted when they visit profiles ?!
    How can we count all "hits" (from members and non-members) ? I want to show exactly how often a profile was visited, even by visitors !

  9. #9
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    gvpm, could you mabey attatched member.php and whatever else is required for this to be possible? You lost me after $profileID = (int)$member['ID'];

    Thanks .
    SocialEngine 2.81 Nulled

  10. #10
    gvpm
    Guest

    Default

    no problem guys,

    basically codyT add that above the script i provided or you can replace profileID with member['ID'] in the query, and as far as non members the thing with that is you cannot insert a non member becuase there unique id value is always 0 so it would be like inserting that value multiple times which will generate a error because you cannot insert duplicate entries in this fashion. the only thing i can suggest if you can make non members have there own id but thats up to your .
    Last edited by gvpm; 04-08-2007 at 09:30 PM.

+ Reply to Thread (include dating software, release, and patch number!)
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Allowed Actions (Counter)
    By tinman in forum General Issues, Comments, Questions
    Replies: 3
    Last Post: 07-12-2009, 10:37 PM
  2. gallery.php counter on profile
    By driver_x in forum Free Mod Exchange
    Replies: 6
    Last Post: 06-12-2007, 12:15 AM
  3. Text Counter
    By mirepup in forum FAQ & HOWTO
    Replies: 1
    Last Post: 04-14-2007, 01:45 PM
  4. How to include counter
    By Kleetus in forum Other 3rd Party Applications
    Replies: 0
    Last Post: 01-04-2007, 09:46 PM
  5. Guest Counter & HOSTING
    By outlander in forum General Issues, Comments, Questions
    Replies: 2
    Last Post: 03-16-2006, 11:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts