vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Add menu items / nav items in UserCP (https://vborg.vbsupport.ru/showthread.php?t=232741)

dfidler 01-10-2010 08:30 PM

Add menu items / nav items in UserCP
 
Hi Everyone,

My 3.x site has a concept where you can apply to a particular usergroup and upload evidentiary documentation to support your application to the usergroup.

Unfortunately, I coded it in an evening and so it's a dirty hack so I was thinking of turning it into a plugin/product and build upon the existing 'Join Requests' functionality when I migrate to vB4.

My problem is two-fold.
  1. Should I extend the existing Joni Requests functionality, which is laughably basic
  2. Should I just write all of the forms myself, thereby avoiding any conflicts in templates, etc at upgrade time.

If I'm honest, I'm leaning toward the second option. But if I do that, I'm going to want to add an item to the UserCP (Something like the "Permissions Groups" menu item under Networking and Forums).

So finally, on to my question:

What is the lightest touch way to add a menu item to a menu group in the UserCP? I was thinking of using a hook, but I don't see anything that allows me to do that. Will I have to deploy a custom USERCP_SHELL template with my plugin (I'm really trying to avoid this because I HATE template conflicts and the new 'automerge' template functionality that vB has added is horrific!!!!!)

Any suggestions are welcome.

Cheers,
Dave.

--------------- Added [DATE]1263162813[/DATE] at [TIME]1263162813[/TIME] ---------------

Note: I'd also like to avoid overwriting the USERCP_SHELL template to avoid conflicts with other plugs, like https://vborg.vbsupport.ru/showthread.php?t=136321

--------------- Added [DATE]1263196961[/DATE] at [TIME]1263196961[/TIME] ---------------

Note: I'm not looking for a code, just a recommendation on which path to take from those of you who might have done this before.


All times are GMT. The time now is 07:42 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.01698 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)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