View Issue Details

IDProjectCategoryView StatusLast Update
0009807mantisbtfeaturepublic2008-11-13 04:48
Reportertmatijas Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status newResolutionopen 
PlatformAnyOSAnyOS VersionAny
Product Version1.2.0a2 
Target VersionFixed in Version 
Summary0009807: GOOD SOLUTION TO FILL-IN PROBLEM WHEN REPORTING ISSUE AND YOU WANT TO USE PROFILE
Description

I share this.. Perhaps something to add to next version of mantis.. I am using hidden styles to hide PLATFORM, OS, AND OS VERSION with a link that will show the feilds if no profile exists. I just didnt like the fact that when you select a profile, the feilds are not populated automatically. I found that confusing. So rather than reprogramming the logic, there is a very simple solution.

  1. In strings_language file (i.e. strings_english.txt), put in the following text:
    $s_or_fill_in = 'IF A PROFILE IS MISSING FROM DROPDOWN BOX ABOVE, FILL IT IN
    MANUALLY';

  2. Then in bug_report_advanced_page.php look for the <?php echo lang_get( 'or_fill_in' ) ?> tag.. Just before it, put in the following:

<style type="text/css">
#platform {visibility:hidden;}
#os {visibility:hidden;}
#os_build {visibility:hidden;}
</style>

Then just after it, put in the following:

 #

YOU ARE NOW DONE.

This will basically hide the 3 feilds when the page is loaded. If the enduser does not see a profile in the dropdown, he/she can click the link to show the 3 feilds and enter the info manually.

Note: If you like, you can make a link that hides the boxes again. Just use something like this:

 #

If you want, you can use the config.inc file to define this style sheet quasi-code and then turn this "function" on and off.

Steps To Reproduce
  1. In strings_language file (i.e. strings_english.txt), put in the following text:
    $s_or_fill_in = 'IF A PROFILE IS MISSING FROM DROPDOWN BOX ABOVE, FILL IT IN
    MANUALLY';

  2. Then in bug_report_advanced_page.php look for the <?php echo lang_get( 'or_fill_in' ) ?> tag.. Just before it, put in the following:

<style type="text/css">
#platform {visibility:hidden;}
#os {visibility:hidden;}
#os_build {visibility:hidden;}
</style>

Then just after it, put in the following:

 #

YOU ARE NOW DONE.

This will basically hide the 3 feilds when the page is loaded. If the enduser does not see a profile in the dropdown, he/she can click the link to show the 3 feilds and enter the info manually.

Note: If you like, you can make a link that hides the boxes again. Just use something like this:

 #

If you want, you can use the config.inc file to define this style sheet quasi-code and then turn this "function" on and off.

Additional Information

Let me know what you think.

TagsNo tags attached.

Activities

2008-11-13 04:47

 

THE_CODE.txt (1,319 bytes)
SORRY - MANTIS REPLACED MY TEXT CAUSE IT DOESNT LIKE LINKS.. IN BUG_REPORT_ADVANCED_PAGE.PHP,

JUST DO A FIND AND REPLACE.. <?php echo lang_get( 'or_fill_in' ) ?> with the following:


<!-- -------------------- -->
<!-- BEFORE ORIGINAL CODE -->
<!-- -------------------- -->
<style type="text/css"> 
#platform {visibility:hidden;} 
#os {visibility:hidden;} 
#os_build {visibility:hidden;} 
</style> 
<!-- -------------------- -->

<!-- ------------- -->
<!-- ORIGINAL CODE -->
<!-- ------------- -->
<?php echo lang_get( 'or_fill_in' ) ?>
<!-- ------------- -->

<!-- ------------------- -->
<!-- AFTER ORIGINAL CODE -->
<!-- ------------------- -->
&nbsp;<a href="#" onClick="document.getElementById('platform').style.visibility='visible'; document.getElementById('os').style.visibility='visible'; document.getElementById('os_build').style.visibility='visible'; document.getElementById('feild1').style.visibility='visible'; document.getElementById('feild2').style.visibility='visible'; document.getElementById('feild3').style.visibility='visible';">BY CLICKING HERE.</a> 
<!-- ------------------- -->


DONT FORGET TO MODIFY STRINGS_ENGLISH.TXT

ORIGINAL
$s_or_fill_in = 'Or Fill In"


NEW
$s_or_fill_in = ''IF A PROFILE IS MISSING FROM DROPDOWN BOX ABOVE, FILL IT IN MANUALLY';

	
THE_CODE.txt (1,319 bytes)
tmatijas

tmatijas

2008-11-13 04:48

reporter   ~0019864

SORRY - MANTIS REPLACED MY TEXT CAUSE IT DOESNT LIKE LINKS.. Just take a look at the attached txt file called the_code.txt

Issue History

Date Modified Username Field Change
2008-11-13 03:04 tmatijas New Issue
2008-11-13 04:47 tmatijas File Added: THE_CODE.txt
2008-11-13 04:48 tmatijas Note Added: 0019864