Page 1 of 1
Custom icons
Posted: Thu Sep 04, 2008 10:18 pm
by paullanders
Does version 0.04.25/b permit custom images? I dropped some new 32x32 icons into /opt/freenats/server/web/icons but they are not available for node icons.
Thanks!
Re: Custom icons
Posted: Thu Sep 04, 2008 10:26 pm
by dave
Yes but I'm afraid it's a code hack. You need to edit your server/base/config.inc.php file. This isn't overwritten on upgrades (or at least shouldn't be!).
You need to add lines in the fnIcons block for example:
Code: Select all
$fnIcons[14]="your_icon.png";
$fnIcons[15]="another_icon.gif";
I'll add the ability to scan a directory for icons to the to-do list.
Hope that helps,
Dave.
Re: Custom icons
Posted: Thu Sep 04, 2008 10:58 pm
by paullanders
Thanks, I'll give it a try an post back the results.
Re: Custom icons
Posted: Fri Sep 05, 2008 4:47 pm
by paullanders
Works great! Thanks!
Re: Custom icons
Posted: Sat Oct 11, 2008 4:21 pm
by chris
Hi,
this does not seem to work for the current version (Version: 1.01.7/b )? I used the VMWARE-version and upgraded to Version: 1.01.7/b.
I did a find on any *.png file and found them intwo locations:
Code: Select all
[root@freenats icons]# find / -depth -name 'g_bino.png'
/root/freenats/test/freenats-0.02.40a/server/web/icons/g_bino.png
/srv/www/html/icons/g_bino.png
So I dropped a few icons in both locations; this did not work; then I found this entry in the forum, but there is no icons-directory in /opt/freenats/server/base ? and I have :
Code: Select all
-rwxr--r-- 1 root root 1588 Oct 11 15:02 config-.inc.php
-rwxr--r-- 1 root root 1538 Mar 9 2008 config.inc.php
-rwxr--r-- 1 web 500 1790 Oct 8 20:55 eval.inc.php
-rwxr--r-- 1 web 500 26989 Oct 8 20:55 freenats.inc.php
-rwxr--r-- 1 web 500 10198 Oct 8 20:55 help.inc.php
-rwxr--r-- 1 web 500 1995 Oct 8 20:55 nats.cfg.inc.php
-rwxr--r-- 1 web 500 3067 Oct 8 20:55 nats.db.inc.php
-rwxr--r-- 1 web 500 1709 Oct 8 20:55 nats.php
-rwxr--r-- 1 root root 2699 Oct 8 20:55 nats.tests.inc.php
-rwxr--r-- 1 root root 2920 Oct 8 20:55 node.xml.inc.php
drwxr-xr-x 2 root root 4096 Jul 28 17:57 phpmailer
-rwxr--r-- 1 root root 3347 Oct 8 20:55 schedule.inc.php
-rwxr--r-- 1 web 500 13665 Oct 8 20:55 screen.inc.php
-rwxr--r-- 1 web 500 3467 Oct 8 20:55 session.inc.php
drwxr-xr-x 4 root root 4096 Jul 28 17:57 site
drwxr-xr-x 2 web 500 4096 Mar 11 2008 sql
drwxr-xr-x 2 root root 4096 Sep 19 17:06 tests
-rwxr--r-- 1 web 500 10414 Oct 8 20:55 tests.inc.php
-rwxr--r-- 1 web 500 2866 Oct 8 20:55 testtext.inc.php
-rwxr--r-- 1 root root 1724 Oct 8 20:55 timer.inc.php
-rwxr--r-- 1 root root 3527 Oct 8 20:55 view.inc.php
I modified config-.inc.php because config.inc.php looks older ?
Can someone help me out with this ? I really like FREENATS, it's simple and it does what it should do - I installed it a few days ago and I am playing with it.
thx,
Chris
Belgium
Re: Custom icons
Posted: Sat Oct 11, 2008 4:24 pm
by chris
ok,
I've found it; it was config.inc.php, I had to change ...
Chris
Re: Custom icons
Posted: Sun Oct 12, 2008 12:14 am
by dave
Hi Chris,
Glad you got it sorted ok.
When you do an install as an upgrade it keeps your existing config.inc.php and puts the new default one as config-.inc.php.
The icons must still be in the apache icons directory from before turning off /icons/ redirection.
I really really will implement the directory scan for new icons soon.
Cheers,
Dave.
Re: Custom icons
Posted: Mon Oct 13, 2008 1:39 pm
by chris
Dave,
thanks for the info; I really like FREENATS ... and with the new icons it really looks great !
regards,
Chris
Belgium
Re: Custom icons
Posted: Wed Oct 15, 2008 6:29 pm
by dave
Hi Chris,
Glad you like the system. BTW if you have or know of any really cool freeware icons that can be used let me know and I'll be happy to include them.
Ok the latest development version (1.01.9a) now has dynamic directory scan included for the icons directory.
I'll post a news article and a more detailed info post about it for anyone who wants to test it. It should be into the stable release in the next week or so.
Cheers,
Dave.