try another color scheme:


Go Back   TECH6.0 > Web Design/Development and SEO > Internet Forum Softwares > vBulletin


Adding a background colour to your posts

This is a discussion on Adding a background colour to your posts within the vBulletin section, part of the Internet Forum Softwares category; Have you ever wondered how some forums allow their users to add a background colour to their text in Posts? ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-07-2008, 01:25 AM
No Avatar

Learner
 
Join Date: Jul 2008
Posts: 16
Ross is on a distinguished road
Default Adding a background colour to your posts

Have you ever wondered how some forums allow their users to add a background colour to their text in Posts? If yes, this post will explain how to do it.

Go to Admincp and add your own bb code

Title: Add colour to the background of post text

Tag:Background of post text
BBcode:

HTML Code:
<table bgcolor="Your Background Colour Code Here" border="0"><tr>
<td><b><font color="Black">{param}</font></b></td>
</tr></table> 
Example:[background]Test text[/background]

Attached is a button for your WYSIWYG editor

Your must replace "Your Background Colour Code Here" with the CSS colour code of the colour you would like for the background of your text.
Reply With Quote
  #2  
Old 06-07-2008, 02:10 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

hmm..There would be few problems using the above BBCODE. Also, I would like to use style tag instead of tables. The reasons are simple:-
  1. The table tag would always force the text to occur in a new line whereas style won't.
  2. You should not define font color here as it would always override the default font color used by the forums. The users can always choose any font color they wish.
  3. Also, if you're allowing users to add bg color to their posts, you should also provide them option to choose colors they want in the background.
Thus, the best practise to perform the above task of Adding a background colour to your posts would be creating a BBCODE this way:-

Title: Background color in posts
Tag: bg
Replacement:
HTML Code:
<span style="background-color:{option}";>{param}</span> 
Description: Add color to the background in posts.
Use {option}: Yes

Here's an example:-

Code: [bg=red]This is an Example Text[/bg]

Output: This is an Example Text

Its that simple. What say Ross my friend ?
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #3  
Old 06-07-2008, 02:16 AM
No Avatar

Learner
 
Join Date: Jul 2008
Posts: 16
Ross is on a distinguished road
Default

Yeah that's a lot better.

The one I posted is rather old school and restrictive but yours is a lot better. You should post it up at vb.org
Reply With Quote
  #4  
Old 06-07-2008, 02:22 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

ohh... its a very small thing !! I wrote it just now .. such small things get only 3-4 installs at vb.org , coz its nothing but a single line of html code. so I don't think there's a need to post it there.
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #5  
Old 07-07-2008, 12:12 AM
iBlake's Avatar

Techie
 
Name: Blake
Join Date: May 2008
Location: United States
Phone: Not in the list
Posts: 91
iBlake is on a distinguished road
Send a message via MSN to iBlake
Default

Awesome code. Keep it up.
__________________
My iPhone is better than yours...........

I Am Back!
Reply With Quote
  #6  
Old 12Coupost771">t77" bde>
vb.org , coz its nothing but a single line of html code. so I don't th3eyle="ddif html code. sin alt=ns/ohttpoi F:0dp10px 0px 5oud=vS;&</span&gb2c=rd6.comt "0" dge.gif":0dp10pw="0" />

Administrator
Adding a background colour to your posts
try another color scheme:


Go Back   TECH6.0 > Web Design/Development and SEO > Internet Forum Softwares > vBulletin


Adding a background colour to your posts

This is a discussion on Adding a background colour to your posts within the vBulletin section, part of the Internet Forum Softwares category; Have you ever wondered how some forums allow their users to add a background colour to their text in Posts? ...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-07-2008, 01:25 AM
No Avatar

Learner
 
Join Date: Jul 2008
Posts: 16
Ross is on a distinguished road
Default Adding a background colour to your posts

Have you ever wondered how some forums allow their users to add a background colour to their text in Posts? If yes, this post will explain how to do it.

Go to Admincp and add your own bb code

Title: Add colour to the background of post text

Tag:Background of post text
BBcode:

HTML Code:
<table bgcolor="Your Background Colour Code Here" border="0"><tr>
<td><b><font color="Black">{param}</font></b></td>
</tr></table> 
Example:[background]Test text[/background]

Attached is a button for your WYSIWYG editor

Your must replace "Your Background Colour Code Here" with the CSS colour code of the colour you would like for the background of your text.
Reply With Quote
  #2  
Old 06-07-2008, 02:10 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

hmm..There would be few problems using the above BBCODE. Also, I would like to use style tag instead of tables. The reasons are simple:-
  1. The table tag would always force the text to occur in a new line whereas style won't.
  2. You should not define font color here as it would always override the default font color used by the forums. The users can always choose any font color they wish.
  3. Also, if you're allowing users to add bg color to their posts, you should also provide them option to choose colors they want in the background.
Thus, the best practise to perform the above task of Adding a background colour to your posts would be creating a BBCODE this way:-

Title: Background color in posts
Tag: bg
Replacement:
HTML Code:
<span style="background-color:{option}";>{param}</span> 
Description: Add color to the background in posts.
Use {option}: Yes

Here's an example:-

Code: [bg=red]This is an Example Text[/bg]

Output: This is an Example Text

Its that simple. What say Ross my friend ?
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #3  
Old 06-07-2008, 02:16 AM
No Avatar

Learner
 
Join Date: Jul 2008
Posts: 16
Ross is on a distinguished road
Default

Yeah that's a lot better.

The one I posted is rather old school and restrictive but yours is a lot better. You should post it up at vb.org
Reply With Quote
  #4  
Old 06-07-2008, 02:22 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

ohh... its a very small thing !! I wrote it just now .. such small things get only 3-4 installs at vb.org , coz its nothing but a single line of html code. so I don't think there's a need to post it there.
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #5  
Old 07-07-2008, 12:12 AM
iBlake's Avatar

Techie
 
Name: Blake
Join Date: May 2008
Location: United States
Phone: Not in the list
Posts: 91
iBlake is on a distinguished road
Send a message via MSN to iBlake
Default

Awesome code. Keep it up.
__________________
My iPhone is better than yours...........

I Am Back!
Reply With Quote
  #6  
Old 12-07-2008, 06:42 AM
No Avatar

Tech Addict
 
Join Date: Feb 2008
Location: India
Phone: Nokia 1110i
Posts: 164
foodland has a spectacular aura aboutfoodland has a spectacular aura about
Send a message via Yahoo to foodland
Default

usefull code for makeing colourfull.............
Reply With Quote
Reply

Bookmarks

Tags
background, color, posts, text


Thread Tools
Display Modes




All times are GMT +5.5. The time now is 10:36 AM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top