vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Style and Graphics Requests (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=226)
-   -   Backround at Postbit (https://vborg.vbsupport.ru/showthread.php?t=210592)

saydil 04-07-2009 07:16 PM

Backround at Postbit
 
I have Vbulletin version 3.81.
I would like to use a backround at the postbit area(where the avatar and all the other user info exist).
How can I do that?

Thank you for your time.

BBR-APBT 04-08-2009 12:08 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=203850&highlight=background+postb it" target="_blank">https://vborg.vbsupport.ru/showt...ground+postbit</a>

saydil 04-08-2009 02:35 PM

Thank You so much.

saydil 04-10-2009 07:26 PM

Thank you for the reply. But I don't want to use different background for each member group, just the same for everyone. How could I do that?

Theater 04-12-2009 05:26 PM

Simply add all the usergroups IDs separated by a comma. You'll only have to do it once unless you add a usergroup of course.

So from a step listed in the background postbit mod (linked above):

Code:

<if condition="is_member_of($post, #)">
<td class="postbit" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>

So where the red # is, add in your usergroups. Default IDs:

1 = Unregisted / Not Logged In
2 = Registered
3 = Users Awaiting Email Confirmation
4 = (COPPA) Users Awaiting Moderation
5 = Super Moderator
6 = Administrators
7 = Moderators
Plus whatever custom usergroup ID you have..

So to add them all:

Code:

<if condition="is_member_of($post, 1,2,3,4,5,6,7)">
<td class="postbit" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
<else />
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>

I'm not sure if there is a PHP wildcard, but that above should work fine for you.


All times are GMT. The time now is 11:33 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.02192 seconds
  • Memory Usage 1,715KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete