This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2012/7/25

Private Messaging

This program allows you to communicate with up to 5 users. Each message will be sent to only one of the possible 5 (of course, of your choice). If you currently have 5 links and you wish to sent a message to someone else, you must clear one of those links.

Colors codes:
If a user's background color is RED: you are linked to them; but, they are not linked to you.
(if your communication is complete or the other user is being non-responsive, you may wish to clear this link)
If a user's background color is GREEN: you are both linked to each other.
If a users box is ON, there is a message waiting for you.
(old message may appear to be waiting, if your side of the link was cleared, but the other user's link is still active)

Just click on user's name to see last messages between you and them; and click the 'Compose' button to create/edit a message.

The 'Refresh' button has a delay of 20 seconds.

8406 views / 21 in the last 7 days

28 votes | 0 in the last 7 days

Tags: danpost messages private_messaging pm

This scenario is a member of: UserInfo Shares


Your browser does not support the canvas tag.
Roshan123Roshan123

2020/10/22

Why some of the users r in green and red color???
danpostdanpost

2020/10/22

@Roshan123, answer is in description. However, I think UserInfo data is screwed up for this scenario.
Roshan123Roshan123

2021/2/28

Its it possible to type or search user name If yes then how?
danpostdanpost

2021/2/28

@Roshan123, No. All users who run this while logged into greenfoot SHOULD be listed. However, I believe the scenario has broke since the change-over to javascript.
Roshan123Roshan123

2021/4/28

If u don't mind would u plz help in my discussion. Seems like u r the only one to help me out
349592576349592576

2021/6/7

Where can I find the source code for this? I would like to implement a similar thing in my project.
danpostdanpost

2021/6/7

@349592576, please start a discussion thread on your thing to implement.
Roshan123Roshan123

2021/7/19

Once u told me that u can block the user to use this scenario. Would u plz share the code to block the specified user
danpostdanpost

2021/7/19

@Roshan123, it is just a matter of comparing user to a list during logging in. List is literal code that would be updated as needed. I used a BannedWorld set active if banned user tries to log in.
Roshan123Roshan123

2021/7/20

Thanks for it. I think i made the required mechanism

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Greenfoot_Admin Goku555 epicgamez4201337 WilliamSmith dan11 trimil NewProgrammer FlyingRabidUnicornPig wabuilderman Entity1037 Kartoffelbrot bourne Sockman101 Kiara JetLennit dianefayeparajes PotatoHead Poli blahblah26 Upupzealot