vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=325282

What's the correct way of creating a new Admincp screen?
by lagrangianpoint
27 Jun 2017 20:08

Hello guys, I need your opinion on how to to the following:

I want to create a new Admincp screen, and I wanted to ask you, what is the "correct" way of creating an admin screen on vBulletin 5?
In general, I need to know how to create new screens on all the website if possible, not only AdminCP.

Do you have any hints/ideas , or github examples I can use to get a better idea of what to do?

Thank you!

In Omnibus 27 Jun 2017 20:21

What do you mean by "new screen?"

Lynne 27 Jun 2017 20:27

^^ what he said. Do you mean a new page? And, if so, a new page in the Options? Or a new section on the left? New Pages on the site are just created in Site Builder > New Page.

lagrangianpoint 27 Jun 2017 21:05

To be more specific,
Let's say I want to create a URL like:
/forum/admincp/mystatistics/
And be able to use vBulletin functions and core, as well as my own custom PHP includes.

Or in other situations, I want to create something like:
/forum/shoppingcart/
and use vBulleting functions, and my own functions.

Thank you

noypiscripter 28 Jun 2017 04:28

In AdminCP, you can create a new option link on the left pane and call your own php file and use existing vB functions and includes. You do this by creating an xml file in /core/includes/xml folder. As for the format in the xml, you can take a look at the existing xml files there.

As for new pages on the frontend, you do it using Sitebuilder > New Page as Lynne mentioned. You can drag and drop any module there including PHP module where you can call the vB API and your own custom functions. You can also use Ad modules and still be able to call the vB API and your own API using vB template syntax.

lagrangianpoint 28 Jun 2017 18:33

Thank you guys, I'm going to try that.
I did checked some examples of existing things, but I wanted to be sure those were correct approaches.


All times are GMT. The time now is 13:59.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.