Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Speed King on October 02, 2022, 12:18:44 AM

Title: Helpadmin available for guests
Post by: Speed King on October 02, 2022, 12:18:44 AM
Hello,

I have two SMF forums (2.0.19 and 2.1.2)
In both forums, I have granted permissions for guests to view memberlist and membergroups.
But in the new 2.1.2 forum, when guests view membergroups, next to 'Administrator' group is available helpadmin popup.

Click => (https://i.postimg.cc/LnzwZCbM/2022-10-02.png) (https://postimg.cc/LnzwZCbM)

There is not such issue in 2.0.19 forum.

Links:

- 2.0.19 - https://www.forum.bg-nacionalisti.org/index.php?action=groups

- 2.1.2 - https://bg-nacionalisti.org/BNF/index.php?action=groups


P.S. How to make membergroup descriptions to be displayed in the 2.1 list?
Title: Re: Helpadmin available for guests
Post by: Kindred on October 02, 2022, 05:59:22 PM
What mods do you have installed?
Title: Re: Helpadmin available for guests
Post by: Illori on October 02, 2022, 07:39:15 PM
Code ("Sources/Groups.php find") Select
                            if (allowedTo('manage_membergroups'))
                            {
                                $group_name = sprintf('<a href="%1$s?action=admin;area=membergroups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $color_style, $rowData['group_name']);
                            }
                            else
                            {
                                $group_name = sprintf('<a href="%1$s?action=groups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $color_style, $rowData['group_name']);
                            }


Code (replace) Select
                            if (allowedTo('manage_membergroups'))

                            {
                                $group_name = sprintf('<a href="%1$s?action=admin;area=membergroups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $color_style, $rowData['group_name']);
                                if ($rowData['desc'])
                            $group_name .= '<div class="smalltext">' . $rowData['desc'] . '</div>';
                            }
                            else
                            {
                                $group_name = sprintf('<a href="%1$s?action=groups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $color_style, $rowData['group_name']);
                                        if ($rowData['desc'])
                            $group_name .= '<div class="smalltext">' . $rowData['desc'] . '</div>';
                            }
                        }

it puts the (?) on a separate line, so may need further tweaking but it does what the op wants.

this code was removed in SMF 2.1, but similar code exists in SMF 2.0.
Title: Re: Helpadmin available for guests
Post by: Speed King on October 02, 2022, 10:20:19 PM
Quote from: Illori on October 02, 2022, 07:39:15 PM
Code ("Sources/Groups.php find") Select
                            if (allowedTo('manage_membergroups'))
                            {
                                $group_name = sprintf('<a href="%1$s?action=admin;area=membergroups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $color_style, $rowData['group_name']);
                            }
                            else
                            {
                                $group_name = sprintf('<a href="%1$s?action=groups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $color_style, $rowData['group_name']);
                            }


Code (replace) Select
                            if (allowedTo('manage_membergroups'))

                            {
                                $group_name = sprintf('<a href="%1$s?action=admin;area=membergroups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $color_style, $rowData['group_name']);
                                if ($rowData['desc'])
                            $group_name .= '<div class="smalltext">' . $rowData['desc'] . '</div>';
                            }
                            else
                            {
                                $group_name = sprintf('<a href="%1$s?action=groups;sa=members;group=%2$d"%3$s>%4$s</a>', $scripturl, $rowData['id_group'], $color_style, $rowData['group_name']);
                                        if ($rowData['desc'])
                            $group_name .= '<div class="smalltext">' . $rowData['desc'] . '</div>';
                            }
                        }

it puts the (?) on a separate line, so may need further tweaking but it does what the op wants.

this code was removed in SMF 2.1, but similar code exists in SMF 2.0.

Thanks, now descriptions are included in the membergroup list :)
Title: Re: Helpadmin available for guests
Post by: Speed King on October 02, 2022, 10:28:33 PM
Quote from: Kindred on October 02, 2022, 05:59:22 PMWhat mods do you have installed?

1    SCEditor Max Height    1.0.1
2    SMF Gallery Pro Recent Images Board Index    2.0.2
3    SMF 2.1.1 Update    1.0
4    ArantorSidebar    1.0.1
5    Badge Awards    2.6.2a
6    More Spiders    1.3.1
7    Topic Rating Bar    1.7.3
8    Quick Spoiler    1.5.1
9    TopicStarter    1.8.1
10    Team Page    5.3.5
11    Message Bookmarks    0.9.3
12    SMF Links    4.0.1
13    SMF 2.1.2 Update    1.0
14    Hall Of Fame    1.2
15    Downloads System Pro    6.1.2
16    Emoji Pro    2.0
17    BBC Message Boxes    1.0
18    TinyPortal    2.2.3
19    Awesome Post Ratings    2.0.4
20    SMF Gallery Pro Profile Link    1.2a
21    RSS Feed Icon    2.0.1
22    Scrolling Buttons    0.5.1
23    Contact Page    7.0a
24    Optimus    2.10.6   
25    Custom_Top_menu    1.4
26    Alternate User Posting    2.1.2
27    Mod Version Checker    1.1
28    Simple Audio Video Embedder    7.0
29    Similar Topics    1.2.3
30    SMF Gallery Pro    9.0.6a
31    Members Online Today    1.0
32    FAQ Mod    2.0
33    Ultimate Menu    2.0.2