PDA

View Full Version : Administrators Using ACP


Zero Tolerance
13 Jun 2005, 12:25
Port of: http://www.vbulletin.org/forum/showthread.php?s=&threadid=80624

Although this only modifies 1 line of admincp/index.php to add in a custom hook, the installer included has install/uninstall/repair custom hook, so if you upgrade you can just repair the custom hook.

So just run the custom hook installer and then upload the plugin, and you're done :)

Enjoy,

- Zero Tolerance

KuRi
13 Jun 2005, 17:30
ok i ran the php file and now i cant access my admincp?!?!?! it says 'HTTP 500 - Internal server error'

But everything else works???

Zero Tolerance
13 Jun 2005, 18:47
Did you CHMOD the files to 0666?

- Zero Tolerance

KuRi
13 Jun 2005, 18:51
it says to do that to admincp/index.php yeh?

Zero Tolerance
13 Jun 2005, 19:54
Yup and includes/xml/vbulletin_hooks.xml :)

- Zero Tolerance

KuRi
13 Jun 2005, 20:22
i done that and i still cant get in my acp....

edit. ive replaced my whole admincp folder with the original files and i have access again... but then with the 2 files chmoded and i execute the php file included.. after it is done i get the same error again so i was just wondering if I could just have manuall instructions??

edit2. Figured it out... i had left the chmod on index.php at 0666, needed to be returned to 0644

eXtremeTim
13 Jun 2005, 22:54
does this integrate in with the custom plugin manager of yours?

Zero Tolerance
15 Jun 2005, 06:02
@ KuRi - That must be a server problem then, I've never known a server that doesn't like the permissions set to 0666 upon viewing in the browser.

@ eXtremeTim - It add's the custom hook, but doesn't add it to the Hooks Manager db table. Since it designed to be used for user's who havn't installed that.

- Zero Tolerance

Kirk Y
17 Jun 2005, 07:41
I've chmodded all the proper files, which reminds me: you may want to add that you need to chmod includes/xml/hooks_vbulletin.xml to the directions. The error I'm getting is: System Error - Was unable to find specified PHP Line inside file. [quote]System Error - Was unable to find specified PHP Line inside file. (print_submit_row($vbphrase['save'], 0, 1);) Any ideas?

Edit:
Sorry, forgot to mention: this error I'm getting, it appears in during the installation process.

mholtum
17 Jun 2005, 08:01
My admincp/index.php went completely blank after chmoding the files. Had to uninstall and then reupload the files via ftp to regain access to my admincp.

Andreas
05 Aug 2005, 00:56
Do you plan to turn this into a true Plugin (Hook admin_index_main)?

Andreas
15 Sep 2005, 03:38
*bump*
Any chance of getting this as a Plugin?

derekivey
30 Sep 2005, 23:17
It works as a plugin now. I just tried. Just import his XML file and change the hook location to admin_index_main3.

mtha
01 Oct 2005, 06:48
Hook is already available in GOLD, just use


<hookname>admin_index_main2</hookname>

in the plugin file and import the plugin

derekivey
01 Oct 2005, 15:32
Hook is already available in GOLD, just use


<hookname>admin_index_main2</hookname>

in the plugin file and import the plugin

Or admin_index_main3 will work too (under the box that shows useful links, server load etc).

IrPr
12 Jan 2006, 23:52
would u coders plz re-write this Hack for 3.5.3?

derekivey
13 Jan 2006, 04:00
It works on 3.5.3 I believe...

JakeS
04 Mar 2006, 19:36
i'm gettin this: System Error - Was unable to find specified PHP Line inside file. (print_submit_row($vbphrase['save'], 0, 1);)

during install

ahennings
05 Mar 2006, 01:02
Same error for me too: System Error - Was unable to find specified PHP Line inside file. (print_submit_row($vbphrase['save'], 0, 1);)

Seems my admincp/index.php file was wiped clean too :disappointed:

Black Widow
12 Feb 2007, 14:56
thanks.
installed...

Rickeo
20 Jun 2008, 22:47
Please make for 3.7.1

Black Widow
28 Jun 2008, 11:13
I am using it on 3.7.2 and it works just fine.