vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   What's the correct way of creating a new Admincp screen? (https://vborg.vbsupport.ru/showthread.php?t=325282)

lagrangianpoint 06-27-2017 06:08 PM

What's the correct way of creating a new Admincp screen?
 
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 06-27-2017 06:21 PM

What do you mean by "new screen?"

Lynne 06-27-2017 06:27 PM

^^ 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 06-27-2017 07:05 PM

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 06-28-2017 02:28 AM

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 06-28-2017 04:33 PM

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 08:20 AM.

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.01071 seconds
  • Memory Usage 1,713KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete