Menu

how to do some modifications to 1.0r6?

Help
Wes Plate
2005-07-14
2013-04-16
  • Wes Plate

    Wes Plate - 2005-07-14

    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.

     
    • Benjamin Curtis

      Benjamin Curtis - 2005-07-15

      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.

       
      • Wes Plate

        Wes Plate - 2005-07-15

        Thanks.

        I want to get rid of popups like "Database" and "Platform" and "Site" when adding and viewing bugs.

        Thanks.

         
        • Nobody/Anonymous

          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. :-(

           
          • Wes Plate

            Wes Plate - 2005-07-15

            Very helpful reply, thank you!

             
      • Wes Plate

        Wes Plate - 2005-07-15

        $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?

         
        • Nobody/Anonymous

          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

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.