Are ranks supposed to be accumulative? All my users have every rank they've gotten below their user name. I would prefer only the highest weighted rank be shown, but even with correct weight settings, nothing seems to change. How do I fix this?
Forums
Forum ranks show all previous ranks
Well this has been enlightening. Apparently, the answer is the developers don't care because they're too busy abandoning their software. Looks like I'll have to find a different forum software where the devs give 2 shits.
Hi Rajada,
I don't know anything about ChronoForums, Please try contacting Max, the developer, directly through the Contact Us menu above. I think that he has been travelling through the summer and has patchy internet connection.
Bob
I don't know anything about ChronoForums, Please try contacting Max, the developer, directly through the Contact Us menu above. I think that he has been travelling through the summer and has patchy internet connection.
Bob
Here's how to add a max posts option to the ranks so ranks based on post counts now work properly:
IN: administrator\components\com_chronoforums\chronoforums\views\ranks\edit,php
Where:
Add below:
IN: components\com_chronoforums\chronoforums\chronoforums.php :: _update_ranks()
Where:
Change to:
You can update language files yourself to make the setting appear correctly.
IN: administrator\components\com_chronoforums\chronoforums\views\ranks\edit,php
Where:
<?php echo $this->Html->formLine('Rank[params][user_posts]', array('type' => 'text', 'label' => l_('RANK_POSTS'), 'value' => '', 'class' => 'S', 'sublabel' => l_('RANK_POSTS_DESC'))); ?>
Add below:
<?php echo $this->Html->formLine('Rank[params][user_max_posts]', array('type' => 'text', 'label' => l_('RANK_MAX_POSTS'), 'value' => '', 'class' => 'S', 'sublabel' => l_('RANK_MAX_POSTS_DESC'))); ?>
IN: components\com_chronoforums\chronoforums\chronoforums.php :: _update_ranks()
Where:
if(!empty($rank['Rank']['params']['user_posts']) AND (int)$rank['Rank']['params']['user_posts'] <= $post_count){
if(!empty($rank['Rank']['group_id'])){
$new_ranks[$rank['Rank']['group_id']] = $rank['Rank']['id'];
}else{
$new_ranks[] = $rank['Rank']['id'];
}
}
Change to:
if(!empty($rank['Rank']['params']['user_posts']) AND (int)$rank['Rank']['params']['user_posts'] <= $post_count){
if(empty($rank['Rank']['params']['user_max_posts']) || (!empty($rank['Rank']['params']['user_max_posts']) AND (int)$rank['Rank']['params']['user_max_posts'] >= $post_count))
{
if(!empty($rank['Rank']['group_id'])){
$new_ranks[$rank['Rank']['group_id']] = $rank['Rank']['id'];
}else{
$new_ranks[] = $rank['Rank']['id'];
}
}
}
You can update language files yourself to make the setting appear correctly.
Works well. Just make sure to leave the max empty on the last/highest rank in the order.
[attachment=0]forumranks.jpg[/attachment]
[attachment=0]forumranks.jpg[/attachment]
Hi,
In order for the highest weight rank to be shown, your ranks must have the SAME group, I have just tested this here and it works as expected.
And sorry for the late reply!
Regards,
Max
In order for the highest weight rank to be shown, your ranks must have the SAME group, I have just tested this here and it works as expected.
And sorry for the late reply!
Regards,
Max
If that's all there is to it, and I apply this fix but the users all have the same ranks, is there some way to refresh these ranks? Or do I need to re-create all of them from scratch to get them working properly?
ranks are calculated when you log in, so you will need to clear the existing ranks and then they will be calculated when the users login, you better test this with your account only first, you can clear the ranks value in the users_profiles table of chronoforums.
I may add an admin tool to clear/calculate the ranks in the next release.
I may add an admin tool to clear/calculate the ranks in the next release.
you can clear the ranks value in the users_profiles table of chronoforums.
Through something like PHP My Admin? I may not have access to that at the moment. Would deleting and re-creating the ranks do the same thing or would that be causing more issues than it solves?
Yes, you need phpmyadmin to clear the ranks now, or you can leave the old wrong ranks and wait for the users to login and get the updated ones.
Updating the ranks will not have any effects if the users don't login, you can test that your ranks setup is correct with a new user.
Updating the ranks will not have any effects if the users don't login, you can test that your ranks setup is correct with a new user.
Should these ranks be refreshing on a normal, community builder user login? Or only when a user is newly created? They did change color, but still remain on user's profiles.
Just try to logout then login with your account, do you get the updated ranks ?
No, but once again, I have too many ranks on users. So for example, if I had three ranks for 1 post, 2 posts, and 3 posts, everyone with three posts has all three ranks visible. Logging out and in does not change this. Though custom colors are now no longer working as well. Something changed, just not in the way I wanted.
and the ranks groups are correctly setup ? if yes then please test using a new test account without any ranks.
Sadly, after painstakingly deleting and re-creating the ranks with different names, ID's, and post counts within the same group ID, they still refused to cooperate. More heavily weighted ranks still do NOT replace the less heavily weighted ones.
You just need to fix the ranks groups then login with a test account to test that, I have already tested this here and it worked, if you can send me login details to your forum (create a new test admin account for me) then I can check that, please use the "Contact us" page to send the info.
You have the latest update, correct ?
Regards,
Max
You have the latest update, correct ?
Regards,
Max
It is possible I may be a version behind, so perhaps I should make sure. Shall I drag the zip into the Joomla backend installer to update?
Welp, after updating, my forums are now gone. The board page is blank except for the "Powered by" message.
Really loving agonizing over this... maybe I should go find another plugin.
Really loving agonizing over this... maybe I should go find another plugin.
Maybe you didn't configure the permissions after the update, if your old install was outdated then you should check the permissions section and update it.
Regards,
Max
Regards,
Max
This topic is locked and no more replies can be posted.