vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Building the UserCP Navbar? (https://vborg.vbsupport.ru/showthread.php?t=188231)

n8td 08-15-2008 03:26 PM

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:

n8td 08-15-2008 09:48 PM

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.

n8td 08-15-2008 11:08 PM

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 [DATE]1218867306[/DATE] at [TIME]1218867306[/TIME] ---------------

I fixed the issue. From my understanding it was missing some information that it needed to define the phrases. Thanks though!

Before:
PHP Code:

$phrasegroups = array('posting''postbit''pm'); 

After:
PHP Code:

$phrasegroups = array('posting''postbit''pm''user'); 



All times are GMT. The time now is 07:18 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.01049 seconds
  • Memory Usage 1,716KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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