vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBug Tracker Lite 3.5.1 (https://vborg.vbsupport.ru/showthread.php?t=96888)

Dan 12-18-2005 07:31 PM

did you go through the php file?

King Kovifor 12-18-2005 07:34 PM

Explain...

Dan 12-18-2005 07:56 PM

Open bugs.php and replace vbugs.php with bugs.php

King Kovifor 12-18-2005 08:07 PM

Every instance? So that means all my upgrades I'd have to do that? And I'd also have to edit the templates?!

Dan 12-18-2005 08:24 PM

Only when you upgrade this hack (if there is ever another update)

King Kovifor 12-18-2005 08:26 PM

OK. I'll get right on that!

rwoelich 12-19-2005 01:26 AM

Just a note that I'm having some issues with this. I uninstalled it after designing my own bug reporting system, and for some reason the rows for the vBug settings in the usergroup editor still show up, just without phrases, and when I go to make changes to a usergroup I get a database error because it's trying to save vBug settings to a column that doesn't exist anymore. I can't for the life of me figure out where the settings table row is coming from or the part with that query. Any ideas?

Edit: Never mind. Damn bitfields... :p

Xplorer4x4 01-05-2006 07:32 AM

I have a forum set up to redirect to bugs.php. Members must log in again before using it.

Xplorer4x4 01-05-2006 06:59 PM

Also I thought there was some sort of ntoification system built in?

PalmNut 02-01-2006 01:07 AM

Seems to be a bug with the moderation system. Even with the moderation option set to "Yes," all bugs submitted via vbugs.php are live for all users to see. I found a couple of issues in the code that address this. The vbugs.php is looking for the wrong option setting and bug moderation value, cleaning some global variables unnecessarily in the process.

Details for editing:

Starting at line 650 in
PHP Code:

  $vbulletin->input->clean_array_gpc('p', array(
      
'title' => TYPE_STR,
      
'vbug_typeid' => TYPE_UINT,
      
'vbug_versionid' => TYPE_UINT,
      
'vbug_severityid' => TYPE_UINT,
      
'vbug_statusid' => TYPE_UINT,
      
'description' => TYPE_STR,
      
'moderate' => TYPE_UINT,
      
'subscribe' => TYPE_UINT
      
)); 

remove
PHP Code:

      'vbug_statusid' => TYPE_UINT

and
PHP Code:

      'moderate' => TYPE_UINT

Then immediately below find
PHP Code:

if($vbulletin->options['vbug_moderated']) 

and change the line to
PHP Code:

if($vbulletin->options['vbug_bug_moderate']) 

Below that find
PHP Code:

    $db->query_write("
    INSERT INTO " 
TABLE_PREFIX "vbug (userid, title, description, vbug_statusid, postdate, vbug_severityid, vbug_typeid, vbug_versionid, moderate, lastedit, lastreplyuid)
    VALUES (" 
$vbulletin->userinfo['userid'] . ", '" $db->escape_string($vbulletin->GPC['title']) . "', '" $db->escape_string($vbulletin->GPC['description']) . "', " $vbug_statusid ", '" TIMENOW "', " $vbulletin->GPC['vbug_severityid'] . ", " $vbulletin->GPC['vbug_typeid'] . ", " $vbulletin->GPC['vbug_versionid'] . ", " $vbulletin->GPC['moderate'] . ", " TIMENOW ", " $vbulletin->userinfo['userid'] . ")
    "
); 

and replace with
PHP Code:

    $db->query_write("
    INSERT INTO " 
TABLE_PREFIX "vbug (userid, title, description, vbug_statusid, postdate, vbug_severityid, vbug_typeid, vbug_versionid, moderate, lastedit, lastreplyuid)
    VALUES (" 
$vbulletin->userinfo['userid'] . ", '" $db->escape_string($vbulletin->GPC['title']) . "', '" $db->escape_string($vbulletin->GPC['description']) . "', " $vbug_statusid ", '" TIMENOW "', " $vbulletin->GPC['vbug_severityid'] . ", " $vbulletin->GPC['vbug_typeid'] . ", " $vbulletin->GPC['vbug_versionid'] . ", " $moderate ", " TIMENOW ", " $vbulletin->userinfo['userid'] . ")
    "
); 



All times are GMT. The time now is 05:02 PM.

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.01634 seconds
  • Memory Usage 1,762KB
  • 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
  • (7)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete