More information under the avatar
Quote from Erenbur on May 2, 2019, 1:26 pmQuote from Asgaros on May 2, 2019, 11:09 amHello @erenbur
Some good ideas! Rank-systems (based on the amount of posts) are also very popular in other forum-systems. I think something like this I can add in a future update.
Hello, Thomas! I think it’s necessary to include the number of likes and dislikes in the rating system calculation. This functionality is already on the forum (this is good), it remains to include it in the calculation of the user’s rating.
Calculating the rating only by the number of posts is not a very accurate system of assessing the interlocutor. A stupid or rude person can write a lot of messages. But that will not make him better. He will also remain a poor interlocutor, but he will have a high rating. And if he gets a lot of dislikes for many of his bad messages, then with a large number of messages, the rating may fall below zero. And other users will start to avoid communicating with him.
Quote from Asgaros on May 2, 2019, 11:09 amHello @erenbur
Some good ideas! Rank-systems (based on the amount of posts) are also very popular in other forum-systems. I think something like this I can add in a future update.
Hello, Thomas! I think it’s necessary to include the number of likes and dislikes in the rating system calculation. This functionality is already on the forum (this is good), it remains to include it in the calculation of the user’s rating.
Calculating the rating only by the number of posts is not a very accurate system of assessing the interlocutor. A stupid or rude person can write a lot of messages. But that will not make him better. He will also remain a poor interlocutor, but he will have a high rating. And if he gets a lot of dislikes for many of his bad messages, then with a large number of messages, the rating may fall below zero. And other users will start to avoid communicating with him.
Quote from Asgaros on May 4, 2019, 3:39 pmHello @erenbur
One thing I want to avoid in a rating/ranking-system is some kind of negative rating. This means, an users ranking can get positive but not negative. Especially for new users a negative-rating can otherwise already occur after his first post which can makes him feel not welcome.
One example-calculation could be the following:
number of posts + number of likes – number of dislikes
With this calculation an user gets points for his posts and some extra/negative points for likes/dislikes.
The site-owner later can define some values for different rankings based on this calculations.
I put the ranking-feature on my todo-list here:
https://github.com/Asgaros/asgaros-forum/issues/226
Hello @erenbur
One thing I want to avoid in a rating/ranking-system is some kind of negative rating. This means, an users ranking can get positive but not negative. Especially for new users a negative-rating can otherwise already occur after his first post which can makes him feel not welcome.
One example-calculation could be the following:
number of posts + number of likes – number of dislikes
With this calculation an user gets points for his posts and some extra/negative points for likes/dislikes.
The site-owner later can define some values for different rankings based on this calculations.
I put the ranking-feature on my todo-list here:
Quote from Erenbur on May 5, 2019, 11:44 amThomas, you can do that then. Rating can not go below zero for beginners. That is, if there are a lot of dislikes, the rating is zero. If a lot of likes – the rating grows.
Even as an option, after about 100 messages (the user is already becoming an experienced member) – disills can begin to reduce the rating to the negative zone. That is, up to 100 messages the rating was zero, after 100, if there are a lot of dislikes, the rating smoothly starts to go below zero (not abruptly. If the rating on 100 messages was zero, then it is reset and begins to be re-considered, but now it can start to decrease below zero). If there were a lot of likes up to 100 posts – the rating is above zero, but he can now go into the negative zone. I hope I understand the idea wrote 🙂
All as options to consider. Maybe some of my thoughts will be useful to you.
Thomas, you can do that then. Rating can not go below zero for beginners. That is, if there are a lot of dislikes, the rating is zero. If a lot of likes – the rating grows.
Even as an option, after about 100 messages (the user is already becoming an experienced member) – disills can begin to reduce the rating to the negative zone. That is, up to 100 messages the rating was zero, after 100, if there are a lot of dislikes, the rating smoothly starts to go below zero (not abruptly. If the rating on 100 messages was zero, then it is reset and begins to be re-considered, but now it can start to decrease below zero). If there were a lot of likes up to 100 posts – the rating is above zero, but he can now go into the negative zone. I hope I understand the idea wrote 🙂
All as options to consider. Maybe some of my thoughts will be useful to you.
Quote from Sergey on July 17, 2019, 8:03 amЦитата из Асгароса 22 апреля 2019, 11: 01Привет @erenbur
В настоящее время я показываю только столько информации, сколько необходимо, чтобы не перегружать пользователей информацией. Возможно, я добавлю дополнительные дополнительные настройки для этого в будущем, но я пока не могу сказать вам, когда это произойдет.
В качестве обходного пути крюк asgarosforum_after_post_author можно использовать для добавления пользовательского содержимого в нижнюю область автора. Вот пример, чтобы показать регистр-дата, которая должна быть добавлена в функции темы.php файл:
функция after_author($author_id, $author_posts) { глобальный $ asgarosforum; $userData = $asgarosforum - >профиль - >>get_user_data($author_id); echo ' <br>'; echo ' дата регистрации:<br>'; echo $userData - >user_registered; } add_action ('asgarosforum_after_post_author', 'after_author', 10, 2);
- функция after_author ( $author_id, $author_posts ) {
- глобальный $ asgarosforum;
- $userData = $asgarosforum – > > профиль – > > get_user_data ( $author_id );
- echo ‘<br> ‘ <br>;
- echo ‘дата регистрации:<br>’ <br>;
- echo $userData – > > user_registered;
- }
- add_action (‘asgarosforum_after_post_author’,‘ after_author’, 10, 2 );
функция after_author($author_id, $author_posts) { глобальный $ asgarosforum; $userData = $asgarosforum - >профиль - >>get_user_data($author_id); echo ' <br>'; echo ' дата регистрации:<br>'; echo $userData - >user_registered; } add_action ('asgarosforum_after_post_author', 'after_author', 10, 2);
Hello,
How to add the registration date format to this code so that only the date “d m Y” is valid?
Цитата из Асгароса 22 апреля 2019, 11: 01Привет @erenbur
В настоящее время я показываю только столько информации, сколько необходимо, чтобы не перегружать пользователей информацией. Возможно, я добавлю дополнительные дополнительные настройки для этого в будущем, но я пока не могу сказать вам, когда это произойдет.
В качестве обходного пути крюк asgarosforum_after_post_author можно использовать для добавления пользовательского содержимого в нижнюю область автора. Вот пример, чтобы показать регистр-дата, которая должна быть добавлена в функции темы.php файл:
функция after_author($author_id, $author_posts) { глобальный $ asgarosforum; $userData = $asgarosforum - >профиль - >>get_user_data($author_id); echo ' <br>'; echo ' дата регистрации:<br>'; echo $userData - >user_registered; } add_action ('asgarosforum_after_post_author', 'after_author', 10, 2);
- функция after_author ( $author_id, $author_posts ) {
- глобальный $ asgarosforum;
- $userData = $asgarosforum – > > профиль – > > get_user_data ( $author_id );
- echo ‘<br> ‘ <br>;
- echo ‘дата регистрации:<br>’ <br>;
- echo $userData – > > user_registered;
- }
- add_action (‘asgarosforum_after_post_author’,‘ after_author’, 10, 2 );
функция after_author($author_id, $author_posts) { глобальный $ asgarosforum; $userData = $asgarosforum - >профиль - >>get_user_data($author_id); echo ' <br>'; echo ' дата регистрации:<br>'; echo $userData - >user_registered; } add_action ('asgarosforum_after_post_author', 'after_author', 10, 2);
Hello,
How to add the registration date format to this code so that only the date “d m Y” is valid?
Quote from Asgaros on July 18, 2019, 12:03 amHello @sergey
You can use the following code:
function after_author($author_id, $author_posts) { global $asgarosforum; $userData = $asgarosforum->profile->get_user_data($author_id); echo '<br>'; echo 'Register Date:<br>'; echo date('d.m.Y', strtotime($userData->user_registered)); } add_action('asgarosforum_after_post_author', 'after_author', 10, 2);
Hello @sergey
You can use the following code:
function after_author($author_id, $author_posts) { global $asgarosforum; $userData = $asgarosforum->profile->get_user_data($author_id); echo '<br>'; echo 'Register Date:<br>'; echo date('d.m.Y', strtotime($userData->user_registered)); } add_action('asgarosforum_after_post_author', 'after_author', 10, 2);
Quote from sujatha90 on July 25, 2019, 4:52 pmQuote from Asgaros on April 22, 2019, 11:01 amHello @erenbur
Currently I only show as much information as necessary to not overload users with information. Maybe I add additional optional settings for this in the future, but I cannot tell you yet when this happen.
As a workaround, the asgarosforum_after_post_author hook can be used to add custom-content to the lower author-area. Here is an example to show the register-date which must get added to the themes functions.php file:
function after_author($author_id, $author_posts) { global $asgarosforum; $userData = $asgarosforum->profile->get_user_data($author_id); echo '<br>'; echo 'Register Date:<br>'; echo $userData->user_registered; } add_action('asgarosforum_after_post_author', 'after_author', 10, 2);
Thank you for your valuable reply with understandable explanation.
Quote from Asgaros on April 22, 2019, 11:01 amHello @erenbur
Currently I only show as much information as necessary to not overload users with information. Maybe I add additional optional settings for this in the future, but I cannot tell you yet when this happen.
As a workaround, the asgarosforum_after_post_author hook can be used to add custom-content to the lower author-area. Here is an example to show the register-date which must get added to the themes functions.php file:
function after_author($author_id, $author_posts) { global $asgarosforum; $userData = $asgarosforum->profile->get_user_data($author_id); echo '<br>'; echo 'Register Date:<br>'; echo $userData->user_registered; } add_action('asgarosforum_after_post_author', 'after_author', 10, 2);
Thank you for your valuable reply with understandable explanation.
Quote from WoMo Olli on August 19, 2019, 6:53 amGuten Morgen Asgaros,
wie muss der Code aussehen damit der Wohnort angezeigt wird?
Grundsätzlich ist das eine tolle Idee, wenn man ein paar Zusätze
unter dem Avatar einbauen kann. Wäre echt klasse, wenn du so
eine Möglichkeit mal einbinden würdest.
Guten Morgen Asgaros,
wie muss der Code aussehen damit der Wohnort angezeigt wird?
Grundsätzlich ist das eine tolle Idee, wenn man ein paar Zusätze
unter dem Avatar einbauen kann. Wäre echt klasse, wenn du so
eine Möglichkeit mal einbinden würdest.
Quote from Asgaros on August 19, 2019, 6:56 amHallo @womo-olli
Das kommt ein bisschen darauf an, wie du den Wohnort in WordPress speicherst. Generell können zusätzliche Informationen über den folgenden Hook angezeigt werden:
add_action('asgarosforum_after_post_author', 'show_something', 10, 2); function show_something($user_id, $number_of_posts) { if (!$user_id) { return; } // do something here ... }Der untere Teil muss natürlich so angepasst werden, so dass der entsprechende Datensatz angezeigt wird.
Hallo @womo-olli
Das kommt ein bisschen darauf an, wie du den Wohnort in WordPress speicherst. Generell können zusätzliche Informationen über den folgenden Hook angezeigt werden:
add_action('asgarosforum_after_post_author', 'show_something', 10, 2); function show_something($user_id, $number_of_posts) { if (!$user_id) { return; } // do something here ... }
Der untere Teil muss natürlich so angepasst werden, so dass der entsprechende Datensatz angezeigt wird.
Quote from WoMo Olli on August 19, 2019, 7:06 amIch verstehe. Ich nutze ein Plugin für die Registrierung, wo der Wohnort mit abgefragt wird. Jetzt muss ich quasi rausfinden wie das gespeichert wird. Ok, damit werde ich mich mal auseinander setzen. Danke dir erstmal!
Ich verstehe. Ich nutze ein Plugin für die Registrierung, wo der Wohnort mit abgefragt wird. Jetzt muss ich quasi rausfinden wie das gespeichert wird. Ok, damit werde ich mich mal auseinander setzen. Danke dir erstmal!
Quote from Erenbur on August 19, 2019, 11:02 pmThomas, this is the easiest way to make an additional field. In the plugin settings admin writes the name of the field. For Example “Town”. And the user under registration there himself writes, for example “Berlin”.
P.S. Judging by the latest update and the excitement about the appearance of the rating, people want to be able to add more information under the avatar.
Thomas, this is the easiest way to make an additional field. In the plugin settings admin writes the name of the field. For Example “Town”. And the user under registration there himself writes, for example “Berlin”.
P.S. Judging by the latest update and the excitement about the appearance of the rating, people want to be able to add more information under the avatar.