vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - [OzzModz] Postbit Background For Specific Users (https://vborg.vbsupport.ru/showthread.php?t=301599)

ozzy47 11-04-2013 07:20 PM

Good deal, thanks for reporting back. :)

thetechgenius 07-21-2014 08:57 PM

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.

ozzy47 07-21-2014 10:58 PM

Quote:

Originally Posted by thetechgenius (Post 2507695)
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

Avros 10-14-2014 08:25 PM

This is a great mod and many thanks

ozzy47 10-14-2014 09:24 PM

Don't forget to mark as installed. :)

dolus 11-03-2014 09:31 AM

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.

dolus 11-03-2014 10:20 AM

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?

Eduardo Leon 01-31-2015 03:48 PM

dont work in vb 4.2.2 :/


All times are GMT. The time now is 05:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01037 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete