Add/Remove Groups Missing After Installing Extra Fields

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Add/Remove Groups Missing After Installing Extra Fields

mopsnetwork
Hello Nabble Support,

Some time ago when Hugo helped me install a couple of macros, including "Extra Fields" and "ip", the 'Add/Remove Groups' option has disappered from profiles.

It was not a big deal at first but now it's a bit of a pain to manage users and groups from the Admin panel and I feel like it would be convinent to manage groups through profiles.

I did try combining code to the Extra Fields, in hopes to get the Add/Remove Groups option back, but so far no luck.

Any ideas as to what I can do? Many thanks.

Code can be found here: http://support.nabble.com/Getting-the-ip-address-from-a-visitor-and-show-it-on-extra-fields-td7586939.html
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove Groups Missing After Installing Extra Fields

Franklin <Nabble>
Administrator
Please post a link to your site.
Reply | Threaded
Open this post in threaded view
|

Re: Add/Remove Groups Missing After Installing Extra Fields

mopsnetwork
After having a day off work, I decided to play with the code while breaking many things in the process but after a while, I fixed it.

For anyone who is interested, place this code under the "IP Property" code.

            <n.if.visitor.is_site_admin>
            <then>
            <div style="margin-top:.5em">
        <img src="/images/user_group.png" class="image16" style="margin:0 1px"/>
        <a href="[n.change_user_groups_path/]" target="_top"><t>Add / Remove Groups</t></a>
        <img src="/images/user_group.png" class="image16" style="margin:0 1px"/>
        <a href="[n.edit_profile_path/]" target="_top"><t>Edit Profille</t></a>
    </div>
                </then>
            </n.if.visitor.is_site_admin>

If you install the Extra Fields and IP script, the Add/Remove Groups and other moderator options don't show. The code provided above fixes it.

Thanks for responding Franklin.