NotSoFancy! /install/edit index.php

If you noticed, "index.php" has a few other values for you to edit. Let's take a look at them.

The first is $nsf_supressreadme, which hides that text you see at the top of the screen. What NotSoFancy! is actually doing is including the content of "README" at the top of the screen. If you change this from "FALSE" to "TRUE", it will ignore whatever is in "README". For your knowledge, README can include HTML/XHTML, but no PHP. It is not included that way.

Next up is $nsf_indexignore, an array of things to hide in your listing. By adding more values to this, you can make folders or files hidden. For example, if you make a new line in this array that has:

     "README",
The file "README" will vanish from your listing when you reload. Hiding ".", ".." and "index.php" is recommended.

To make navigation a little easier, you can add special descriptions to files by adding entries to $nsf_adddescription. These will appear all the way at the right end of your listing in the default template. If you make your own template, you could position them anywhere. This value is an associative array. The value on the left is the filename, and the one on the right is the description. You can see a description for "README" has already been added by default.

Lastly, you can creature pseudo-symlinks: fake file entries that actually point to a URL. This is handy if you want to link out to another website. All links are marked with the link icon as specified in your MIME array. To make links just add values to $nsf_pseudosym. Like before, it's an associative array. Put the fake filename to create on the left and the URL it should point to on the right. Pseudo-symplinks can be given descriptions using $nsf_adddescription.

Parent Directory

File name Last modified Size Description
SourceForge.net Logo