Page 1 of 1

Topic Background colour

Posted: Thu Mar 18, 2010 9:01 am
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

Re: Topic Background colour

Posted: Thu Mar 18, 2010 2:38 pm
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?

Re: Topic Background colour

Posted: Thu Mar 18, 2010 3:50 pm
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

Re: Topic Background colour

Posted: Mon Mar 22, 2010 10:22 am
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.

Re: Topic Background colour

Posted: Mon Mar 22, 2010 4:01 pm
by Graham
Thanks David,

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

Graham

Re: Topic Background colour

Posted: Fri Mar 26, 2010 6:25 pm
by DavidIQ
And here you go:
viewtopic.php?f=6&t=370

Re: Topic Background colour

Posted: Mon Apr 13, 2015 3:50 am
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.

Re: Topic Background colour

Posted: Fri Oct 19, 2018 8:11 am
by Houlihan
Were those issues with Prosilver fixed over the years btw? Anyone using that style?

Re: Topic Background colour

Posted: Fri Oct 19, 2018 8:13 am
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?