I would like to modify a few things, for example prevent certain popup menus from appearing that we don't use. Where do I go in the code to find bits that end up being HTML like this?
And also where do I look to change the number of items displayed on a page? For example, when I click on the open bugs that I reported, I see 1-20 or 97 at the bottom. Maybe I'd like to change it to 1-100 so there is only one page. Where can I change this behavior?
Thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
See the templates/default/ directory for all html files. You might want to edit bugform.html and bugdisplay.html. By making a copy of the 'default' directory and placing it in the 'templates' directory you can later switch back and forth between the two layouts (see the admin configuration page for this).
When editing the layout it is not enough to simply remove the form fields you wish to do without. Other parts of the code still expect to receive them. Therefore add them again, after removal, as hidden input fields with constant values (typically 0 or 1. I think 0 is good for everything but project number). Just place them next to the hidden 'bugid'. Be careful with the names since the same entries use different names in different files..
There is a Wiki on the phpBT home page where this kind of tutorials or FAQs could be added by any user, but unfortunately it is only used by spamers. :-(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
$selrange was set to 30, though I was seeing groups of 20 in my browser. Setting it to 100 doesn't make a difference. Maybe I need to change it somewhere else?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, the $selrange variable is used intenally to do the calculations, but it gets its actual value from the database. Every user can set his prefered Number of results per page from the Personal Page.
I'd like to move more of what today are system wide configurations into personal configurations one day. We'll see when/if that happens..
/Ulf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to modify a few things, for example prevent certain popup menus from appearing that we don't use. Where do I go in the code to find bits that end up being HTML like this?
And also where do I look to change the number of items displayed on a page? For example, when I click on the open bugs that I reported, I see 1-20 or 97 at the bottom. Maybe I'd like to change it to 1-100 so there is only one page. Where can I change this behavior?
Thank you.
If you say more about what popups you want to change, we could provide some direction on what to edit to make your changes.
As for the number of items in the list, change the value of $selrange in include.php to the number of items you'd like to see.
Thanks.
I want to get rid of popups like "Database" and "Platform" and "Site" when adding and viewing bugs.
Thanks.
See the templates/default/ directory for all html files. You might want to edit bugform.html and bugdisplay.html. By making a copy of the 'default' directory and placing it in the 'templates' directory you can later switch back and forth between the two layouts (see the admin configuration page for this).
When editing the layout it is not enough to simply remove the form fields you wish to do without. Other parts of the code still expect to receive them. Therefore add them again, after removal, as hidden input fields with constant values (typically 0 or 1. I think 0 is good for everything but project number). Just place them next to the hidden 'bugid'. Be careful with the names since the same entries use different names in different files..
There is a Wiki on the phpBT home page where this kind of tutorials or FAQs could be added by any user, but unfortunately it is only used by spamers. :-(
Very helpful reply, thank you!
$selrange was set to 30, though I was seeing groups of 20 in my browser. Setting it to 100 doesn't make a difference. Maybe I need to change it somewhere else?
Yes, the $selrange variable is used intenally to do the calculations, but it gets its actual value from the database. Every user can set his prefered Number of results per page from the Personal Page.
I'd like to move more of what today are system wide configurations into personal configurations one day. We'll see when/if that happens..
/Ulf