Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
[OzzModz] Postbit Background For Specific Users Details »»
[OzzModz] Postbit Background For Specific Users
Version: 1.0.0, by ozzy47 ozzy47 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 08-24-2013 Last Update: 10-09-2013 Installs: 15
Template Edits
Code Changes  
No support by the author.

Another mod brought to you by,


Here is a small modification you can do to have a different background in the postbit, set to specific users, in postbit legacy.

To get this to work, follow the instructions in the attached, Postbit Background For Specific Users.txt file.

I don't have any screenshots at the moment, I'll try to get some. Or if some of you use this mod, please share a screenshot of what you have done.

Show Your Support

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

Comments
  #12  
Old 09-03-2013, 01:38 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, I dunno I will see what I can come up with.

As far as what I had originally said, I think it is a bad idea, as the posts could get awful ugly looking if users were allowed to add the images.
Reply With Quote
  #13  
Old 09-03-2013, 02:04 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I found a way to do it, in your style open your CSS templates, then find editor.css.

Find this bit of code:
Code:
.texteditor.forum .cke_skin_kama textarea.cke_source,
.texteditor.forum textarea {
    color: {vb:stylevar editor_text_color};
    font: {vb:stylevar postbit_font};
    white-space:pre-wrap;
    background: {vb:stylevar editor_background};
}
Replace it with this:
Code:
.texteditor.forum .cke_skin_kama textarea.cke_source,
.texteditor.forum textarea {
    color: {vb:stylevar editor_text_color};
    font: {vb:stylevar postbit_font};
    white-space:pre-wrap;
    background-color: {vb:stylevar editor_background};
    background: url(images/chain_gradient.jpg); no-repeat;
}
Of course change chain_gradient.jpg to your image that you want to use. And load your image that you want to use to your images folder.
Reply With Quote
  #14  
Old 09-03-2013, 03:13 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually not that I think about it, you can have a background image in the editor by editing the stylevar, editor_background by entering the following in the Background Image field:

Code:
url(images/chain_gradient.jpg)
Of course change chain_gradient.jpg to your image that you want to use. And load your image that you want to use to your images folder.
Reply With Quote
  #15  
Old 09-09-2013, 06:08 PM
heyzeus909 heyzeus909 is offline
 
Join Date: Jun 2007
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rather than individual members, can usergroup (s) be employed? For example, I could see using this to watermark postbits with a 'Subscriber' logo for members with paid subscriptions. The idea would be that once someone subscribes, they are automatically put into a "subscriber" usergroup, and thus have their postbits denoted as such. Thereby encouraging others to also subscribe.
Reply With Quote
  #16  
Old 09-09-2013, 08:24 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by heyzeus909 View Post
Rather than individual members, can usergroup (s) be employed? For example, I could see using this to watermark postbits with a 'Subscriber' logo for members with paid subscriptions. The idea would be that once someone subscribes, they are automatically put into a "subscriber" usergroup, and thus have their postbits denoted as such. Thereby encouraging others to also subscribe.
Sure I believe this will work for usergroups.

Change the following line, which is the fist bit in the code.

Code:
<vb:if condition="in_array($post['userid'], array(X,X,X))">
To this:

Code:
<vb:if condition="is_member_of($post, X,X,X)">
X being the usergroupid, if that does not work let me know and I will test it out.
Reply With Quote
Благодарность от:
heyzeus909
  #17  
Old 10-10-2013, 11:08 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no real update, I just removed the code from the first post, and put it into a txt file.
Reply With Quote
  #18  
Old 10-24-2013, 10:50 PM
yardimpaylas yardimpaylas is offline
 
Join Date: Nov 2012
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very good thanks
Reply With Quote
  #19  
Old 10-24-2013, 10:51 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yardimpaylas View Post
Very good thanks
Thanks, don't forget to mark as installed if you are using it.
Reply With Quote
  #20  
Old 11-04-2013, 02:31 PM
Cusski Cusski is offline
 
Join Date: Feb 2012
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can see this on default skin in any of the threads here http://www.sattvhelp.com/forum/forum...p/9-Other-news
Reply With Quote
  #21  
Old 11-04-2013, 02:53 PM
Cusski Cusski is offline
 
Join Date: Feb 2012
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
Sure I believe this will work for usergroups.

Change the following line, which is the fist bit in the code.

Code:
<vb:if condition="in_array($post['userid'], array(X,X,X))">
To this:

Code:
<vb:if condition="is_member_of($post, X,X,X)">
X being the usergroupid, if that does not work let me know and I will test it out.
I have edited in this way, to change from the userid of our bot, to the usergroup that contains the bot, and it works fine
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 06:51 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.09886 seconds
  • Memory Usage 2,310KB
  • 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
  • (7)bbcode_code
  • (3)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete