Iconsort Mod 1

Icon Sort Edit

Icon sort can be downloaded here.

I wouldn’t really call this a Mod its more just inserting a bit of HTML to turn the icons into handmade thumbnails.

To use the script you should have a folder named ‘categories’ that is filled with your subfiles, the iconsort page will be located next to this file.
What I have done is add a new file inside the subfolders.

http://site.com/iconsort.php
http://site.com/categories
http://site.com/categories/Subfolder
http://site.com/categories/Subfolder/thumb <- this is the file I want to to add Now find this code in the script, it should be near the // show the icons area :


echo '<img src="' . $catdir . '/' . $_GET['cat'] . '/' . $value['name'] . '" ' . $iconsize[3] . ' alt="" /> ';

replace it with


echo '<a href="' . $catdir . '/' . $_GET['cat'] . '/' . $value['name'] . '" target="_blank"><img src="' . $catdir . '/' . $_GET['cat'] . '/thumb/' . $value['name'] . '" ' . $iconsize[3] . ' alt="" /> ';

Now you have set the script up to read the ‘thumb’ file, you will need to add your thumbnails to the folder. Remember the names must match exactly!

Comments are closed.

<<
>>
Glitter Web Directory