vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Remove Paid Subscription Administrator Permission (https://vborg.vbsupport.ru/showthread.php?t=262746)

PirateTinman 04-27-2011 06:01 PM

Remove Paid Subscription Administrator Permission
 
Hi!
I have been searching the internet and these forums for a way to remove the ability for Administrators to see the "Paid Subscriptions" tab in the Admin Panel and only allow the Super Administrators (the ones in the config.php) I am sure its possible to do, I just don't know how.

It should act the same as the permission to see the "Administrator Permissions" tab under "Usergroups" as that can only be accessed by the Super Admins.

Thanks for any help!

HMBeaty 04-27-2011 06:07 PM

You can do this in the includes/xml/cpnav_vbulletin.xml file in this area:
HTML Code:

    <navgroup phrase="paid_subscriptions" permissions="canadminusers"  hr="true" displayorder="170">

        <navoption displayorder="10">
            <phrase>subscription_manager</phrase>
            <link>subscriptions.php?do=modify</link>
        </navoption>

        <navoption displayorder="20">
            <phrase>add_new_subscription</phrase>
            <link>subscriptions.php?do=add</link>
        </navoption>

        <navoption displayorder="30">
            <phrase>transaction_log</phrase>
            <link>subscriptions.php?do=transactions&amp;type=log</link>
        </navoption>

        <navoption displayorder="40">
            <phrase>transaction_stats</phrase>
            <link>subscriptions.php?do=transactions&amp;type=stats</link>
        </navoption>

        <navoption displayorder="50">
            <phrase>subscription_permissions</phrase>
            <link>subscriptionpermission.php?do=modify</link>
        </navoption>

        <navoption displayorder="60">
            <phrase>paymentapi_manager</phrase>
            <link>subscriptions.php?do=api</link>
        </navoption>

        <navoption debug="1" displayorder="70">
            <phrase>add_paymentapi</phrase>
            <link>subscriptions.php?do=apiadd</link>
        </navoption>

        <navoption displayorder="80">
            <phrase>test_communication</phrase>
            <link>diagnostic.php?do=payments</link>
        </navoption>

    </navgroup>

Just have a look through that xml file and change the bold
Code:

permissions="canadminusers"
to whatever you want

PirateTinman 04-27-2011 06:31 PM

Thanks, that was exactly what I needed!


All times are GMT. The time now is 07:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01093 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete