![]() |
Hook for custom block in UserCP
1 Attachment(s)
Hello,
I'm trying to add a custom block with menu options in usercp, but I can't find the right hook name to show it as seperate block (if possible first, or under PMs). The only that I succeeded to do, as you can see in the attached screenshot, is to add it at the bottom of the block My Setting. Thank you C.T |
Try this and place it accordingly in your USERCP_SHELL template.
HTML Code:
<div class="block"> |
Quote:
|
Quote:
P.S.: If you find documentation on how to create your own hook please share :) |
1. Open Template USERCP_SHELL and choose any hook which u want.
for ex: Code:
usercp_navbar_myaccount 2. Create New Plugin Plugin Hook: usercp_nav_complete Title: Ur wish Code Code:
$template_hook['usercp_navbar_myaccount'] .= vB_Template::create('mytemplate')->render(); and save the plugin. (don't forget to select yes) |
Quote:
Code:
<plugin active="1" executionorder="40"> C.T. |
Quote:
ya thats simple. Have this plugin which u created Code:
<plugin active="1" executionorder="40"> At Top add this Code:
</ul></div> After This U can create ur block and note at last don't add Code:
</ul></div> |
Quote:
Thank you |
All times are GMT. The time now is 02:27 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|