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.

ChatBox Message

3 posters

Go down

In progress ChatBox Message

Post by smejker November 27th 2014, 12:16 pm

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!!!
smejker
smejker
Forumember

Male Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian

Back to top Go down

In progress Re: ChatBox Message

Post by Ange Tuteur November 27th 2014, 2:27 pm

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.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: ChatBox Message

Post by _Twisted_Mods_ November 27th 2014, 3:38 pm

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
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: ChatBox Message

Post by Ange Tuteur November 27th 2014, 4:08 pm

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 :

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.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: ChatBox Message

Post by _Twisted_Mods_ November 27th 2014, 4:15 pm

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
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Back to top

- Similar topics

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