The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how can i restrict sideblocks by usergroup?
just noticed there is no options for this...a bit amazed, but does anyone know an easy way or if there is a plug in to support it?
wishing to make a sideblock only to show for users not logged in....also curious about how it would be done manually, with an obvious "if condition" solution....like where i would place it, how to hook it or what? could be some interesting learning tests, but im open to an easy solution lol ;P thanks |
#2
|
||||
|
||||
Make a new template call it
block_html_nonmembers In that template add the following Code:
<vb:if condition="is_member_of($bbuserinfo, 1)"> <li> <div class="block smaller" id="members_not_logged_in"> <div class="blocksubhead"> <a class="collapse" id="collapse_block_html_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" width="16" height="16" id="collapseimg_html_{vb:raw blockinfo.blockid}"/></a> <span class="blocktitle">{vb:raw blockinfo.title}</span> </div> <div class="widget_content blockbody floatcontainer"> <div id="block_html_{vb:raw blockinfo.blockid}" class="blockrow"> {vb:raw content} </div> </div> </div> <div class="underblock"></div> </li> </vb:if> |
#3
|
|||
|
|||
and I assume if you want to make it something that does not show for a certain usergroup (like a banner ad) - can you use this
Code:
<vb:if condition="!is_member_of($bbuserinfo, XX)"> |
#4
|
||||
|
||||
|
#5
|
|||
|
|||
Hi,
is there a way to get the ad manager to recognise the sideblocks so we can use all those conditionals already selectable? is this a simple template edit? appreciate any guidance you can offer, if you will help that ugly IggyP, can you help me also please, i am much better looking that him.. lol regards P |
#6
|
|||
|
|||
Quote:
that is a better idea tho, i have to admit......it is surprising those sideblock do not have permissions like the ad manager...or forums even...but there is alot of nice options in there if they could be applied without a major brain surgury... thank you cheechdogg for sharing that, it may still come in useful but now im wondering about this other approach idea...wouldnt that make a prime addon? maybe it is buried somewhere hmm |
#7
|
|||
|
|||
you really don't need to you worry about the ad manager in the AdminCP, you can create the ad block as CAG mentioned and build the block and reference the Ad code directly on the sidebar (or if you are using this - then use the <!--@vbbanners:XX@-->
|
Благодарность от: | ||
CAG CheechDogg |
#8
|
|||
|
|||
Quote:
using the modified block CAG provided does not give any of the options the ad manager has...only the one....if you follow my meaning.... its not a worry to HAVE to use ad manager, its that it would be a huge benefit if we were able to...adding a rotator wont do anything toward adding those permission options will it? i know alot can be manually added with if conditions but that is a powerful logic pistils made, i cant ignore it...hmm |
#9
|
|||
|
|||
what I mean is if you are using the modification referenced in my previous post, you don't need to use the ad manager in AdminCP (you can still leverage the Ad Location templates in the Style manager). If you add in the conditional VB if statement, you will be able to either include or exclude usergroups, depending on what you are looking to do.
|
#10
|
|||
|
|||
Quote:
which is what seems like the thing to try and do here should be, for simplicity sake....or to put it another way....why would you want to individually and manually add if conditions when there is a panel full of them already in gui form in the ad manager? have you looked at the ad manager? perhaps you dont get what we are saying.....the options are already there....this isnt about ad manager placement or rotations, it is in attempt to apply "ad manager permissions" to a side block module(ad).... that help at all? or confuse more lol |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|