Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Feedback/Suggestions
Author Message
jestrella
Moderator



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

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

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! ]

I wanna read some suggestions....

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6433

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

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...?

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
Palbin
Site Admin



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

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

I don't understand exactly what it is either. Smile

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
jestrella







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

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???
 
kguske







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

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.
 
jestrella







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

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
 
jestrella







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

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.
 
horrorcode
Involved
Involved



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

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

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
jestrella







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

Interested ones please download this package and post your experiences/feedback: [ Only registered users can see links on this board! Get registered or login! ]
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

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

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
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

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

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
Susann
Moderator



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

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

Got the same. So its not your browser.
 
View user's profile Send private message
Raven







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

Guardian, use right click -> Save link as ...
 
nuken
RavenNuke(tm) Development Team



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

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

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







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

killing me I beat!
 
nuken







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

Good advice Raven. I second that.
 
Guardian2003







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

That worked, thanks Raven Smile
 
jestrella







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

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???
 
Raven







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

Reference horrorcode's post. What if you don't want to use the icons? You would need a way of overriding your system.
 
jestrella







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

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...
 
spasticdonkey
RavenNuke(tm) Development Team



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

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

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! ]

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



Joined: Apr 06, 2008
Posts: 484

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

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! ]

(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







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

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 CSS Mastery by Andy Budd
 
jestrella







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

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! ] [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
 
jestrella







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

So... have somebody give this a try? no new ideas to post? wanna red from you Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Feedback/Suggestions

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©