Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 18 Apr 2016, 09:08
flowers's Avatar
flowers flowers is offline
 
Join Date: Aug 2007
Alternating Post Background Color

One person posts, then the background color of the post of the first person to reply is slightly darker or lighter, then it switches back to the original shade on the next reply, and so on and so on. VB 4.2.2

How do I implement this feature?
Reply With Quote
  #2  
Old 18 Apr 2016, 14:55
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
A quick and dirty method would be to go to your postbit template (whichever you are using), and locate the line:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And change it to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change "#FFDDDD" to the background color you want for odd numbered posts and change "#DDFFDD" to the background color you want for even numbered posts.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 18 Apr 2016, 15:58
flowers's Avatar
flowers flowers is offline
 
Join Date: Aug 2007
Thank you
Reply With Quote
  #4  
Old 19 Apr 2016, 05:49
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I hate hacking templates, so I have developed a simple mod that will allow you to turn the feature on/off, use HTML color pickers for the background colors, and select which styles the product is active in. Undo the edits you may have done to your postbit templates before installing.

To Install:
  • Download the attached .xml file.
  • Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  • Click on "Choose File" and browse to the product .xml file that you downloaded.
  • Click "Import."
  • You MUST enable the product in the settings before it will function.
  • Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

Attached Images
File Type: png markfl_apb_acp.png (36.8 KB, 92 views)
Attached Files
File Type: xml product-markflalternatepostbacks.xml (6.3 KB, 11 views)
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #5  
Old 19 Apr 2016, 06:28
flowers's Avatar
flowers flowers is offline
 
Join Date: Aug 2007
Thumbs up

Thank you very much.
Reply With Quote
  #6  
Old 19 Apr 2016, 10:38
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Real name: Stratis
Stolen

* Can this have a feature to select in which forums we like to take effect ?
* Options to import with the "Background Color" and a background image to.
in the two exist options of colors if we want ?

Very nice
Reply With Quote
  #7  
Old 19 Apr 2016, 21:13
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Okay, I have added a setting for active forums and a setting for active threads.
Attached Files
File Type: xml product-markflalternatepostbacks.xml (9.1 KB, 9 views)
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #8  
Old 19 Apr 2016, 21:42
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Real name: Stratis
Very kind of you Mark, thanks.
Reply With Quote
  #9  
Old 20 Apr 2016, 03:36
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I have added settings to include background images. For example, if you wish to tile the background of odd-numbered posts with an image, you would enter something like:

url(images/misc/checkerboard.png) repeat

Into the setting field titled "Background Image for Odd Numbered Posts". Note that the url of the image is not enclosed with quotes.
Attached Files
File Type: xml product-markflalternatepostbacks.xml (10.3 KB, 11 views)
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #10  
Old 20 Apr 2016, 06:26
flowers's Avatar
flowers flowers is offline
 
Join Date: Aug 2007
Very kind of you Mark, thanks.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:19.

Layout Options | Width: Wide Color: