Topic Background colour

Need help with your forum? Ask away. Remember though that there's always http://www.phpbb.com/community

Moderator: Experts

Post Reply
Graham
Posts: 76
Joined: Mon Oct 20, 2008 3:31 am
Location: UK
Contact:

Topic Background colour

Post by Graham »

Hi David

Hope that everything is all right with you and your family.
I'm trying to make it so the members of my site can choose a background colour for their topics.

I thought the easiest way is to use BBcode

I tried this
Code
[bground={COLOR}] Topic text [/bground]

Html
<style="background-color: {COLOR}">

You will know by looking at it that it does not work. :lol:
What html code would I need to get it to work?

Thanks
Graham
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Topic Background colour

Post by DavidIQ »

Hi Graham,

Well what you've posted will only produce the following:
This is the text after using that BBCode
Obviously not what you're looking for. To me it seems that what you're looking for will require some code changing. Now did you mean the entire topic or just the specific post?
Graham
Posts: 76
Joined: Mon Oct 20, 2008 3:31 am
Location: UK
Contact:

Re: Topic Background colour

Post by Graham »

Hi David

Just the first post in the topic, no need for anyone leaving a comment to have a coloured background unless it's easier to do of course.
You know mine is a poetry site, so if one of the members wants to have a coloured background to their poem they would be able to.
Like on the side where you have Font Colour but it would be Background colour or drop down list of colours or again which ever is the easiest way to do it.

Thanks
Graham
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Topic Background colour

Post by DavidIQ »

Will need an additional column added to the posts table and allow it to only be set for the first post. Might be 3-5 edits total me thinks. I'll see if I can get something written up in the next day or so.
Graham
Posts: 76
Joined: Mon Oct 20, 2008 3:31 am
Location: UK
Contact:

Re: Topic Background colour

Post by Graham »

Thanks David,

There is no great rush I know you are very busy both here and at phpBb.

Graham
selina
Posts: 1
Joined: Mon Apr 13, 2015 3:45 am

Re: Topic Background colour

Post by selina »

The only difference was that he was using a new Style and I was using prosilver but the symptoms (non-clickable smilies and bbcodes) were the same. I found the solution by searching for "background-color: #' + color + ;">');" in the phpbb forums and there it was...a missing single quote. I have to assume that it was a MOD that broke it but I haven't tracked down which. Perhaps it was the WP to phpBB bridge plugin that did it, I'll have to check that one still.
Houlihan
Posts: 1
Joined: Fri Oct 12, 2018 6:07 am

Re: Topic Background colour

Post by Houlihan »

Were those issues with Prosilver fixed over the years btw? Anyone using that style?
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Topic Background colour

Post by DavidIQ »

Houlihan wrote: Fri Oct 19, 2018 8:11 am Were those issues with Prosilver fixed over the years btw? Anyone using that style?
Which prosilver issues?
Post Reply