The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
+11
buddyboy5
SLGray
smurfavr
Ape
TheCrow
YoshiGM
FrOsTyXi
CovalentBond
Tonight
Van-Helsing
JScript
15 posters

    [Project] Last visitors on member profile

    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty [Project] Last visitors on member profile

    Post by JScript 1/3/2015, 03:01

    Note: This is not a tutorial and should be only for testing purposes!

    Introduction:

    Well, the code is very simple and everything is based on a small change in the profile preferences - visitor messages on profile and notifications - which makes it possible to transform the "Visitor messages" in a true database to store the "Latest Visitors"!;

    Initial Configuration:

    Members need to configure only two items in the profile, see below:
    1- Go in the tab [Preferences] and find the option Allow visitor messages on my profile : and select (*) All members
    Save this setting!
    2- Then go on the tab [Notifications] and find the item The incoming of a profile message and uncheck both options
    Save this setting!

    Go to the ACP -> Users -> Profiles -> General Options -> Include signature in profile messages : No

    Note: The profile should be in advanced mode.
    If you have messages on your profile, you must remove them all.

    Code:

    Below is the code that should be added with placement "In all the pages":
    Link: https://www.dropbox.com/s/kri9cp0nxxcg6lm/LatestVisitors.js?dl=1

    Result:
    [Project] Last visitors on member profile 5t6gCZ6

    So long,

    JS


    Last edited by JScript on 1/3/2015, 04:52; edited 1 time in total (Reason for editing : *** Added support for deleting! ***)

    Beyonder likes this post

    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Van-Helsing 1/3/2015, 05:54

    Hello @JScript,
    Very nice function, but is not working on my forum Sad
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 1/3/2015, 06:03

    @Black-Shadow
    Which version of your forum?

    Check the steps again below:

    Go into edit my profile and:
    1- Go in the tab [Preferences] and find the option Allow visitor messages on my profile : and select (*) All members
    Save this setting!

    2- Then go on the tab [Notifications] and find the item The incoming of a profile message and uncheck both options
    Save this setting!

    3- Note: The profile should be in advanced mode.


    Note: It has a detail: Members wishing this function should change the profile settings that I mentioned above

    Thanks for the info,

    JS
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Van-Helsing 1/3/2015, 06:09

    Hello @JScript,
    Yes the profile is in advanced mode and here are the settings:

    [Project] Last visitors on member profile DEF8cTe
    Where is the tab notifications?
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 1/3/2015, 06:17

    @Black-Shadow
    For all members, the default value of this option Allow visitor messages on my profile is (*) My friends
    Unfortunately I do not know if you can change the value so that all members can be as shown below:
    [Project] Last visitors on member profile 2FPNS1Y

    If members do not exchange the value as shown above, only your friends will they show the list of "Last Visitors"!

    JS

    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Van-Helsing 1/3/2015, 06:29

    @JScript,
    I have made this change in my profile [Project] Last visitors on member profile Bz1HL7p
    and save it, but it is still says there are no visitors as you can see below

    [Project] Last visitors on member profile EYveH8A
    Tonight
    Tonight
    Forumember


    Male Posts : 312
    Reputation : 80
    Language : Estonian, English, Russian
    Location : Estonia

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Tonight 1/3/2015, 06:33

    Just tested it and what can I say... you've managed to create another great feature, what seemed impossible not so long ago. Razz Works great in phpBB3.

    [Project] Last visitors on member profile B-908zAVEAAjyYL
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 1/3/2015, 06:44

    @Tonight
    Thank you for feedback and image bro!

    @Black-Shadow
    Okay, in that case, who has visited your profile will be registered!
    But for you to visit a profile in which the member is not your friend, will not show up!

    But I will solve this "problem" ...

    JS
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Van-Helsing 1/3/2015, 06:50

    @JScript I am visiting a friend account but no visitors are displaying, my forum version is PunBB if that can help you.
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 1/3/2015, 07:09

    @Black-Shadow
    Interesting ... Can you pass the board address where you added the code?

    JS
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Van-Helsing 1/3/2015, 07:13

    JScript wrote:@Black-Shadow
    Interesting ... Can you pass the board address where you added the code?

    JS
    @JScript I send you pm.
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 1/3/2015, 07:30

    @Black-Shadow
    There is an error in some code that you added with placement "In all the pages", see:
    [Project] Last visitors on member profile 5ctu0DK

    First you will need to fix this error...

    JS
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Van-Helsing 1/3/2015, 07:38

    @JScript I deleted it.
    avatar
    CovalentBond
    New Member


    Posts : 10
    Reputation : 2
    Language : English

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by CovalentBond 11/3/2015, 22:22

    Useful function, thanks for posting it.
    avatar
    Guest
    Guest


    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Guest 26/4/2015, 16:20

    I really want this but every time I try to open it, it says windows has a script error. Can you possibly PM me the code/codes?
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 28/4/2015, 06:30

    Luke Spike wrote:I really want this but every time I try to open it, it says windows has a script error. Can you possibly PM me the code/codes?
    Hello!
    You could post a "print" of your screen?

    A picture speaks more than a thousand words,

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by FrOsTyXi 28/4/2015, 06:46

    @JScript love this on eissue how can i change the color here?

    [Project] Last visitors on member profile Aja10

    I can't right click to inspect element.

    I await your response.

    Regards
    FrOsTyXi
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 28/4/2015, 20:19

    @FrOsTyXi

    Hello, leave the code added so I can run tests here http://www.team-psn.net/u1

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by FrOsTyXi 28/4/2015, 20:26

    @JScript code has been added back for your testing

    Regards
    FrOstyXi
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 28/4/2015, 20:30

    FrOsTyXi wrote:@JScript code has been added back for your testing

    Ok, now I just need someone to visit your profile, because the message is showing up is: "There are no visitors"

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by FrOsTyXi 28/4/2015, 20:37

    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 28/4/2015, 20:50

    Ok @FrOsTyXi, add the following CSS:
    Code:

    table.forumline {
      background-color: inherit !important;
      border: unset !important;
    }
    .inner.main-head.main-content.clearfix.box-content.profile.center {
      background: none repeat scroll 0 0 #f7fbfc !important;
      border-radius: unset !important;
      margin-bottom: 0 !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      margin-top: -1px;
    }
    #lastvisit .message-date {
      font-size: 11px !important;
    }

    Result:
    [Project] Last visitors on member profile DZLjrVO

    So long,

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by FrOsTyXi 28/4/2015, 20:54

    @JScript that was perfect!, now is there a reason for not updating when a profile gets viewed? I have all the settings as you have instructed.

    Regards
    FrOsTyXi
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 28/4/2015, 20:55

    @FrOsTyXi
    Yes: Only in the next version!

    Stay tuned,

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by FrOsTyXi 28/4/2015, 20:57

    @JScript thank you i await that!!
    YoshiGM
    YoshiGM
    Active Poster


    Male Posts : 1557
    Reputation : 146
    Language : Spanish & English
    Location : Mexico

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by YoshiGM 29/4/2015, 00:06

    @JScript omg! Excellent code!
    This helps you to know if someone visited your profile.

    Good job Wink
    avatar
    Guest
    Guest


    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Guest 30/4/2015, 01:28

    JScript wrote:
    Luke Spike wrote:I really want this but every time I try to open it, it says windows has a script error. Can you possibly PM me the code/codes?
    Hello!
    You could post a "print" of your screen?

    A picture speaks more than a thousand words,

    JS
    @JScript this is the error I am getting: http://prntscr.com/6zmcil
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by JScript 30/4/2015, 04:06

    @Luke Spike
    Of the four times you downloaded the file, in all of them you just tried to run it!!!

    Do the following:

    1- Open Notepad, locate the file and open it, select all content and then copy;
    2- In your ACP: Modules -> HTML & JAVASCRIPT -> JavaScript codes management -> [Create a new JavaScript]
          * Title: <- Whatever you want
          Placement: <- In all the pages
          * Javascript Code: <- Paste the code here!
    3- You can close Notepad.

    Really a picture is worth than a thousand words...

    JS
    avatar
    Guest
    Guest


    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by Guest 30/4/2015, 13:17

    JScript wrote:@Luke Spike
    Of the four times you downloaded the file, in all of them you just tried to run it!!!

    Do the following:

    1- Open Notepad, locate the file and open it, select all content and then copy;
    2- In your ACP: Modules -> HTML & JAVASCRIPT -> JavaScript codes management -> [Create a new JavaScript]
          * Title: <- Whatever you want
          Placement: <- In all the pages
          * Javascript Code: <- Paste the code here!
    3- You can close Notepad.

    Really a picture is worth than a thousand words...

    JS
    I'm so dumb lol! How did I forget about that!  tongue Well, thanks!

    Also: How do I change the font of the title in CSS. http://prntscr.com/6zt48g
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    [Project] Last visitors on member profile Empty Re: [Project] Last visitors on member profile

    Post by TheCrow 1/5/2015, 03:56

    Hello @JScript,

    I added this function to a phpbb2 forum to test it out and the visitor won't display unless they posted something to their profile. Is this how it is supposed to work or not?
    Because i wanted to display any member that visits the profile..

    Thanks,
    Luffy



    [Project] Last visitors on member profile Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!

      Current date/time is 23/9/2024, 04:36