View Full Version : how to disable banner for usergroup member
anakayam.us
04-17-2008, 07:51 AM
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
<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:
<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:
<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 (http://img160.imageshack.us/my.php?image=bannerg.jpg)
Thanks in advance.
--------------- Added 1236101252 at 1236101252 ---------------
Any update by anyoen on this?
Mr-Moo
03-04-2009, 06:39 PM
Have you tested out what I wrote? If so what were the results?
Brandon Sheley
03-04-2009, 07:06 PM
Why don't you use the built in ad_locations?
they have them after the post, inside the post and before the post.
ps.. that screenshot is very small, can you upload it to photobucket or something different?
Mr-Moo
03-04-2009, 07:11 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??
And FYI - It won't be a link to the image, it will be the below template code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
MrD3SAi
03-05-2009, 04:35 PM
Why don't you use the built in ad_locations?
they have them after the post, inside the post and before the post.
ps.. that screenshot is very small, can you upload it to photobucket or something different?
The image is clickable. I posted that because for some people the resoulution might be big and there browsing might lag. That is why I used thumbnail. If you click on it, you will see the full image.
I will try your way too.
--------------- Added 1236278204 at 1236278204 ---------------
I understand,
Find the following code in your template postbit legacy:
<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:
<if condition="is_member_of($post, #)">
<td class="postbit" id="td_post_$post[postid]">
<else />
<td class="alt2"></if>
The red "#" is the usergroup.
Not working my friend. Thanks for your help.
Mr-Moo
03-05-2009, 05:04 PM
I sure hope you did not copy that down verbatim, because it would be incorrect. These are both examples used on another template which in return will not display correctly on yours. I was under the impression you would be editing these
You will also need to make a style in your CSS to reflect "class alt2".
What are your levels and experiences in VB and web development? This will help me better prepare my future answers for you.
Thank you!
MrD3SAi
03-06-2009, 06:27 PM
Thanks MrMoo
Well currently I am learning php. My main filed is though hardware but I have recently gained too much interest in vB. It will be better if you can give some detailed answer.
Thanks in advance.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.