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

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

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Topic Background colour

Post by DavidIQ » Thu Mar 18, 2010 2:38 pm

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

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

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Topic Background colour

Post by DavidIQ » Mon Mar 22, 2010 10:22 am

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 » Mon Mar 22, 2010 4:01 pm

Thanks David,

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

Graham

User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Topic Background colour

Post by DavidIQ » Fri Mar 26, 2010 6:25 pm

And here you go:
viewtopic.php?f=6&t=370

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

Re: Topic Background colour

Post by selina » Mon Apr 13, 2015 3:50 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest