View Full Version : Create pages for Mod CP
ZomgStuff
12-12-2007, 07:28 PM
There is a tutorial for creating pages in admin cp, but I'm trying to figure out mod CP.
https://vborg.vbsupport.ru/showthread.php?t=83122
Can someone help me out?
Thanks.
Opserty
12-12-2007, 07:50 PM
I'd say they were pretty similar, just put your file in the modcp directory.
You can use the can_moderate() function to verify permissions I think. Then just use the construct_cp_nav() (I think), print_cp_header() and print_cp_footer() functions as usual. Most the print_* functions work the same in the AdminCP as they do in the ModCP
The best thing is to look at a few pages already in there and see what is common between them, that will give you a basic template for the page (which should be pretty similar to the AdminCP one.)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.