vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Administrative and Maintenance Tools - [phd] -- Mod / Admin CP Browser (https://vborg.vbsupport.ru/showthread.php?t=210826)

Jaiibee 04-09-2009 10:00 PM

[phd] -- Mod / Admin CP Browser
 
1 Attachment(s)
Pre-Amble
This modification will allow the forums Administration and Moderation teams to browse the forum, or the web, from the comfort of their Moderation / Administration Control Panel.

Why would you want this? Not only will this keep your moderators and administrators in their control panel more, but it makes using the control panel a much less time consuming task. They're able to simply and quickly hit a button to perform their tasks, as opposed to logging into the control panel to do each thing.
Admin CP
Upload the files inside the attached .ZIP, and that's it.

The files should look like this...

/forums/cpb_browse.php
/forums/includes/xml/cpnav_cpb.xml

The /forums/ is very important!
Feel free to edit the files if you don't want to put it in a /forums/ directory, just edit out the /forums/ inside the XML using Notepad

Code based on this modification
Mod CP
This is a simple coding edit, and I owe Ragtek the respect he deserves for his thread on this [His Thread]

Simply go to Plugins & Products -> Add New Plugin in your Admincp, and enter in the following values.

Product: vBulletin
Hook: mod_index_navigation
Title: Moderation Control Panel Browser
Execution Order: 5
Plugin PHP Code :
Code:

construct_nav_option('Forum Home', '/forums/');
        construct_nav_option('Enter URL', '/forums/cpb_browse.php');
        construct_nav_group('ModCP Browser');
        construct_nav_spacer();

Plug is Active: Yes

This is all you need to add the required links to the ModCP.
Lets get into some customizations though, as you can see that my cpb_browse.php is located inside a /forums/ folder (something I dont like, but the person I did this for does).

Simply change the /forums/ part to whatever you like,
/ for the servers root
/forums/ for the forums directory off the forums root
You get the picture.

mrtroybaker 04-10-2009 07:29 AM

Screen shot? Mod sounds great.

Jasem 04-10-2009 08:28 AM

Good work, thank you

Installed

Alexey? 04-10-2009 09:06 AM

Sounds nice.
do you have any screenshot?

Jaiibee 04-10-2009 11:43 AM

Screenshots have been added.

mrtroybaker 04-10-2009 08:27 PM

Maybe its just me but "phd_browse.php" isnt in the folder I downloaded. I am assuming "cpb_browse" is the file being refered to. Also, where does this go?

"construct_nav_option('Forum Home', '/forums/');
construct_nav_option('Enter URL', '/forums/cpb_browse.php');
construct_nav_group('ModCP Browser');
construct_nav_spacer();

Jaiibee 04-10-2009 09:33 PM

Please put that into code tags.
Yes, I did mean cpb, however I made a mistake and said phd. Sorry about that, I've editted my original post.

That code is what is put into the plugins PHP code.
Go to Plugins & Products -> Add New Plugin
and add it in there.

mrtroybaker 04-11-2009 06:24 PM

Thank you very much

Riceman 04-12-2009 10:02 AM

Sounds like a great mod, thank you. Good luck with any of your future mods.

TheLastSuperman 04-12-2009 02:25 PM

I've done this w/ less edits, no file uploads and the extra links too... I would have to track down how I did it.. been so long but HATS OFF for making the mod ;)

S-MAN


All times are GMT. The time now is 06:57 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.01213 seconds
  • Memory Usage 1,740KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete