Thread: Profile Enhancements - Customizable Roster
View Single Post
  #285  
Old 09-01-2010, 03:45 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sarcoth View Post
The problem is that both mods are using the same Execution Order for the tab. I guess they have a default order when on the forums and then when you go to the page for the particular mod, it takes precedence. So, what you need to do is go into the plugins and change the Execution Order for one of them. The "ShowRoster Tab for Navbar" is the name of the plugin for this mod. If you want the roster mod first, then change it to 4, otherwise change it to 6 or something larger.

Most mods use 5 as the default, so you may encounter that problem again. Now you know how to fix it. I'll change this to another number once I figure out how to set the execution order within the mod code.
So, I changed the Exec order to 6 for Roster and 99 for Project Tools, and the tabs still switch order when you click on them, so this is not the solution. I think it has to do with this bit of code:
Code:
$navbarloc = $vbulletin->options['showroster_navbar_loc'];
$navbarorder = $vbulletin->options['showroster_navbar_order']; 

switch ($navbarloc) {
    case '1':
        $nbloc = 'navtab_start'; break;
    case '2':
        $nbloc = 'navtab_middle'; break;
    case '3':
        $nbloc = 'navtab_end'; break;
}
Quote:
Originally Posted by asbc View Post
This is a great mod!!

I was wondering, I have paid subscriptions set up for my usergroup. Is it possible to show the subscription expiry date in one of the roster columns?
the data comes from the subscriptionlog table.
The fields you would need to read are: subscriptionid, userid, expirydate and status
The basic SQL Query would be something like this:

Only Active Subscriptions:
Code:
SELECT subscriptionid,userid,expirydate FROM ".TABLE_PREFIX."subscriptionlog WHERE status = 1
Only one particular Subscription:
Code:
SELECT userid,expirydate FROM ".TABLE_PREFIX."subscriptionlog WHERE subscriptionid = {Your_Subscription_ID}
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01241 seconds
  • Memory Usage 1,768KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (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