vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   AdminCP User Check (https://vborg.vbsupport.ru/showthread.php?t=159041)

Hex_legend 09-29-2007 02:26 PM

AdminCP User Check
 
Under what file / line would I find the file that checks for an admin login in the ACP?

I mean, if I wanted access to the ACP by all users, what would I change / edit?

Funny request I know, I have my reasons, just would like some assistance.

Thanks

Opserty 09-29-2007 02:35 PM

I'd check global.php file in the admincp folder its probably in there. Though you only have yourself to blame if something goes wrong...

Hex_legend 09-29-2007 02:37 PM

I'm running a test board at the moment,

Just wondering if anyone can tell me the line of code that I need to remove to allow all users to log into the ACP

Opserty 09-29-2007 02:52 PM

Looking at it again...I don't think you can, because every time you add an administrator they get certain admin permission...You might be able to remove it from the global.php file but I don't know what effect this would have on the AdminCP itself or its functions.

Hex_legend 09-29-2007 02:54 PM

Does anyone know how to have the ACP working but allowing a specific usergroup to access it, lets say - Registered Users

dyna88 09-29-2007 03:52 PM

Go into your Usergroup Manager select the usergroup that you want to access the adminCP and set "Can Access Control Panel (is Administrator)" to yes....

Hex_legend 09-29-2007 04:00 PM

That's not quite what I mean dyna,

Basically, I am totally re-editing the admincp as a standard control panel for everyone to access.

There will still be an ACP, but there will also be a new control panel exactly the same as the ACP which is why I need it so that all people can access this new ACP..

Lets say.. I call it UCP, but copy all the ACP files over, how can I remove the user permissions check so it lets all users access the UCP?

dyna88 09-29-2007 04:02 PM

hmmm, I curious as to what advantage that would give you??? Please explain....

Hex_legend 09-29-2007 04:04 PM

Its for a personal project that I am trying to come up with.

All I want is something like the ACP or MODCP with my own options inside, so nothing that would cause harm to the site, but something that all users can access.

Opserty 09-29-2007 05:11 PM

Look into using the:
  • print_cp_header()
  • print_cp_footer()
Functions then, as opposed to hacking the vBulletin files. To be honest you should stay completely clear of using any vBulletin AdminCP hacks...I don't know how much programming knowledge you have but I wouldn't give any users access to files in the AdminCP even if you are making your own options make them in a seperate folder (e.g. /usercp/ or something and base the files on the files in the ACP but don't use the exact code unless your completely sure that it is safe.

There are a large number of print_* functions to print various items in the adminfunctions.php file: http://members.vbulletin.com/api/


All times are GMT. The time now is 07:46 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.01069 seconds
  • Memory Usage 1,728KB
  • 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)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