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.

[Project] Last visitors on member profile

+11
buddyboy5
SLGray
smurfavr
Ape
TheCrow
YoshiGM
FrOsTyXi
CovalentBond
Tonight
Van-Helsing
JScript
15 posters

Page 1 of 3 1, 2, 3  Next

Go down

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

Post by JScript February 28th 2015, 9:01 pm

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 February 28th 2015, 10:52 pm; edited 1 time in total (Reason for editing : *** Added support for deleting! ***)
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Beyonder likes this post

Back to top Go down

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

Post by Van-Helsing February 28th 2015, 11:54 pm

Hello @JScript,
Very nice function, but is not working on my forum Sad
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by JScript March 1st 2015, 12:03 am

@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
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by Van-Helsing March 1st 2015, 12:09 am

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?
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by JScript March 1st 2015, 12:17 am

@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

JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by Van-Helsing March 1st 2015, 12:29 am

@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
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by Tonight March 1st 2015, 12:33 am

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
Tonight
Tonight
Forumember

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

Back to top Go down

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

Post by JScript March 1st 2015, 12:44 am

@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
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by Van-Helsing March 1st 2015, 12:50 am

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

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by JScript March 1st 2015, 1:09 am

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

JS
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by Van-Helsing March 1st 2015, 1:13 am

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

JS
@JScript I send you pm.
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by JScript March 1st 2015, 1:30 am

@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
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by Van-Helsing March 1st 2015, 1:38 am

@JScript I deleted it.
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by CovalentBond March 11th 2015, 4:22 pm

Useful function, thanks for posting it.
avatar
CovalentBond
New Member

Posts : 10
Reputation : 2
Language : English

http://nostalgia.forumhe.com/

Back to top Go down

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

Post by Guest April 26th 2015, 11:20 am

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?
avatar
Guest
Guest


Back to top Go down

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

Post by JScript April 28th 2015, 1:30 am

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
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by FrOsTyXi April 28th 2015, 1:46 am

@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
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

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

Post by JScript April 28th 2015, 3:19 pm

@FrOsTyXi

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

JS
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by FrOsTyXi April 28th 2015, 3:26 pm

@JScript code has been added back for your testing

Regards
FrOstyXi
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

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

Post by JScript April 28th 2015, 3:30 pm

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
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by FrOsTyXi April 28th 2015, 3:37 pm

FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

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

Post by JScript April 28th 2015, 3:50 pm

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
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by FrOsTyXi April 28th 2015, 3:54 pm

@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
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

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

Post by JScript April 28th 2015, 3:55 pm

@FrOsTyXi
Yes: Only in the next version!

Stay tuned,

JS
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by FrOsTyXi April 28th 2015, 3:57 pm

@JScript thank you i await that!!
FrOsTyXi
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

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

Post by YoshiGM April 28th 2015, 7:06 pm

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

Good job Wink
YoshiGM
YoshiGM
Active Poster

Male Posts : 1502
Reputation : 144
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

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

Post by Guest April 29th 2015, 8:28 pm

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
avatar
Guest
Guest


Back to top Go down

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

Post by JScript April 29th 2015, 11:06 pm

@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
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

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

Post by Guest April 30th 2015, 8:17 am

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
avatar
Guest
Guest


Back to top Go down

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

Post by TheCrow April 30th 2015, 10:56 pm

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!
TheCrow
TheCrow
Manager
Manager

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

https://forumote.forumotion.com

Back to top Go down

Page 1 of 3 1, 2, 3  Next

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum