vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how to disable banner for usergroup member (https://vborg.vbsupport.ru/showthread.php?t=176412)

anakayam.us 04-17-2008 07:51 AM

how to disable banner for usergroup member
 
hello,im insert script html for banner,
and i have 5 usergroup member.
i want disable script banner for 1usergroup.

maybe anyone can help me to solve my problem?

thanks

Dismounted 04-17-2008 09:41 AM

Code:

<if condition="!is_member_of($vbulletin->userinfo, X)">YOUR CODE</if>
Where X is the usergroup ID.

anakayam.us 04-18-2008 12:58 AM

yah thats work,thanks buddy

MrD3SAi 02-28-2009 10:41 AM

A question regarding this thing. Maybe it is answered but I couldnt find it
I want to add different usergroup banners for different usergroups in postbit. If possible they keep changing.
Thanks in advance.

Dismounted 02-28-2009 12:17 PM

Are you talking about random banners? If so - there are already threads about them - search for them. :)

MrD3SAi 03-01-2009 06:19 PM

Random banners in header?
Na. I am not talking about that. I am talking about the banners in postbit_legacy. Lets see your post above. Between your name, Dismounted, and details like join date and location. A banner there.
I really couldn't find anything on vb.org. Would you mind giving a link please. Thansk in advance.

Mr-Moo 03-01-2009 06:30 PM

I understand,

Find the following code in your template postbit legacy:
Code:

<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Replace with something similar to this:
Code:

<if condition="is_member_of($post, #)">
<td class="postbit" id="td_post_$post[postid]">
<else />
<td class="alt2"></if>

The red "#" is the usergroup.

MrD3SAi 03-02-2009 04:03 PM

^^tanx alot
Will check it and see if this is what I need.
Just a question:
Why can't I see a code link to the image I want to show in postbit in your above code?? Where does the code pick the image from for postbit??

Dismounted 03-03-2009 04:47 AM

What are you talking about? What image?

MrD3SAi 03-03-2009 10:24 AM

Check the following image. The position where I want a banner is noted in the following image in your reply's postbit
http://img160.imageshack.us/img160/5097/bannerg.th.jpg

Thanks in advance.

--------------- Added [DATE]1236101252[/DATE] at [TIME]1236101252[/TIME] ---------------

Any update by anyoen on this?


All times are GMT. The time now is 08:21 PM.

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.01979 seconds
  • Memory Usage 1,729KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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