Forum Title Colour

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Anti-Spam Guide
Post Reply
Exabot
Translator
Posts: 211
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Forum Title Colour

Post by Exabot »

I'm looking for a way to change the color of forum titles, like this phpbb 3.0.10 ext https://www.phpbb.com/customise/db/mod/ ... le_colour/
Someone would update it?
User avatar
Talk19Zehn
Registered User
Posts: 598
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Forum Title Colour

Post by Talk19Zehn »

Hello, just on the fly - please test this ideas: colours.css

find:

Code: Select all

/* Back to top of page */
.top i {
	color: #999999;
}
and insert before (!):

Code: Select all


/* Linkcolor for forum/topic titles
-------------------------------------- */

.forum-title a {
	color: #BC2A4D;
}

a.forumtitle {
	color: #AA0000;
}

.topic-title a {
	color: #BC2A4D;
}

a.topictitle {
	color: #AA0000;
}

Clear all caches.
An extension is not necessary in my opinion ...
Regards
User avatar
david63
Registered User
Posts: 19030
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Forum Title Colour

Post by david63 »

Talk19Zehn wrote:
Fri Aug 16, 2019 9:55 pm
An extension is not necessary in my opinion ...
It is if you want a different colour for each forum
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
User avatar
Talk19Zehn
Registered User
Posts: 598
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Forum Title Colour

Post by Talk19Zehn »

Hi, perhaps for a different colour for each or some forum: Test examples(!)
Create a new stylesheet.css --> mycustom.css:

Code: Select all

.forumid-x,
.forumid-y,
.forumid-z {
  color: darkred;
}

Code: Select all

.forumid-a,
.forumid-b,
.forumid-c {
  color: darkgreen;
}
Then replace the [a, b, c, x, y, z] with the ID of the forum and assign the desired color (color: darkred, darkgreen is only an example).

And complete the stylesheet.css with the mycustom.css: @import url("mycustom.css?v=3.2");

Code: Select all

/*  phpBB3 Style Sheet
    --------------------------------------------------------------
	Style name:			prosilver (the default phpBB 3.2.x style)
	Based on style:
	Original author:	Tom Beddard ( http://www.subblue.com/ )
	Modified by:		phpBB Limited ( https://www.phpbb.com/ )
    --------------------------------------------------------------
*/

@import url("normalize.css?v=3.2");
@import url("base.css?v=3.2");
@import url("utilities.css?v=3.2");
@import url("common.css?v=3.2");
@import url("links.css?v=3.2");
@import url("content.css?v=3.2");
@import url("buttons.css?v=3.2");
@import url("cp.css?v=3.2");
@import url("forms.css?v=3.2");
@import url("icons.css?v=3.2");
@import url("colours.css?v=3.2");
@import url("responsive.css?v=3.2");
@import url("mycustom.css?v=3.2");

At last change one line --> forumlist_body.html
find:

Code: Select all

<a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a>
change to:

Code: Select all

<a href="{forumrow.U_VIEWFORUM}" class="forumtitle forumid-{forumrow.FORUM_ID}">{forumrow.FORUM_NAME}</a>

It should work, if so required. Test it please.
Arround the line 50 <a href="{forumrow.U_VIEWFORUM}" class="forumtitle">{forumrow.FORUM_NAME}</a>
, I find no suitable event.

Regards
Last edited by Talk19Zehn on Sat Aug 17, 2019 9:15 am, edited 1 time in total.
User avatar
3Di
Former Team Member
Posts: 16151
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: Forum Title Colour

Post by 3Di »

No. That's not an extension, please see "custom coding" for this kind of suggestions. ;)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Talk19Zehn
Registered User
Posts: 598
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Forum Title Colour

Post by Talk19Zehn »

Yes, that's known to me. To create a child style previously, would be appropriate. :)
User avatar
3Di
Former Team Member
Posts: 16151
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: Forum Title Colour

Post by 3Di »

Here, users ask for extensions, not code tampering. :)

With an extension you don't have to do code, just use it. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Talk19Zehn
Registered User
Posts: 598
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Forum Title Colour

Post by Talk19Zehn »

Yes you are right. An extension to change the colors for forum-title and forumtitle I did not find, which would also be used on index.
Even for a few lines of code is a Stylelayoutchanger correct to use. Although in my view for a few codings "relatively" impractical, since the effort would be quite high. :)
For my personal purposes my personal stylelayoutchanger was and is always sufficient. From this I have created a skeleton (* pattern) of a stylelayoutchanger. Attached is a child-design Prosilver named "ownprosilver" to show what might be possible and should also be installed. Again, this is just a skeleton with few CSS changes.

If interested - Download for the sample copy: https://www.phpbb-theme.de/viewtopic.php?f=32&t=99
The colors are currently only exemplarily included in the approach.
The paths are self-explanatory. * If someone like, he can write an extension that works in other and/or more parts.

I can not do more right now. Best regards


=================
Edit 1: New package
=================
Edit 2:
Note: The little extension is not intended for a live forum but for a testboard surface. If you trust yourself to use them in a live operation, you should have good knowledge in HTML, CSS and phpBB etc.
Last edited by Talk19Zehn on Sun Aug 18, 2019 8:45 am, edited 2 times in total.
Exabot
Translator
Posts: 211
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: Forum Title Colour

Post by Exabot »

Talk19Zehn wrote:
Sat Aug 17, 2019 3:50 pm
Yes you are right. An extension to change the colors for forum-title and forumtitle I did not find, which would also be used on index.
Even for a few lines of code is a Stylelayoutchanger correct to use. Although in my view for a few codings "relatively" impractical, since the effort would be quite high. :)
For my personal purposes my personal stylelayoutchanger was and is always sufficient. From this I have created a skeleton (* pattern) of a stylelayoutchanger. Attached is a child-design Prosilver named "ownprosilver" to show what might be possible and should also be installed. Again, this is just a skeleton with few CSS changes.

If interested - Download for the sample copy: https://www.phpbb-theme.de/viewtopic.php?f=32&t=98
The colors are currently only exemplarily included in the approach.
The paths are self-explanatory. * If someone like, he can write an extension that works in other and/or more parts.

I can not do more right now. Best regards
Not showing ext stylelayoutchanger->mystylechanges
User avatar
canam800er
Registered User
Posts: 129
Joined: Thu Jul 21, 2011 7:42 pm
Contact:

Re: Forum Title Colour

Post by canam800er »

Hi
Open: root/ext/stylelayoutchanger/mystylechanges/composer.json
Find:

Code: Select all

"name": "myself",
Replace with:

Code: Select all

"name": "myself"
Sorry for my bad english, I am German and translated with Google!
My Extensionen!
Exabot
Translator
Posts: 211
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: Forum Title Colour

Post by Exabot »

Thanks!! Where is it located in acp?
User avatar
canam800er
Registered User
Posts: 129
Joined: Thu Jul 21, 2011 7:42 pm
Contact:

Re: Forum Title Colour

Post by canam800er »

Open this file with a suitable editor.
Sorry for my bad english, I am German and translated with Google!
My Extensionen!
User avatar
Talk19Zehn
Registered User
Posts: 598
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Forum Title Colour

Post by Talk19Zehn »

Uuups - I had deleted the homepage entry and forgot to delete the comma. Excuse me!

New package is online (see edit). BTW: There are no ACP modules and feel free to write an all-inclusive extension.

Best Regards
Post Reply

Return to “Extension Requests”