vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   [HELP!] Adding an option to ModCP that's in AdminCP? (https://vborg.vbsupport.ru/showthread.php?t=158021)

ArchangelX 09-17-2007 05:10 AM

[HELP!] Adding an option to ModCP that's in AdminCP?
 
1 Attachment(s)
Hello all,

I have the vB.Sponsors product installed on my system, but I would like to allow the Sponsors that mod their specific sponsor section the ability to monitor their clickthroughs.

The vB.Sponsors Product
https://vborg.vbsupport.ru/showthread.php?t=103327

There is a View Statistics option in my AdminCP that I would like to allow them the ability to view. I tried posting within the support thread, but the plugin looks like it's unsupported now, and the host site is completly down.

Here's the screenshot of the statistics.
https://vborg.vbsupport.ru/attachmen...6&d=1179847271

The basic question is:

I would like to know how to add an option that is already in AdminCP to the ModCP so they can view their statistics.

Any help would be appreciated. Thank you!

-Mike K.

WhaLberg 09-17-2007 07:54 AM

Open the file, find
PHP Code:

if (!can_administer...) 
{
print_cp_no_permission(); 


Change it as
PHP Code:

if (!can_moder
{
    
print_cp_no_permission();


After that you can copy the file into modcp and add a link in modcop/index.php.

How you can add link?
PHP Code:

construct_nav_option('linkname''link');
construct_nav_group('groupname');
construct_nav_spacer(); 

Good luck.

ArchangelX 09-17-2007 08:34 AM

AWESOME...thank you so much. I'll go try this out now!

Alright...I got it...it works! But I didn't realize that I've got to figure out someway to let regular mods do it. Hmm. I don't want to have to make them Supermods. Thanks for the help though! :D

.

Woot! I figured it out...I was able to get it to show up just for the Mods...thanks so much for your help! The night was long until you came along! Thanks!


All times are GMT. The time now is 05:06 AM.

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.00938 seconds
  • Memory Usage 1,717KB
  • 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
  • (3)bbcode_php_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