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

Reply
 
Thread Tools
Post Body CSS For Specified Users Details »»
Post Body CSS For Specified Users
Version: 1.1, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.2.x Rating:
Released: 04-04-2017 Last Update: 04-05-2017 Installs: 12
Uses Plugins Auto-Templates
Translations  
No support by the author.

Overview:

This product will allow you to specify users by usergroup and/or username to be given CSS to their postbit post body content. You may also select active forums in which the product is active.



Updates:

Version 1.1:
  • Added option to preserve text color within quote/code blocks.
  • CSS applied to post previews as applicable.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

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



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Post Body CSS For Specified Users v1.1.zip (4.6 KB, 38 views)

Screenshots

File Type: jpg markfl_pbsu_post.jpg (54.8 KB, 0 views)
File Type: jpg markfl_pbsu_acp.jpg (101.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
blind-eddie, elsa23

Comments
  #2  
Old 04-06-2017, 05:42 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice Mark, is there a way not to change the quote message from other user in the post? that is included. As i see it effect the quotes to.
Reply With Quote
Благодарность от:
MarkFL
  #3  
Old 04-06-2017, 03:36 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - Version 1.1:
  • Added option to preserve text color within quote/code blocks.
  • CSS applied to post previews as applicable.
Reply With Quote
  #4  
Old 04-06-2017, 05:40 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now it only needs to have the ability to let a user choose a picture to use as background and permission checks to see if their group has that option available.
Reply With Quote
  #5  
Old 04-06-2017, 05:51 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
Now it only needs to have the ability to let a user choose a picture to use as background and permission checks to see if their group has that option available.
You could define the appropriate CSS for any user to do that as is. This product doesn't allow users to define their post body CSS (for obvious reasons), this is done by an admin within the product settings.
Reply With Quote
  #6  
Old 07-01-2017, 09:27 AM
MajorKokosnuss MajorKokosnuss is offline
 
Join Date: Apr 2014
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to make the same thing for Borders? I have the issue, that the text gets a border aswell.

Reply With Quote
  #7  
Old 07-02-2017, 04:18 AM
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Location: Woodland Hills, Ca
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about CMS posts? Only for Showthread?
Reply With Quote
  #8  
Old 07-08-2017, 01:32 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MajorKokosnuss View Post
Is it possible to make the same thing for Borders? I have the issue, that the text gets a border as well.
Without knowing what you have in the product settings, or a link to the page in question, I can't provide help.

Quote:
Originally Posted by concepts View Post
What about CMS posts? Only for Showthread?
Yes, as it is written, this product does not affect CMS.
Reply With Quote
  #9  
Old 11-20-2017, 11:05 PM
BrettC Frontier BrettC Frontier is offline
 
Join Date: Jun 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Minor bug...

Code:
all|5,6,9|background:rgba(18, 18, 18, 0.90) url('https://forum-cdn.domain.tld/BackgroundFade1.png')
The background (and all of the css for that matter) is duplicated in postbit_legacy.
Attachment 156735


Couple other things...

1) Is there a way to add in a user-selectable toggle on reply/post to show/hide said markup?


2) Possible for a third input row in the ACP for direct CSS tagging?

Essentially, rather inline CSS like the addon does, it would add in a blurb to the class="" element within the html div called 'postbody'. In the ACP, would end up with something like this as a third input row: all|5,6,9|flare_moderator. Where flare_moderator is taken as literal text and injected to the <div class="postbody" section, to the right of postbody, and left of the double quote.

Attachment 156736
Reply With Quote
  #10  
Old 11-21-2017, 12:29 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BrettC Frontier View Post
Minor bug...

Code:
all|5,6,9|background:rgba(18, 18, 18, 0.90) url('https://forum-cdn.domain.tld/BackgroundFade1.png')
The background (and all of the css for that matter) is duplicated in postbit_legacy.
Attachment 156735
In the plugin titled "Set User As Specified If Applicable" comment out the line:

PHP Code:
        //$post['message'] = html_entity_decode('<div style="' . $added_css . '">') . $post['message'] . html_entity_decode('</div>'); 
This should fix the issue with that.

Quote:
Originally Posted by BrettC Frontier View Post
Couple other things...

1) Is there a way to add in a user-selectable toggle on reply/post to show/hide said markup?


2) Possible for a third input row in the ACP for direct CSS tagging?

Essentially, rather inline CSS like the addon does, it would add in a blurb to the class="" element within the html div called 'postbody'. In the ACP, would end up with something like this as a third input row: all|5,6,9|flare_moderator. Where flare_moderator is taken as literal text and injected to the <div class="postbody" section, to the right of postbody, and left of the double quote.

Attachment 156736
At the moment, I don't have any plans to add any features to this product. I don't see it as being worth developing any further.
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 07:08 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.13358 seconds
  • Memory Usage 2,346KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete