Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Post Background Color Details »»
Post Background Color
Version: 1.03, by Marco van Herwaarden Marco van Herwaarden is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-05-2005 Last Update: 07-16-2006 Installs: 40
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Post Background Color - Version 1.03b

Hack: Post Background Color
Version: v1.03b
Author: MarcoH64

Description
Create Color Schemes, set specific colors for different styles to match the styles colors the best. Give usergroups permissions to attach
a color scheme as background to a post. Great to allow Admins/Moderators to highlight important posts in a thread for example.

Features
- Create Color Schemes
- Override the default color for a Color Scheme for each Style if needed.
- User Usergroup permissions to allow/deny the use of background colors
- On posting/editing, optionally choose a background color
- Choose (vB Options) if you want the background color to be applied to the messagetext, the postbit info, or both.
- Create background images or gradients (thanks to applehat for the idea )

Changelog:
17-7-2006 v1.03b
- Fixed uninstall code. Space was missing in the DELETE FROMdatastore.
(if you have currently installed 1.03, then please do an overwrite install with version 1.03b prior to uninstallation. If you are already uninstalling with 1.03 and run into a SQL-error, see post https://vborg.vbsupport.ru/showpost.php?p=1032141&postcount=33 to fix an aborted uninstall)
7-12-2005 v1.03
- Increased size of colorcode in tables to support larger values so we can also use images and gradients
- Changed the postbit from background-color to background style attribute to support the above.
7-12-2005 v1.02
- Removed &nbsp from dropdown menu
- Fixed bug where colorscheme could not be reset to 'None' once a color was set.
5-12-2005 v1.01
- Fixed missing new column for post table in install routines.
5-12-2005 v1.00
- Initial Release

Notes
Copyright ?2005 MarcoH64
This Modification may not be redistributed in whole or significant part or changed without prior agreement of author.
Please don't forget to click Install.
If you like this work and would like to support the author, donations are always welcome at Paypal: Marcoh64 AT gmail.com

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-07-2005, 07:55 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.03 released:
7-12-2005 v1.03
- Increased size of colorcode in tables to support larger values so we can also use images and gradients
- Changed the postbit from background-color to background style attribute to support the above.

To upgrade, simply choose an overwrite install.
Reply With Quote
  #23  
Old 12-07-2005, 07:57 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by applehat
You know what would be a nice add on? Not just being able to set a background color, but being able to set a background image...and how to repeat and align it...

Or can this already be done by doing url("blah")?
It does now.
Install version 1.03 and try for example:
Code:
#869BBF url(images/gradients/gradient_tcat.gif) repeat-x top left
or:
Code:
#869BBF url(images/misc/vbulletin3_logo_grey.gif) repeat-x top left
Reply With Quote
  #24  
Old 02-03-2006, 01:58 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 stupid questions:

- will this work on the latest version?

- does this mean I can set a different background for usergroups a, b, c & d? Can I prevent the user changing that?

Okay I liked one more:

- I plan to use this with secondary usergroups, how will that work?

Registered = style a
|-- public usergroup b = style b
|-- public usergroup c = style c

Can I have a default in case of conflict like them being part of 2 usergroups?

thanks
Reply With Quote
  #25  
Old 02-03-2006, 03:13 AM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
It does now.
Install version 1.03 and try for example:
Code:
#869BBF url(images/gradients/gradient_tcat.gif) repeat-x top left
or:
Code:
#869BBF url(images/misc/vbulletin3_logo_grey.gif) repeat-x top left
??????

is this suppose to allow the allowed usergroup to use an IMaGe instead of colors ?

if so, where are we supposed to add/put this ?
or what needs to be edited to have that option
( make instruction n00b proof )


Thanks in advance
Reply With Quote
  #26  
Old 02-03-2006, 07:16 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reeve of shinra
- will this work on the latest version?
Not tested by me, but i see no reason why not.
Quote:
Originally Posted by Reeve of shinra
- does this mean I can set a different background for usergroups a, b, c & d? Can I prevent the user changing that?
It should merge the permissions to use Color Schemes if using seconday usergroups. Not tested this now since i am not at my development PC.
Quote:
Originally Posted by Reeve of shinra
Can I have a default in case of conflict like them being part of 2 usergroups?
There is no option to force a (default) color. Default is always None, in which case it will be a regular post.
Quote:
Originally Posted by hiiped
is this suppose to allow the allowed usergroup to use an IMaGe instead of colors ?
Yes you can use this to put a simple background color, an image or even a gradient. This is plain HTML, sorry i can't help you much with that since my HTML knowledge is also limited. Maybe someone else can post some nice examples.
Reply With Quote
  #27  
Old 03-04-2006, 01:36 AM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im trying to edit to allow user to add an image from a URL as background in post

< no success *sighs* >

where are the HTML geeks ?
Reply With Quote
  #28  
Old 07-15-2006, 11:52 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have tried installing this but not working for me

So after trying to un-install the product I am getting this error:

Code:
Database error in vBulletin 3.5.4:

Invalid SQL:
ALTER TABLE post DROP COLUMN mh_pbc_colorschemeid;

MySQL Error  : Can't DROP 'mh_pbc_colorschemeid'; check that column/key exists
Error Number : 1091
Date         : Saturday, July 15th 2006 @ 08:48:54 PM
Script       : http://www.************.com/admincp/plugin.php
Referrer     : http://www.************.com/admincp/plugin.php?do=productdelete&productid=mh_pbc&s=
IP Address   : ************
Username     : ****
Classname    : vb_database
Thank you for any help
Reply With Quote
  #29  
Old 07-16-2006, 06:57 AM
chkdgate's Avatar
chkdgate chkdgate is offline
 
Join Date: Jun 2006
Location: US
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^I'm interested in this as well but didn't the author mention that he wasn't sure it worked on the latest version?(3.5.4)
Reply With Quote
  #30  
Old 07-16-2006, 01:08 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chkdgate
^^I'm interested in this as well but didn't the author mention that he wasn't sure it worked on the latest version?(3.5.4)
Yeah Im not sure but it does not work for me on 3.54 and I cannot remove the product now
Reply With Quote
  #31  
Old 07-16-2006, 04:04 PM
chkdgate's Avatar
chkdgate chkdgate is offline
 
Join Date: Jun 2006
Location: US
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try reverting your templates?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 03:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04505 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete