• Welcome to Simple Machines Community Forum. Please login or sign up.
September 19, 2021, 07:39:41 PM

News:

Wondering if this will always be free?  See why free is better.


[2.1] Upload / delete / separate folder for stars

Started by bigjoe11a, November 08, 2012, 04:29:47 PM

Previous topic - Next topic

bigjoe11a

I see that every time I add a rank. I have to remember what the file name is. and I have to use FTP client to log in and check the themes/images folder for what ranks I have. I was thinking that this would be a good idea.

Instead of that. Create a new folder calls ranks\ and let it list all the images and we just pick the one that we want. That way I don't have to remember the file names. It would be an idea to add this all so to themes too. In the theme folder create a new folder called ranks. What ever theme the Admin is using. He/she can choose a rank from a drop down list.

Thanks
Joe

SMF Forums http://www.df-barracks.com Where gamers go.

Kindred

So... make things more complex, structure wise?

Why not just name all your rank badges: rank_BLAH, rank_BLEH, rank_BLOH?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bigjoe11a

Quote from: Kindred on November 09, 2012, 10:14:54 AM
So... make things more complex, structure wise?

Why not just name all your rank badges: rank_BLAH, rank_BLEH, rank_BLOH?


well that doesn't all ways work like that. I can't all ways remember what I uploaded and the names of what I uploaded. and I don't think you have to change other then one page any way. Just have it to a opendir and list the files ranks folder. and pick the one you want. I done this in many projects that users wanted this option. Sense it's in PHPBB3 I don't see why not add it to SMF.

SMF Forums http://www.df-barracks.com Where gamers go.

IchBin™

I could see this being useful in the same way that selecting a topic icon works. Allows you to see what badge you've selected and what they look like, without having to remember filename etc.
IchBin™        TinyPortal

bigjoe11a

Quote from: IchBin™ on November 09, 2012, 12:07:18 PM
I could see this being useful in the same way that selecting a topic icon works. Allows you to see what badge you've selected and what they look like, without having to remember filename etc.

Thank you, I all so agree, This would be. Just some thing that would list them and then you could pick the one you wanted from a <select><option>filename.jpg</option></select>

I was thinking about how I did this before. and I not sure. But if you use an $ranks =  opendir($themes_url.'ranks/*.*); or some thing like this. and then add them to a <select> and them we would just have to pick the one we want. It's better then guessing.

SMF Forums http://www.df-barracks.com Where gamers go.

Akyhne

I have seen so many questions about stars, how to upload etc.

I think stars should have their own folder system, as well as a download system. A simple download button and a div that lists current stars available.

This could be achieved with few lines of code. Just look how simple the upload for new smilies is done.

bigjoe11a

Yes, The same option applies to stars all so. Any thing related to ranks.
SMF Forums http://www.df-barracks.com Where gamers go.

Akyhne

Why were these two topics merged? They are unrelated!

Kindred

no they are no unrelated.

BigJoe's request:
create a separate folder for rank images

Your request:
create a separate folder for rank images.
Also create the ability to manage the rank images through the admin interface.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Akyhne

November 12, 2012, 10:04:24 AM #9 Last Edit: November 12, 2012, 10:14:38 AM by Akyhne
By rank images, he means stars for Regular groups and Post count based groups?

Quote from: Kindred on November 12, 2012, 09:23:31 AM
Your request:
create a separate folder for rank images.
Also create the ability to manage the rank images through the admin interface.
It isn't really a request. The choise of star images has clearly never been finished by the devs.

Kindred

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Akyhne

I already made a page to list MG icons and what theme they are missing in. It only needs a copy/upload system in the bottom.
And of course a dropdown where you select MG icons, instead of the current input field where you just write a file name.

Akyhne

It's a great benefit in this particular situation, that themes for SMF 2.0.x and down are not adaptable to 2.1 directly, and that the files are renamed to something else.
This gives the oppertunity to also move the files to a separate folder. They really shouldn't be in the 'Images' folder, but in a separate folder like most other images.

Akyhne

Icons can be deleted by simply doubleclicking on them.

New icons can be uploaded to all themes or individual ones. They can be renamed during upload and you can decide if you want to replace existing files.

Only needs a copy system now.

But why am I doing all this? I can't even make a mod out of it (and won't)?! Guess I'm just bored!

Kindred

nice screen shots.... are you going to contribute the code to the branch/trunk?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Akyhne

If I can figure it out. If you want to see/test it live, give me a nudge.

Antechinus

Quote from: Akyhne on November 10, 2012, 10:16:07 AM
I have seen so many questions about stars, how to upload etc.

I think stars should have their own folder system, as well as a download system. A simple download button and a div that lists current stars available.

This could be achieved with few lines of code. Just look how simple the upload for new smilies is done.

Problem: what if you want theme-specific icons? Before you say "Nobody will ever want that", it's something I have already done for custom themes, and I'm not the only person who has done it. Pulling them from one folder via one setting isn't going to allow that. Quite honestly, I'd really prefer the "stars" to stay as part of the theme, the way they are now.

Kindred

ant...

yes. I don't think that anyone has suggested that be changed.
They are asking that the stars and other rank images be placed in a SUBdirectory of images rather than directly in the images root....
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antechinus

I can see it being fun to write an interface that'll handle all that. :)

You can do the folder already if you want to. Admin just assumes theme_url, but anything after that is entered manually into the input window, so people can put the stars in whichever folder they like. You could call them from images/theme/superfluous_directory/hey_another_one/oh_looky_we_haz_starz_here if you wanted to. It'll make no difference to SMF.

Akyhne

Eh... we are just suggesting a sub folder of the images folder of each theme. So moving stars to their own subfolder of /images, like almost all other images have their own folder.

Interface? Uhm, that's already done: http://www.simplemachines.org/community/index.php?topic=490266.msg3436984#msg3436984

Wasn't a big task, really. It looks in the folder /images/star_icons/ of each theme installed and list the images, then compares the lists from each theme and show them.

Advertisement: