Announcement

Collapse
No announcement yet.

User rights using on a frontpage

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

  • Carnage-
    replied
    We've used user profile fields in conjection with template conditinals to display stuff on the portal to different users. However since you don't want a portal, the easiest way is to do this:

    PHP Code:
    <?php
    include("global.php"); //assuming this page is in the same dir as your forum
    if($bbuserinfo['usergroupid'] == 6)
    {
    //do admin stuff
    }
    else
    {
    //do stuff for none admins
    }

    //do stuff for everyone
    ?>

    Leave a comment:


  • Pocketinfo
    replied
    I have written my own class for this and I access the VB database directly.
    I use this on http://www.pocketinfo.nl

    Until the VB API documents are not ready, I will be using my class. I guess that this is the only way for now until VB 3.5 has gone gold.

    I use the VB settings (public usergroup settings) per user to create a user defined / personal frontpage for each individual user. Also the forum changes accordingly so the user only sees what he or she wants to see.

    Wouter.

    Leave a comment:


  • siNix
    replied
    erhm.... ?

    Leave a comment:


  • siNix
    replied
    whe could need some advice as a proud vb owners..

    Leave a comment:


  • siNix
    replied
    yes, outside vb

    Leave a comment:


  • redalpha
    replied
    No we want it to access a usergroup extern.

    Leave a comment:


  • KingSpade
    replied
    What type of rights are you looking to give them? You can use template conditionals just as you can everywhere else, something like:

    PHP Code:
    <if condition="is_member_of($bbuserinfo,6)">
    show this
    <else />
    show this instead
    </if> 
    The above will show the first bit if they are an admin, if they are not it will show them something else.

    Is that sorta what you are looking for?

    Leave a comment:


  • siNix
    replied
    yust like, www.gamer.nl ( in the upper right you can visit the forum )

    my question is .. how do whe get this?

    Leave a comment:


  • siNix
    started a topic User rights using on a frontpage

    User rights using on a frontpage

    Well ill try to explain,

    Whe are desgining an frontpage that works with vb but whe have a little problem. how do whe give users the same right as on the forum?

    i dont want to use a portal , yust our site
    Do you know how whe can read the user rights and use this in our site? pls help!..

Related Topics

Collapse

Working...
X