Menu

#1020 Move magnet creation to top of page

open
nobody
5
2006-08-16
2006-08-16
ibegregg
No

It would be much more convenient if the create magnet
stuff was at the top of the magnet page. I always go
there to create magnets, never to review them.

Discussion

  • Brian Smith

    Brian Smith - 2006-09-17

    Logged In: YES
    user_id=696850

    Which version of POPFile are you using?

    How many magnets are you using?

    How often do you create new magnets?

    Brian

     
  • Brian Smith

    Brian Smith - 2006-09-25

    Modiifed MAGNETS page

     
  • Brian Smith

    Brian Smith - 2006-09-25

    Logged In: YES
    user_id=696850

    Originally all of the UI skin files were held in a single
    directory and a lot of the HTML used to generate the skins
    was hard-coded in the Perl code. This system was rather
    inflexible and difficult to modify without some knowledge of
    Perl.

    This all changed with the POPFile 0.22.0 release. POPFile 0.
    22.x uses a templating system which means that most of the
    UI is configured by a series of template files instead of
    being hard-coded in the Perl code.

    Now each skin is defined by one or more files in a separate
    sub-directory of the 'skins' directory. The 'default' skin
    contains the base template files that all of the other skins
    use. Each page of the UI is broken down into pieces to allow
    easier modification and handle common page elements in one
    place rather than separately each time they appear on a
    page.

    All skins use the default template files unless they provide
    their own in their individual directory. So if you want to
    change only a part of the UI you only need to copy the one
    appropriate template file to your skin directory and modify
    it.

    The default location for the 'skins' folder in the Windows
    version of POPFile is C:\Program Files\POPFile\skins but if
    POPFile was not installed in the default location there is a
    Start Menu shortcut you can use to find the POPFile program
    folder:

    Start -- Programs -- POPFile -- Support -- PFI Diagnostic
    utility (simple)

    The layout you are complaining about is defined in the
    magnet-page.thtml template file. So all you need to do is
    copy the default magnet-page.thtml file to the folder which
    defines your current skin and then modify this copy to get
    the layout you prefer

    The attached file has the changes you requested so you can
    simply download it and put it in the appropriate folder.

    (If you modify the magnet-page.thtml file in the default
    skin directory then your changes will affect all of the
    skins except those which have their own magnet-page.thtml
    file - I recommend that you make a backup copy of the
    default file BEFORE you modify it, so you can easily revert
    to the original layout)

    These template files use HTML code with some extensions so
    all you need to make the changes is a simple text editor
    such as Windows Notepad.

    The attached file is a modified version of the magnet-page.
    thtml template file used by POPFile 0.22.4 (this modified
    file is also compatible with the 0.22.2 and 0.22.3 releases
    ). The Magnets page has a "Current Magnets" section and a
    "Create Magnets" section separated by a horizontal line. All
    I did was swap these two sections so the "Create Magnets"
    one appears above the horizontal line.

    To use this modified file just copy it to the appropriate
    skins folder. For example if you are using the lrclaptop
    skin then copy the file to the C:\Program
    Files\POPFile\skins\lrclaptop folder (assuming the Windows
    version of POPFile is installed in the default location)

    The Wiki has several pages explaining the template-based
    skinning system:

    http://popfile.sourceforge.net/cgi-bin/wiki.pl?
    FrequentlyAskedQuestions/Skins

    http://popfile.sourceforge.net/cgi-bin/wiki.pl?Skinning

    http://popfile.sourceforge.net/cgi-bin/wiki.pl?Template

    Brian

     
  • Brian Smith

    Brian Smith - 2006-09-25

    Logged In: YES
    user_id=696850

    p.s. Note that the file should be saved using the name
    "magnet-page.thtml"

    If you download it using your browser it might save the file
    using the name "magnet-page.htm" or "magnet-page.html" so
    you'll need to manually rename it in order to get POPFile to
    use the file properly.

     

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.