vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add custom field to the user control panel menu on the left? (https://vborg.vbsupport.ru/showthread.php?t=225699)

Demo16 10-21-2009 01:12 PM

How to add custom field to the user control panel menu on the left?
 
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

Lynne 10-21-2009 02:14 PM

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.

Demo16 10-22-2009 09:09 AM

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

Lynne 10-22-2009 02:10 PM

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.

Demo16 10-22-2009 02:19 PM

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

Lynne 10-22-2009 02:27 PM

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.

Demo16 10-22-2009 04:21 PM

Quote:

Originally Posted by Lynne (Post 1903725)
You would have to make your own page if you wish to have your CP link go to another page.

I have already new pages but what I want to do is to use PHP include system to include on my pages the user control panel menu, is this possible? I can't see a php file for the U CP Menu.

Quote:

Originally Posted by Lynne (Post 1903725)
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.

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.

Lynne 10-22-2009 04:48 PM

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.

Demo16 10-22-2009 04:50 PM

And the template page is? :D
What about including the U CP Menu in another php file? I can do it? Which php file I have to include?

tnx

Lynne 10-22-2009 05:01 PM

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?


All times are GMT. The time now is 07:55 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.01027 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (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