PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Tue Jan 20, 2009 7:15 pm Reply with quote Back to top

I've been doing some work on class that I've named nukeICONS... the name says it all, it's a icon theme manager for *nuke. The code might be a little raw at this stage but I want some brave people to give a try and help debug and improve the code. I can send copies to the interested ones. And remember is still on early stage of development.

The icon theme i chose as base to start from was of course Tango Icon Theme, it is released under the Creative Commons Attribution Share-Alike license and will try to adapt as possible to the icon naming specifications from the Tango Project and FreeDestop.org.

Spanish speakers can read the entry at my new blog:
Only registered users can see links on this board!
Get registered or login to the forums!


I wanna read some suggestions....
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jan 20, 2009 10:18 pm Reply with quote Back to top

Hi jestrella,

Can you give a little more info on what the icon theme manager will do? Manage news topic icons and / or admin icons? Or functions with Nuke? Or all of the above...?
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Tue Jan 20, 2009 10:19 pm Reply with quote Back to top

I don't understand exactly what it is either. Smile
View user's profile Send private message
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Tue Jan 20, 2009 10:46 pm Reply with quote Back to top

Laughing
Excuse me if I was not so clear in my original post. It's well known by all of us that all *nuke applications (lets say blocks/addons/modules/etc) use their own graphics all over the way. As you browse from one module to another all graphics might drastically change giving the impression of a non integrated design. This is the situation I am planning to avoid creating this class. instead of all modules linking to their owin images there will be a central function you can call to generate determined icon.

So... instead of adding this to our apps
Code:
<img src="path/to/image/here.png" width="32" height="32" alt ="" />


We'll call the nukeicons function that will take charge of managing and displaying icons (same icons for all modules/blocks/addons). Function will be called like this:
Code:
nukeicons('icon_name_here', 'dimensions_here');


This might save us some space on the package here as all images/icons will be located on a specific directory and we could easily dropped all module specific images.

Of course this will require to adapt all present nuke applications from directly showing images to call the function. There's also an admin interface allowing to select default iconset (Currently working with Tango only).


Explained clear enough this time???
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Jan 20, 2009 11:14 pm Reply with quote Back to top

Yes, thanks. One possible issue is that themes often override graphics, and the function-specific graphics won't apply (easily) to things like admin icons and news topic icons.
View user's profile Send private message
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Wed Jan 21, 2009 10:20 am Reply with quote Back to top

Currently, available icon sizes are 16x16, 22x22, 32x32 and 48x48. The class is not so resource intensive but it may need some tweaks.

Here's a screenshot of a script i made to test the class:
Image
View user's profile Send private message Visit poster's website
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Wed Jan 21, 2009 10:32 am Reply with quote Back to top

kguske wrote:
Yes, thanks. One possible issue is that themes often override graphics, and the function-specific graphics won't apply (easily) to things like admin icons and news topic icons.


That's one one of the situation I am planning to avoid using this function. I want to see graphic integration all over the system.
View user's profile Send private message Visit poster's website
horrorcode
Involved
Involved


Joined: Jan 17, 2009
Posts: 268
Location: Missouri

PostPosted: Wed Jan 21, 2009 12:27 pm Reply with quote Back to top

I love that idea but I think for certain theme specific images you might want to leave it out considering others mods such as AutoTheme, but then again it would be up to the person using it whether they wanted to change those lines in the theme or not. But I'd also love to see more work on AutoTheme, on that note, new post. Either way I'll be looking forward to testing it out
View user's profile Send private message Visit poster's website MSN Messenger
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Mon Jan 26, 2009 10:49 am Reply with quote Back to top

Interested ones please download this package and post your experiences/feedback:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Jan 26, 2009 3:41 pm Reply with quote Back to top

horrorcode raises a very important issue. JEstrella, maybe your function could allow for another parameter like nukeicons('icon_name_here', 'dimensions_here', 'allow_theme_override'); or something along that line.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Mon Jan 26, 2009 5:35 pm Reply with quote Back to top

Tried the link but got a page of garbage instead of a 7z package - could be my browser I suppose.
Interesting concept and I'd like to look at it further. One of the first things questions I have though as I cannot see the code is how are you handling ALT tags.
View user's profile Send private message Send e-mail Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3143
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Mon Jan 26, 2009 5:41 pm Reply with quote Back to top

Got the same. So its not your browser.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Jan 26, 2009 5:43 pm Reply with quote Back to top

Guardian, use right click -> Save link as ...
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Mon Jan 26, 2009 5:43 pm Reply with quote Back to top

in Firefox, right click the link and hit save link as. IE should be similar.
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Jan 26, 2009 5:44 pm Reply with quote Back to top

killing me I beat!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 1536
Location: North Carolina

PostPosted: Mon Jan 26, 2009 5:46 pm Reply with quote Back to top

Good advice Raven. I second that.
View user's profile Send private message Send e-mail Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Mon Jan 26, 2009 5:46 pm Reply with quote Back to top

That worked, thanks Raven Smile
View user's profile Send private message Send e-mail Visit poster's website
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Mon Jan 26, 2009 11:35 pm Reply with quote Back to top

Raven wrote:
horrorcode raises a very important issue. JEstrella, maybe your function could allow for another parameter like nukeicons('icon_name_here', 'dimensions_here', 'allow_theme_override'); or something along that line.


Uhmm, I am planning to include some other parameters like alt, title, border...

What do you mean with allow_theme_override???
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Jan 27, 2009 4:03 am Reply with quote Back to top

Reference horrorcode's post. What if you don't want to use the icons? You would need a way of overriding your system.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Tue Jan 27, 2009 7:58 am Reply with quote Back to top

In fact, it is meant to be used for displaying icons only and will require explicit call of the nukeicon() function. Is up to theme/app developers to use it or not...
View user's profile Send private message Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1364
Location: Texas, USA

PostPosted: Tue Jan 27, 2009 9:35 am Reply with quote Back to top

Something like Ikonize would be cool for a re-worked Downloads module
Only registered users can see links on this board!
Get registered or login to the forums!


(automatically adds icons depending on what type of file the link points to)
View user's profile Send private message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 483

PostPosted: Tue Jan 27, 2009 4:54 pm Reply with quote Back to top

spasticdonkey wrote:
Something like Ikonize would be cool for a re-worked Downloads module
Only registered users can see links on this board!
Get registered or login to the forums!


(automatically adds icons depending on what type of file the link points to)


you can do this via css

Code:

a[href$='.pdf'] { padding:0 20px 0 0; background:transparent url(/graphics/icons/pdf.gif) no-repeat center right; }
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Jan 27, 2009 6:25 pm Reply with quote Back to top

testy1 wrote:
you can do this via css
Code:

a[href$='.pdf'] { padding:0 20px 0 0; background:transparent url(/graphics/icons/pdf.gif) no-repeat center right; }


As an FYI, IE6 (and below) does not support the attribute selector. There are other ways of adding a similar effect through the use of Java Script and the DOM, according to
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Wed Jan 28, 2009 8:44 pm Reply with quote Back to top

Ok, I have been working in some enhancements... Please download this new package and replace old files on your test server with the ones here provided:
Only registered users can see links on this board!
Get registered or login to the forums!
[Right click -> Save as]


When everything is in place run iconstest.php from your browser for a quick demo on how the class do all the magic Laughing

I am all eyes to read any suggestion you may post. Very Happy
View user's profile Send private message Visit poster's website
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Fri Mar 20, 2009 8:36 pm Reply with quote Back to top

So... have somebody give this a try? no new ideas to post? wanna red from you Very Happy
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum