Uutiset:

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

Main Menu
Advertisement:

Change default icon choice

Aloittaja Black Tiger, maaliskuu 20, 2014, 11:52:53 IP

« edellinen - seuraava »

Black Tiger

When you make a post, the default post icon is always displayed.
However, I would like that no default icon is displayed, so there will be only a post icon displayed when one is chosen by the user.

So if the user does not chooses a post icon, only show the backgrond, but no post icon, however, if he chooses, he must be able to choose the default post icon if he want's that one.

This requires some code change to leave it blank by default, and to add a "--choose--" or "--none--" option in the dropdown select, and leave empty (no icon) if nothing is chosen.

Now I found the default post icon is xx.gif.
Also I found that it's present in /Themes/default/BoardIndex.template.php and /Themes/default/Recent.template.php.

I just don't know how to adjust this, to get what I want. Can anybody help me with that by writing a "find this" and "replace with that" kind of manual?
It's does not have a big hurry.
Greetings, Black Tiger

Antechinus

I'm pretty sure this was done in 2.1 alpha (haven't looked at 2.1 code for a while). If it is in 2.1, you should be able to nick the code.

Black Tiger

I could not find the pulldown code yet in 2.0.6, but thank you, that might be an idea.;)
But maybe somebody can help me with it, because I'm no coder and I can read and change code just a little. So I'll hang around for a bit.
Greetings, Black Tiger

Black Tiger

Nobody any clue on which changes I need to make to get it the way I like?
Greetings, Black Tiger

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Kays

To expand on that a bit. :P

If you want to do this globally. In the images folder, find and download blank.gif. Which is a 1 x 1 transparent image. Rename it to xx.gif and upload it to the post folder overwriting the existing xx.gif file.

1/ If it don't change immediately. Clear your cache or CTRL + F5 for windows.
2/ Do backup the original xx.gif before doing this just in case. ;)

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Black Tiger

Thank you both, but I've thought of that already.
However in that case the default image is gone for when somebody want's to use the default image, which can also be used for some things.

If possible, I would like to have it default set to a text like "select" or keep the option empty, and when nothing is selected, no default image is displayed.
I thought it might be easily adjustable to change some text in some file.
Greetings, Black Tiger

Kays

Why not add the xx.gif as an icon with a different name. :)

Admin CP > Smileys and Message Icons > Edit Message Icon. Needs to be enabled first.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Black Tiger

Ha! That's an idea!:)
It can be fixed that way indeed, makes things a lot easyer then editting php files.

I'll rename the xx.gif to default.gif and then make an empty xx.gif. That will be the solution, thanks!!  :laugh:
Greetings, Black Tiger

Kays

Cool, and it's a simple way of doing it without any file edits. :)

If you have any problems with the size in topic view. Like this page, where the icon is clickable. Use the attached image instead. It's the same size as the other message icons.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Black Tiger

Is that a transparant icon, cool! Saves me work.

Thank you very much!!
Greetings, Black Tiger

Kays

Yep, that's why you can't see it. ;)

If you want to try one with a border:

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Black Tiger

Changed and tested it as said, working like a charm, thank you very much!!
Greetings, Black Tiger

emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: