The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

[Project] Last visitors on member profile

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

[Project] Last visitors on member profile

Post by JScript on 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:


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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

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

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

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


Where is the tab notifications?

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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:


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

JS


JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

@JScript,
I have made this change in my profile
and save it, but it is still says there are no visitors as you can see below


Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by Tonight on 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.


Tonight
Forumember

Male Posts : 241
Reputation : 63
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by Van-Helsing on 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
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

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

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by Van-Helsing on 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
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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:


First you will need to fix this error...

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

@JScript I deleted it.

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

Useful function, thanks for posting it.

CovalentBond
New Member

Posts : 10
Reputation : 2
Language : English

http://nostalgia.forumhe.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by Zuke on 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?

Zuke
Forumember

Male Posts : 379
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

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



I can't right click to inspect element.

I await your response.

Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

@JScript code has been added back for your testing

Regards
FrOstyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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


FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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:


So long,

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by FrOsTyXi on 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
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

Re: [Project] Last visitors on member profile

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

@FrOsTyXi
Yes: Only in the next version!

Stay tuned,

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

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

@JScript thank you i await that!!

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

Re: [Project] Last visitors on member profile

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

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

Good job Wink

YoshiGM
Forumember

Male Posts : 533
Reputation : 80
Language : Spanish & English
Location : Mexico

http://asistencia.foroactivo.com/u21373

Back to top Go down

Re: [Project] Last visitors on member profile

Post by Zuke on 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

Zuke
Forumember

Male Posts : 379
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

Re: [Project] Last visitors on member profile

Post by JScript on 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
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Last visitors on member profile

Post by Zuke on 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! tongueWell, thanks!

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

Zuke
Forumember

Male Posts : 379
Reputation : 20
Language : English
Location : United Kingdom

http://ocean.forums.fm

Back to top Go down

Re: [Project] Last visitors on member profile

Post by Luffy on 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






Luffy
Manager
Manager

Male Posts : 4246
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


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