Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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
  #22  
Old 11-04-2013, 07:20 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good deal, thanks for reporting back.
Reply With Quote
  #23  
Old 07-21-2014, 08:57 PM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to use Usergroup ID's instead of User ID's, use this code:

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

It has worked for me.
Reply With Quote
  #24  
Old 07-21-2014, 10:58 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 thetechgenius View Post
If you want to use Usergroup ID's instead of User ID's, use this code:

Code:
<vb:if condition="in_array($post['usergroupid'], array(X,X,X))">
It has worked for me.
What about what I posted on post 15, https://vborg.vbsupport.ru/showpost....7&postcount=15
Reply With Quote
  #25  
Old 10-14-2014, 08:25 PM
Avros's Avatar
Avros Avros is offline
 
Join Date: Jun 2012
Location: Australia
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great mod and many thanks
Reply With Quote
  #26  
Old 10-14-2014, 09:24 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't forget to mark as installed.
Reply With Quote
  #27  
Old 11-03-2014, 09:31 AM
dolus dolus is offline
 
Join Date: Sep 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using this and changed it so that it is based on usergroup not user id.

But, is it possible to have it change image based on usergroup? Right now i have background for admin, but all the other usergroups have nothing but i want them to have different ones.
Reply With Quote
  #28  
Old 11-03-2014, 10:20 AM
dolus dolus is offline
 
Join Date: Sep 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, it tried to change it myself. I added an additional bit to additional.css "postbit_specific_user2".

Then I added the second IF condition to the postbit_legacy template.

Code:
	<div class="postdetails">
        <vb:if condition="is_member_of($post, 6)">
                        <div class="postbit_specific_user">

<vb:else if condition="is_member_of($post, 2)" />
                        <div class="postbit_specific_user2">

<vb:else />
It partially works. It does show the correct background for the Usergroup ID 2, but it is not in the same position. It puts it further down the postbit legacy. I think this is because they are in seperate DIVs. Any ideas what I would need to do to fix this?
Reply With Quote
  #29  
Old 01-31-2015, 03:48 PM
Eduardo Leon's Avatar
Eduardo Leon Eduardo Leon is offline
 
Join Date: Oct 2009
Location: Peru
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont work in vb 4.2.2 :/
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 01:47 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.09518 seconds
  • Memory Usage 2,282KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (1)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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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