to view the examples you can just view the attachments at the bottom of dream's post.
This is a really useful tutorial, thanks |
Does anybody have a guide like this for making Mod CP pages? I'm a bit confused...
|
thanks, very useful
|
excellent, try to keep it updated :)
|
|
Is it just me, or does adminfunctions.php not exist?
|
Quote:
|
Ah-ha! Thanks. Is there some easier way to get the information that Dream got from adminfunctions.php without having to read through all the file's code?
|
HOW TO ADD CHECK BOXES!
Disclaimer: There may be better ways to do this but I searched quite a bit and finally hacked this together using some basic PHP! About this example: In this example I am going to work with results from a database query. This is a worst case example (I think) so anybody should be able to figure it out for a simpler case. Page 1: This is the form that the Admin Adds the data to! PHP Code:
PHP Code:
|
you can use can_administer() to check
the following bitfield permissions [ismoderator] => 1 [cancontrolpanel] => 2 [canadminsettings] => 4 [canadminstyles] => 8 [canadminlanguages] => 16 [canadminforums] => 32 [canadminthreads] => 64 [canadmincalendars] => 128 [canadminusers] => 256 [canadminpermissions] => 512 [canadminfaq] => 1024 [canadminimages] => 2048 [canadminbbcodes] => 4096 [canadmincron] => 8192 [canadminmaintain] => 16384 [canadminupgrade] => 32768 [canadminplugins] => 65536 |
All times are GMT. The time now is 10:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|