Is it possible to change the topic icons?

For support and discussion related to templates and themes in phpBB 3.3.
Siyah Sekiz
Registered User
Posts: 24
Joined: Sun Nov 21, 2021 5:34 am

Is it possible to change the topic icons?

Post by Siyah Sekiz »

If it is possible to change the title icons of 3.3.5, could you please explain how?
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3732
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: Is it possible to change the topic icons?

Post by Kailey »

Edit the first post of a topic or choose one during topic creation. Users with the appropriate permissions can also pick one for their post.

topic_icon.png
topic_icon.png (11.22 KiB) Viewed 2319 times

If you're looking for something different, please explain in more detail.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
Siyah Sekiz
Registered User
Posts: 24
Joined: Sun Nov 21, 2021 5:34 am

Re: Is it possible to change the topic icons?

Post by Siyah Sekiz »

I meant can I put different images as topic icons?..
Bigger images?
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3732
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: Is it possible to change the topic icons?

Post by Kailey »

I don't see why not. The current set included in the download are 34 x 34 in size. How "big" are we talking about?
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
Siyah Sekiz
Registered User
Posts: 24
Joined: Sun Nov 21, 2021 5:34 am

Re: Is it possible to change the topic icons?

Post by Siyah Sekiz »

Something like this...

Image
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Is it possible to change the topic icons?

Post by warmweer »

Siyah Sekiz wrote: Wed Nov 24, 2021 5:38 pm Something like this...

Image
That's 100x75 whereas the default topic icons are 34x34. The difference is quite large (too large I think).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Siyah Sekiz
Registered User
Posts: 24
Joined: Sun Nov 21, 2021 5:34 am

Re: Is it possible to change the topic icons?

Post by Siyah Sekiz »

Changes can be made in the codes...
100 x 75 can be written, instead of 34 x 34.
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Is it possible to change the topic icons?

Post by warmweer »

Siyah Sekiz wrote: Thu Nov 25, 2021 4:44 am Changes can be made in the codes...
100 x 75 can be written, instead of 34 x 34.
Well ... you can test it for yourself:
a simple way is to edit the 34 x 34 to 100 x 75
and to avoid more editing in phpBB files, transform your image to a .png, and rename it to e.g. radioactive.png, temporarily replace the original radioactive.png with your temporary one and see the result.
You'll find out that the size change will have an undesirable effect (and in order to fix that more editing needs to be done)
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
janus_zonstraal
Registered User
Posts: 6418
Joined: Sat Aug 30, 2014 1:30 pm

Re: Is it possible to change the topic icons?

Post by janus_zonstraal »

Siyah Sekiz wrote: Thu Nov 25, 2021 4:44 am Changes can be made in the codes...
100 x 75 can be written, instead of 34 x 34.
Yes, that is possible, but how will it looks on a small phone screen, that is the question.
Sorry! My English is bat ;) !!!
Siyah Sekiz
Registered User
Posts: 24
Joined: Sun Nov 21, 2021 5:34 am

Re: Is it possible to change the topic icons?

Post by Siyah Sekiz »

I will publish the ads of a real estate company, on the phpBB forum.
I want to put a small image of the house, beside each topic.
So, instead of icon, there will be a small house image.

I would be glad if you could help me a little.
Where are the icons and the 34 x 34 code?
How can I change them?
User avatar
pit-PL
Registered User
Posts: 3212
Joined: Sat Nov 21, 2009 12:24 pm

Re: Is it possible to change the topic icons?

Post by pit-PL »

ACP > Posting > Topic icons > Edit (the little green icon).
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Is it possible to change the topic icons?

Post by warmweer »

I'm under the impression that topic icons aren't what you really want to edit.
Could you take a printscreen of the relevant area and using arrows, point to the exact location where you'ld want the picture.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
Talk19Zehn
Registered User
Posts: 846
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Is it possible to change the topic icons?

Post by Talk19Zehn »

Hello, since I don't see a graphic, can only read the word =>image. So I can only guess.
Siyah Sekiz wrote: Sat Nov 27, 2021 7:32 am I will publish the ads of a real estate company, on the phpBB forum.
I want to put a small image of the house, beside each topic.
...(...)...
My graphic is in the directory theme/images/houses
- named househome.png:
househome.png
househome.png (1.99 KiB) Viewed 1014 times

The following declarations in my custom.css might lead to the desired results.

Suggestion / Test - 3 examples:

Code: Select all

/* Headline / Subject h3
---------------------------------------- */

h3.first {
	background: url("./images/houses/househome.png");
	background-size: 20px;
	background-repeat: no-repeat;
	background-position: left bottom;
	padding-left: 26px
}
Or alternatively use for h3.first that statement:

Code: Select all

/* Headline / Subject h3
---------------------------------------- */

.postbody h3.first {
	background: url("./images/houses/househome.png");
	background-size: 20px;
	background-repeat: no-repeat;
	background-position: left bottom;
	padding-left: 26px
}

Next steps:

Code: Select all

.postbody h3 {
	background: url("./images/houses/househome.png");
	background-size: 23px;
	background-repeat: no-repeat;
	background-position: left bottom;
	padding-left: 26px
}

Code: Select all

/* Houseobject li row (forumlist, viewforum)
---------------------------------------------------------------- */

li.row {
	background-image: url("./images/houses/househome.png");
	background-size: 20px;
	background-repeat: no-repeat;
	background-position: right bottom;
}
Regards


Addendum: Edit Nov 27, 2021 11:32 pm
Tested in standard design Prosilver (3.3.5).


Edit 28 Nov 2021, 13:29 - results
S_results_houseonsubjekt.jpg
.
Last edited by Talk19Zehn on Sun Nov 28, 2021 12:31 pm, edited 2 times in total.
Best regards
phpBB3 Designs - My own works: Stylearea Ongray-Designs, Adventinducement-Calendar for phpBB
Siyah Sekiz
Registered User
Posts: 24
Joined: Sun Nov 21, 2021 5:34 am

Re: Is it possible to change the topic icons?

Post by Siyah Sekiz »

Can you please tell me, where is custom.css?
User avatar
Talk19Zehn
Registered User
Posts: 846
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Is it possible to change the topic icons?

Post by Talk19Zehn »

custom.css:
For your own adaptations. If it does not already exist, create it. You have to include it in the next step in ... styles/prosilver/theme/stylesheet.css => at the end.

As a test, you can also add the codes to the end of colours.css.
Best regards
phpBB3 Designs - My own works: Stylearea Ongray-Designs, Adventinducement-Calendar for phpBB
Post Reply

Return to “[3.3.x] Styles Support & Discussion”