View Full Version : Building the UserCP Navbar?
Does anyone know how the navbar on the left side of the UCP is built in v3.7.x? I'm using a mod that is kinda old and the navbar is missing many settings.
Opserty
08-15-2008, 09:05 PM
Why don't you look at the usercp.php page?... Although I thought the navbar was in the "USERCP" or "USERCP_SHELL" template. :erm:
This mod I'm talking about is a separate PHP file that I'm guessing grabs the template from somewhere. I'm just not sure where. I've tried comparing it w/ usercp.php, private.php, and profile.php and I can't find the connection.
Opserty
08-15-2008, 10:09 PM
Do you have permission to repost that file? If not please remove it from your post.
If you have questions regarding a modification please post in the modification thread (or site/forum) from which you downloaded it. The modification author or other users will be the ones best placed to assist you.
The navigation is found in the USERCP_SHELL template, the only reason I could think for some of them not showing up is that the <if> conditions are not evaluating as true. Since the modification was made for 3.5 then some code required to make the $show variables isn't being created. What these codes are, I do not know.
You will have to wait till it gets updated to 3.7 or find another modification that has its own custom UserCP page which works with 3.7 and see any differences.
The person who created hasn't been on in ages. Do you know if it's a funtions_.php file or some other back-end file that would compile this? The navigation is correct in every page except this custom one.
--------------- Added 1218867306 at 1218867306 ---------------
I fixed the issue. From my understanding it was missing some information that it needed to define the phrases. Thanks though!
Before:
$phrasegroups = array('posting', 'postbit', 'pm');
After:
$phrasegroups = array('posting', 'postbit', 'pm', 'user');
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.