PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   "How Do I..." Questions (http://www.photoplog.com/forum/forumdisplay.php?f=7)
-   -   Possible to password protect categories? (http://www.photoplog.com/forum/showthread.php?t=33)

dartworth 01-22-2006 11:12 PM

Possible to password protect categories?
 
We are looking for an option to password protect a few categories which will contain "adult" content. I am trying to think of a solution for this, so these images are not shared with the general public...

You can see our old gallery at http://v710.org/pics

It gets a lot of hits (930 pictures in 58 albums and 3 categories with 15 comments viewed 2434419 times) Over 2 million views...

Anyways, you can see the "adult" images thoughout the gallery and I need to control this.

Any ideas?

Morgan 01-24-2006 09:18 AM

The lite version doesn't have category based permission levels, but...
  • In the PHP files try this:
    Code:

    // set XXX to usergroup

    if (is_member_of($vbulletin->userinfo, XXX))
    {
            // show content
    }

  • In the HTML templates try this:
    Code:

    <!-- set XXX to usergroup -->

    <if condition="is_member_of($bbuserinfo, XXX)">

            <!-- show content -->

    </if>



All times are GMT. The time now is 11:23 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.