Hello, I would like to disable people being shown as local moderators inside certain boards but still show them as moderators in the board index, EG, instead of showing them as moderator with the default stars i want their primary membergroup to be show
Note, i only want this for certain boards
Perhaps you want sth. like that ::)
Lainaa
Sources/Load.php
// By popular demand, don't show admins or global moderators as moderators.
if ($user_profile[$id]['ID_GROUP'] != 1 && $user_profile[$id]['ID_GROUP'] != 2)
$user_profile[$id]['member_group'] = $row['member_group'];
// If the Moderator group has no color or stars, but their group does... don't overwrite.
if (!empty($row['stars']))
$user_profile[$id]['stars'] = $row['stars'];
if (!empty($row['member_group_color']))
$user_profile[$id]['member_group_color'] = $row['member_group_color'];
// By popular demand, don't show admins or global moderators as moderators.
if ($user_profile[$id]['ID_GROUP'] != 1 && $user_profile[$id]['ID_GROUP'] != 2 && $user_profile[$id]['ID_GROUP'] != 3) {
$user_profile[$id]['member_group'] = $row['member_group'];
// If the Moderator group has no color or stars, but their group does... don't overwrite.
if (!empty($row['stars']))
$user_profile[$id]['stars'] = $row['stars'];
if (!empty($row['member_group_color']))
$user_profile[$id]['member_group_color'] = $row['member_group_color'];
}
//Above the Color Fix by DIN1031, it's possible it will be insert sometime!
Let me know,if that works
it works, thanks
Lainaus käyttäjältä: α¢αηѕ - tammikuu 22, 2009, 09:41:09 AP
it works, thanks
I made a mistake with my group i was testing, the id was 2 so that works, the one i change from 3 to the required id was 17 but it doesnt work.
You can add to the related if-expression as much groups as you wish
// By popular demand, don't show admins or global moderators as moderators.
if ($user_profile[$id]['ID_GROUP'] != 1 && $user_profile[$id]['ID_GROUP'] != 2 && $user_profile[$id]['ID_GROUP'] != 3 && $user_profile[$id]['ID_GROUP'] != x && $user_profile[$id]['ID_GROUP'] != y ) {
x & y should be replaced with the related group_ids
nope, I tryed it, and deleted my cathe after it, but still doesnt work
But it should,there is no other way to achieve that !
You make probably something wrong with the group_id's
mines set like this
// By popular demand, don't show admins or global moderators as moderators.
if ($user_profile[$id]['ID_GROUP'] != 1 && $user_profile[$id]['ID_GROUP'] != 2 && $user_profile[$id]['ID_GROUP'] != 17 ) {
What kinda group is that ? Also with ID 17- Maybe post-based ?
requestable
Can you take a screenshot from your membergroup list,is that possible ?
the membergroup index, or the edit page for the group im trying not to show as a local
Is that membergroup (ID17) their primary membergroup?
Lainaus käyttäjältä: α¢αηѕ - helmikuu 02, 2009, 05:36:53 IP
the membergroup index, or the edit page for the group im trying not to show as a local
yes, and they have no addionatly membergroups
Well it should work. Try to delete all the stars from the Moderator member group. It will then default to the normal Post Count group stars and have the defined Primary Membergroup.
Lainaus käyttäjältä: Rumbaar - helmikuu 12, 2009, 02:14:26 AP
Well it should work. Try to delete all the stars from the Moderator member group. It will then default to the normal Post Count group stars and have the defined Primary Membergroup.
Didn't work, I went into the load.php file tho and the dev's have added this
// If the Moderator group has no color or stars, but their group does... don't overwrite.
if (!empty($row['stars']))
$user_profile[$id]['stars'] = $row['stars'];
if (!empty($row['member_group_color']))
$user_profile[$id]['member_group_color'] = $row['member_group_color'];
Once i removed the local mod colour it worked, thanks for your help Rumbaar