View Single Post
  #476  
Old 01-04-2007, 02:54 AM
sinisterpain's Avatar
sinisterpain sinisterpain is offline
 
Join Date: Feb 2006
Location: New Hampshire
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, with some research I finally got this to show the categories and assigned admins in both the support thread created and in creating a new ticket in vB 3.6.4.

you need to edit the author's files in the upload folder includes/vbsupport_functions.php file and the vbsupport.php file as follows:

vbsupport_functions.php

find:
Code:
// function to build the category options
function vbsupport_build_category_options($selcatid)
{
  global $vbulletin, $vbphrase, $show;

  // clear out $categoryoptions
  $categoryoptions = '';

  // check if they are allowed to change ticket categories
  $show['category'] = false;
  if (!empty($vbulletin->vbs_category) && is_array($vbulletin->vbs_category))
 {
change to:

Code:
// function to build the category options
function vbsupport_build_category_options($selcatid)
{
  global $vbulletin, $vbphrase, $show;

  // clear out $categoryoptions
  $categoryoptions = '';

  // check if they are allowed to change ticket categories
  $show['category'] = false;
  $vbulletin->datastore->do_db_fetch("'vbs_category'");
  if (!empty($vbulletin->vbs_category) && is_array($vbulletin->vbs_category))
  {
In vbsupport.php

find:
Code:
  // build the assigned user (if any)
      $show['assigned'] = true;
      $assigned = $vbulletin->vbs_admin[$thread['assigneduserid']];
      if (!empty($assigned) && is_array($assigned))
      {
change to:
Code:
 // build the assigned user (if any)
      $show['assigned'] = true;
      $vbulletin->datastore->do_db_fetch("'vbs_admin'");
      $assigned = $vbulletin->vbs_admin[$thread['assigneduserid']];
      if (!empty($assigned) && is_array($assigned))
      {
find:
Code:
 // build the category (if any)
      $category = $vbulletin->vbs_category[$thread['categoryid']];
      if (!empty($category) && is_array($category))
      {
change to:
Code:
 // build the category (if any)
      $vbulletin->datastore->do_db_fetch("'vbs_category'");
      $category = $vbulletin->vbs_category[$thread['categoryid']];
      if (!empty($category) && is_array($category))
      {
I am posting this fix since no word or activity has come from the author since July 2006. I feel that alot of members could really use this hack for their boards. The call for the datastore was not working which required a do_db_fetch since it did not recognize the vbs_category and would only see the datastore folder in the data base when using the call $vbulletin->vbs_categaory. These edits may not be needed by everyone, if you did a fresh install of 3.6.4 and not the upgrade the authors files may work without the edits you need to try the authors file and if categorys do not work then use the edits.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01336 seconds
  • Memory Usage 1,779KB
  • 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
  • (6)bbcode_code
  • (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