ChatBox Message
3 posters
Page 1 of 1
ChatBox Message
In the one ChatBox I saw this message:
user reached xxx posts
The message come out whenever a users had a hundred posts, and on every hundred posts.
I like that and ask you did someone can make it?
Thanks in advance!
Regards & Respect!!!
user reached xxx posts
The message come out whenever a users had a hundred posts, and on every hundred posts.
I like that and ask you did someone can make it?
Thanks in advance!
Regards & Respect!!!
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: ChatBox Message
Hello smejker,
That type of thing would be hard to do as you would most likely need to have something logged into the chat for days. Even then it would still be hard, because you would need to send requests to the /memberlist and compare every member on the list to the goal you want posted.
That type of thing would be hard to do as you would most likely need to have something logged into the chat for days. Even then it would still be hard, because you would need to send requests to the /memberlist and compare every member on the list to the goal you want posted.
Re: ChatBox Message
what about something thats user based not the whole forum .. basicly on forum load it read that users post count and if its 100 it saves a cookie and next time they login to chat it grabs that cookie and post then replaces the cookie with with something saying its been sent already
Re: ChatBox Message
If the member has their browser auto clear history then the cookie wouldn't live next session. It is possible for the user to post it themselves, however, there's complications. For example you could do this :
Set a cookie, or use local storage to say that it was posted. However, if they clear history and still have 100 posts, it will post again next time they log into the chat. Once they are past 100 there are no issues.
- Code:
if (_userdata.user_posts == 100) { } // do something
Set a cookie, or use local storage to say that it was posted. However, if they clear history and still have 100 posts, it will post again next time they log into the chat. Once they are past 100 there are no issues.
Re: ChatBox Message
the only other thing i can think of is to create a profile field and hide it.. and submit the info to profile field instead of useing the cookies either way its not gonna be a easy task
Similar topics
» Colour of Chatbox Message Bar
» Automatic rules message in Chatbox?
» background color for chatbox message
» [phpbb3] Changing the Information Notice Message? Or make a new Information Notice Message?
» How can I add edit/delete functions for each message in chatbox?
» Automatic rules message in Chatbox?
» background color for chatbox message
» [phpbb3] Changing the Information Notice Message? Or make a new Information Notice Message?
» How can I add edit/delete functions for each message in chatbox?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum