HDTechVideo
Проверенные
- Сообщения
- 46
- Реакции
- 60
- Баллы
- 8,115
Is there any way to reset the manually changed message count, likes and Trophy points according to his/her original message count and likes.
Смотрите видео ниже, чтобы узнать, как установить наш сайт в качестве веб-приложения на домашнем экране.
Примечание: В настоящее время эта функция требует доступа к сайту с помощью встроенного браузера Safari.
Via AdminCP we can change the value but how will we get the actual value?Edit user in adminCP. No?
Here You have 835 post, 179 Likes. Suppose if you changed to 5000 Post, 500 Likes. and now you want to get back the actual message count and likes but you dont know the actual value. Is there any way to automatically count the total message and likes.I do not get exactly what you need. :)
Is there any cron call back for that. Because every time user create a post it is adding by one so there may be a callback for that... If you dont mind to post this on xenforo we may get an answer. :wink:Of course not. Such a method does not exist. :)
I dont have permission to post there :)...Ask there, I was all the same...
You do not know how to query? Or what?but dont know how to do that
I dont know how to do query on xenforoYou do not know how to query? Or what?but dont know how to do that
:) Yes working... Message count is updated now Likes :(phpMyAdmin. :)
UPDATE xf_user AS user
SET message_count = (
SELECT COUNT(*)
FROM xf_post AS post
LEFT JOIN xf_thread AS thread ON (thread.thread_id = post.thread_id)
WHERE post.user_id = user.user_id
AND post.message_state = 'visible' AND thread.discussion_state = 'visible'
GROUP BY post.user_id
);
UPDATE xf_user AS user
SET message_count = (
SELECT COUNT(*)
FROM xf_post AS post
LEFT JOIN xf_thread AS thread ON (thread.thread_id = post.thread_id)
WHERE post.user_id = user.user_id
AND thread.node_id NOT IN (1,2,3)
AND post.message_state = 'visible' AND thread.discussion_state = 'visible'
GROUP BY post.user_id
);
Thank you... :)No prob. :)
Мы используем основные cookies для обеспечения работы этого сайта, а также дополнительные cookies для обеспечения максимального удобства пользователя.
Посмотрите дополнительную информацию и настройте свои предпочтения