![]() |
New User CP page
Hi,
Is it possible to add a custom page to the User CP? For exemple, in the "Settings & Options" tab, I want to add a "Edit Localisation" link. And in the Edit Localisation section, I want to use my own php script wich display a google map instead of simple fields. Do you know how to do this? Thanks |
You may create your own vb page (see this article - [How-To] vBulletin API Basics: Creating Custom Pages & Misc.) and then add a link in the UserCP to connect to it.
|
Thanks for your answer.
So I don't know neither how to add a link in the UserCP nor how to add the sided panel "Control Panel" to a custom page :/ |
I think the control panel is just a 'shell' (USERCP_SHELL template) and so all you need to do is create the stuff to go into the right side column. You would eval that first and then spit out the shell. You should take a look at the code to do some of the other links in there. I think the links are also in the USERCP_SHELL.
|
Great! That's right!
In the USERCP_SHELL template each link is managed by the code (here is the Customize link example) : HTML Code:
<if condition="$show['customizelink']"> It's no important but do you know how to use the $show variable? Now I'll try to create my custom page :) |
let us know how you get on, i would also love to show peoples location on USERCP page via a google map :)
|
Hi Jacko,
I try to convert my Map page to use it in vBulletin. If possible I'll try to make a module, but I don't know if I'll succeed. Actually, I use it in a SMF forum : http://www.zbrush.fr/ZBPortail/index...r_Map/User_Map . In order to make a module, or a product (I don't know the difference), I had to generalize the code. Many parameters like personalized Markers or categories (freelance, pro, student etc) are specifics to ZBrush and are fixed in the code. |
Quote:
|
Thanks ;)
|
All times are GMT. The time now is 08:50 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:
|