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)

precharge 08-08-2006 12:30 AM

Would like regular users to be able to submit bugs but not view them. The only way they seem to be able to add is to have view access. Is there a fix to this?

Trevor Hannant 08-10-2006 10:51 PM

Has anyone requested a 3.6 version of this?

MThornback 08-22-2006 10:27 PM

Quote:

Originally Posted by jluerken
It has problems since vb3.6 with those lines in vbugs.php

PHP Code:

foreach ($bugcache['severity'] as $key => $entry) {
  
$selected iif($vbulletin->GPC['vbug_severityid'] == $key'selected="selected"');
  
$val $entry['title'];
  eval(
'$severitybits .= "' fetch_template('userfield_select_option') . '";');
}
foreach (
$bugcache['type'] as $key => $entry) {
  
$selected iif($vbulletin->GPC['vbug_typeid'] == $key'selected="selected"');
  
$val $entry['title'];
  eval(
'$typebits .= "' fetch_template('userfield_select_option') . '";');
}
foreach (
$bugcache['version'] as $key => $entry) {
  
$selected iif($vbulletin->GPC['vbug_versionid'] == $key'selected="selected"');
  
$val $entry['title'];
  eval(
'$versionbits .= "' fetch_template('userfield_select_option') . '";');
}
foreach (
$bugcache['status'] as $key => $entry)
{
        
$statuscount $db->query_first("
        SELECT count(*) AS status
        FROM " 
TABLE_PREFIX "vbug
        WHERE vbug_statusid = 
$key
        "
);
  
$numstatuses $statuscount['status'];
  
$selected iif($vbulletin->GPC['vbug_statusid'] == $key'selected="selected"');
  
$val $entry['title']. " (" .$numstatuses")";
  eval(
'$statusbits .= "' fetch_template('userfield_select_option') . '";');


The foreeach statement is wrong but I am not a programer to say what has changes with 3.6 and how those lines need to look now. :(

Attached is our work around....it suppressed the errors...dunno if its a 100% fix

jluerken 08-22-2006 10:51 PM

Quote:

Originally Posted by MThornback
Attached is our work around....it suppressed the errors...dunno if its a 100% fix

Loool oh no. A few hours to late. Now I spend money for this
http://www.visionscripts.com/?page=p...vsproductid=10
:(

akanevsky 08-23-2006 01:35 AM

Quote:

Originally Posted by jluerken
Loool oh no. A few hours to late. Now I spend money for this
http://www.visionscripts.com/?page=p...vsproductid=10
:(

That was a good investment though. You won't regret it. ;)

Adrian Schneider 08-23-2006 01:41 AM

I switched to Mantis and I am very pleased with it.

akanevsky 08-23-2006 12:26 PM

Mantis has no vBulletin integration. Which makes it great for other purposes, but not for vBulletin developers / designers.

Zelda-King 08-23-2006 02:29 PM

Quote:

Originally Posted by MThornback
Attached is our work around....it suppressed the errors...dunno if its a 100% fix

One error less;
Quote:

Warning: Invalid argument supplied for foreach() in /vbugs.php on line 570

Warning: Invalid argument supplied for foreach() in /vbugs.php on line 575

Warning: Invalid argument supplied for foreach() in /vbugs.php on line 585

Delphiprogrammi 08-24-2006 08:40 AM

you don't need to modify any source files to get this working with 3.6.x .If you import the product and goto the tracker page (vbugs.php) then you will get those foreach() errors Zelda-King posted above.

open the product xml and you will see it trys to run an INSERT query on the datastore table (actually 2 of them) but the product disables database errors sow if anything goes wrong MySQL won't show you anything

the datastore for the bugcache will fail and that is why you get that foreach() errors (it is missing in the database)

you can manually query your database to add it and then this will work fine...

one question left is it safe to use ?

Zelda-King 08-24-2006 10:45 PM

You mean this?
Code:

$db->query_write("INSERT INTO " . TABLE_PREFIX . "datastore VALUES ('vbug_version', 's:5:\"3.5.1\"')");
                        $db->query_write("INSERT INTO " . TABLE_PREFIX . "datastore VALUES ('bugcache', 'a:4:{s:6:\"status\";a:12:{i:1;a:2:{s:5:\"title\";s:11:\"Unconfirmed\";s:12:\"displayorder\";s:1:\"1\";}i:2;a:2:{s:5:\"title\";s:9:\"Confirmed\";s:12:\"displayorder\";s:1:\"2\";}i:3;a:2:{s:5:\"title\";s:14:\"Closed (Fixed)\";s:12:\"displayorder\";s:1:\"3\";}i:4;a:2:{s:5:\"title\";s:9:\"Duplicate\";s:12:\"displayorder\";s:1:\"4\";}i:5;a:2:{s:5:\"title\";s:17:\"Awaiting Feedback\";s:12:\"displayorder\";s:1:\"5\";}i:6;a:2:{s:5:\"title\";s:5:\"Bogus\";s:12:\"displayorder\";s:1:\"6\";}i:7;a:2:{s:5:\"title\";s:20:\"Closed (No Response)\";s:12:\"displayorder\";s:1:\"7\";}i:8;a:2:{s:5:\"title\";s:19:\"Working As Designed\";s:12:\"displayorder\";s:1:\"8\";}i:9;a:2:{s:5:\"title\";s:17:\"Browser Bug/Issue\";s:12:\"displayorder\";s:1:\"9\";}i:10;a:2:{s:5:\"title\";s:9:\"Won''t Fix\";s:12:\"displayorder\";s:2:\"10\";}i:11;a:2:{s:5:\"title\";s:12:\"Design Issue\";s:12:\"displayorder\";s:2:\"11\";}i:12;a:2:{s:5:\"title\";s:11:\"Style Issue\";s:12:\"displayorder\";s:2:\"12\";}}s:8:\"severity\";a:4:{i:1;a:2:{s:5:\"title\";s:7:\"Trivial\";s:12:\"displayorder\";s:1:\"1\";}i:2;a:2:{s:5:\"title\";s:5:\"Minor\";s:12:\"displayorder\";s:1:\"2\";}i:3;a:2:{s:5:\"title\";s:5:\"Major\";s:12:\"displayorder\";s:1:\"3\";}i:4;a:2:{s:5:\"title\";s:8:\"Critical\";s:12:\"displayorder\";s:1:\"4\";}}s:4:\"type\";a:12:{i:1;a:2:{s:5:\"title\";s:3:\"Bug\";s:12:\"displayorder\";s:1:\"1\";}i:2;a:2:{s:5:\"title\";s:4:\"ToDo\";s:12:\"displayorder\";s:1:\"2\";}i:3;a:2:{s:5:\"title\";s:15:\"Feature-Request\";s:12:\"displayorder\";s:1:\"3\";}i:4;a:2:{s:5:\"title\";s:8:\"Admin CP\";s:12:\"displayorder\";s:1:\"4\";}i:5;a:2:{s:5:\"title\";s:28:\"Integration (Calendar/Forum)\";s:12:\"displayorder\";s:1:\"5\";}i:6;a:2:{s:5:\"title\";s:20:\"Installation/Upgrade\";s:12:\"displayorder\";s:1:\"6\";}i:7;a:2:{s:5:\"title\";s:17:\"Language/Phrasing\";s:12:\"displayorder\";s:1:\"7\";}i:8;a:2:{s:5:\"title\";s:9:\"Templates\";s:12:\"displayorder\";s:1:\"8\";}i:9;a:2:{s:5:\"title\";s:9:\"Leader CP\";s:12:\"displayorder\";s:1:\"9\";}i:10;a:2:{s:5:\"title\";s:15:\"General/Unknown\";s:12:\"displayorder\";s:2:\"10\";}i:11;a:2:{s:5:\"title\";s:5:\"Email\";s:12:\"displayorder\";s:2:\"11\";}i:12;a:2:{s:5:\"title\";s:10:\"Suggestion\";s:12:\"displayorder\";s:2:\"12\";}}s:7:\"version\";a:1:{i:1;a:2:{s:5:\"title\";s:4:\"Test\";s:12:\"displayorder\";s:1:\"1\";}}}')");



All times are GMT. The time now is 01:01 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.01466 seconds
  • Memory Usage 1,772KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_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