Thread: Profile Enhancements - Customizable Roster
View Single Post
  #382  
Old 01-04-2011, 06:43 PM
Sarcoth Sarcoth is offline
 
Join Date: Mar 2006
Location: Huntsville
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, a full day spent on the navbar stuff. I thought I had it done yesterday, but I had to redo it again because I could not get the order setting to work. I removed the navbar code (mostly) from the php file and now it is completely done via the plugin. I renamed the template to navtab and created a new template called subnavtab to do the sorting. I had many problems getting it to work, but in the end, the subnavtab template will only show when on the showroster page (exactly what I wanted). Even if you disable the tab, you will still have access to the subnavtab sorting options. And, the order of the navtab has been completely removed from the settings and you will have to use the plugin execution order to change its order. You can still adjust the location in the ShowRoster settings though.

The subnavtab is rendered by the showroster.php file. The only problem I am having, not really sure it is a problem, but the subnavtab is rendered via a template_hook. Personally, I think it should be rendered another way, but everything I try does not work. I have no idea when the template_hook works especially since the code right after it does not do anything. It works this way though, so I guess I cannot complain; I have a headache.

I have all the above options completed except for the border (#7) and dropdown menu (#6). I think the dropdown will be easier now since I have the navtab code better designed, but I will have to put it off. No one has really asked for it anyhow and I ended up going another route with setting up my own personal navtab's for my site. If anyone is interested in the code I am using for dropdowns at my site (sacredhaven.org), let me know and I'll post my code here.

Anyhow, if I can complete the border code by tomorrow night I hope to have the update posted soon after or the following day. Barteh, I'll send you a PM soon on being the guinea pig since you volunteered.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01212 seconds
  • Memory Usage 1,763KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (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_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete