The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi guys,
how can I add some fields to the user control panel menu on the left? There's also a way to show that manu on another php page? for example my forum is here www.mydomain.com/forum and I wnat to have a page like this www.mydomain.com/cp.php with inside the forum control panel tnx in advance Alek |
#2
|
||||
|
||||
![]()
Have you looked through the articles forums? I am pretty sure I've seen an article or two on how to add pages to the ACP and navigation also.
|
#3
|
|||
|
|||
![]()
not the admin control panel but the user's one. Found nothing about this
--------------- Added [DATE]1256222891[/DATE] at [TIME]1256222891[/TIME] --------------- I've found something in the postbit section but I'm not sure how to edit it |
#4
|
||||
|
||||
![]()
There are template_hooks in the USER_CP template, so you can use those to add to the menu. Or just edit the template if you want them somewhere else.
|
#5
|
|||
|
|||
![]()
what's template_hooks? It doesn't seems to be the user control panel menu on the left.
And what file I have to include in another page to have this User CP outside the forum? thanks for the help |
#6
|
||||
|
||||
![]()
You would have to make your own page if you wish to have your CP link go to another page. A template_hook is just a way to insert html without modifying the actual template. You would write a plugin which inserts html at the location of the template_hook. There are articles on this in the articles forum.
If you have to write your own page, you can read one of these articles - How to create your own vBulletin-powered page! (uses vB templates) or [How-To] vBulletin API Basics: Creating Custom Pages & Misc. |
#7
|
|||
|
|||
![]() Quote:
I'll try to find an article about this. I thought it was simpler to add links in the CP User Menu. Like editing the template file or something similar. |
#8
|
||||
|
||||
![]()
You may just edit the template instead if you find that easier. Not everyone likes to do that, but it is easy to do it that way.
|
#9
|
|||
|
|||
![]()
And the template page is?
![]() What about including the U CP Menu in another php file? I can do it? Which php file I have to include? tnx |
#10
|
||||
|
||||
![]()
USER_CP I thought I mentioned that already.
You can always find the template by doing this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source. As for the whole menu, have you looked at the usercp.php page? Have you thought of just using a hook in the usercp.php page for your page and adding it all by plugin - adding a new do=whatever? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|