Announcement

Collapse
No announcement yet.

How can I hide annoucements from guests?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Steve Machol
    replied
    That template is definitely in vB 3.5.x. Please start your own thread if you have further questions.

    Leave a comment:


  • streetjob
    replied
    Originally posted by harmor View Post
    Forum Display Templates -> forumdisplay_announcement

    At the very top add
    <if condition="$bbuserinfo[userid] != 0">

    At the very bottom add
    </if>
    I do not see forumdisplay_announcement.

    Is this still the way to block guests from viewing announcements?

    Thanks

    Leave a comment:


  • feldon23
    replied
    Need some more bbCodes built into vB.

    Leave a comment:


  • Zachery
    replied
    Originally posted by feldon23
    $bbuserinfo['userid'] will never be 0. It will either be null or 1+.

    <if conditional="$bbuserinfo[userid]"> is an implied isset().
    Not true, if the user is not registered, $bbuserinfo[userid] is ouput to 0. Try it sometime feldon.

    Leave a comment:


  • feldon23
    replied
    [strike]$bbuserinfo['userid'] will never be 0. It will either be null or 1+.

    <if conditional="$bbuserinfo[userid]"> is an implied isset().[/strike]
    Last edited by feldon23; Wed 1 Feb '06, 10:05am.

    Leave a comment:


  • jilly
    replied
    thanks

    thank you all !! that did it

    Leave a comment:


  • Zachery
    replied
    $bbuserinfo[userid] will always be avaible and is probally best used.

    Leave a comment:


  • conqsoft
    replied
    That should cover anyone with an account. $show[guest] will be true if they are not registered.

    Leave a comment:


  • harmor
    replied
    Originally posted by conqsoft
    <if condition="$show[member]"> is a shorter way to do it.
    But isn't that only for registered members not admin or s-mods?

    Leave a comment:


  • conqsoft
    replied
    <if condition="$show[member]"> is a shorter way to do it.

    Leave a comment:


  • harmor
    replied
    Forum Display Templates -> forumdisplay_announcement

    At the very top add
    <if condition="$bbuserinfo[userid] != 0">

    At the very bottom add
    </if>

    Leave a comment:


  • jilly
    replied
    bump

    any other ideas for this?
    It's sort of annoying, because I have the board shut down to guest viewing, yet the announcements are still visible to guests and therefore search engine spiders..

    Leave a comment:


  • jilly
    replied
    okay, I can do that...

    what template should I edit, and where? I tried editing announcements template, and tried wrapping the whole thing in


    <if condition="$bbuserinfo['userid'] == 0">

    </if>

    and that didnt work - thenI tried just wrapping the

    $announcebits

    and that didnt work either - do you know what template and what part I should wrap the conditional around?

    Leave a comment:


  • Steve Machol
    replied
    There is no built-in option to do this. It can probably be done with conditionals. Here is the online documentation for using template conditionals:

    http://www.vbulletin.com/docs/html/m...e_conditionals

    Leave a comment:


  • jilly
    started a topic How can I hide annoucements from guests?

    How can I hide annoucements from guests?

    How can I change things so that announcements are not viewable to guests?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X