Please or Register to create posts and topics.

More information under the avatar

PreviousPage 2 of 3Next
Quote from Asgaros on May 2, 2019, 11:09 am

Hello @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.

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:

https://github.com/Asgaros/asgaros-forum/issues/226

Tim has reacted to this post.
Tim
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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.

Asgaros and Tim have reacted to this post.
AsgarosTim
Цитата из Асгароса 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);
  1. функция after_author ( $author_id, $author_posts ) {
  2. глобальный $ asgarosforum;
  3. $userData = $asgarosforum > > профиль > > get_user_data ( $author_id );
  4. echo ‘<br> ‘ <br>;
  5. echo ‘дата регистрации:<br>’ <br>;
  6. echo $userData > > user_registered;
  7. }
  8. 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?

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);

 

WoMo Olli has reacted to this post.
WoMo Olli
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from Asgaros on April 22, 2019, 11:01 am

Hello @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.

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.

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.

WoMo Olli has reacted to this post.
WoMo Olli
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

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!

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.

PreviousPage 2 of 3Next