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.

ChatBox Message

View previous topic View next topic Go down

In progress ChatBox Message

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

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

In progress Re: ChatBox Message

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: ChatBox Message

Post by _Twisted_Mods_ on 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_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: ChatBox Message

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: ChatBox Message

Post by _Twisted_Mods_ on 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_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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