Results 1 to 4 of 4

Thread: How to HIDE the Members List ?

  1. #1
    Join Date
    Feb 2003
    Location
    Saudi Arabia - Jeddah
    Posts
    141

    Default How to HIDE the Members List ?

    I want the members list to be hidden , and shown ONLY for registered users ?



    ::::::::::::::: How

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    well, while it may not be hard, it could be quite involved. the problem is that the templates are not parse by the PHP preprocessor.

    You would need to create a second header.html without the member hyperlink. then use an IF statement based on finding/not finding the username and then displaying the appropriate header.html. You would need to do that for all the templates in the default folder. This is compounded by the header field which you'll see when you go thru. but if you never use the header, it would just be tedious.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Feb 2003
    Location
    Saudi Arabia - Jeddah
    Posts
    141

    Default

    Needs [ programming ] see you later


    thanks esm for your support !

  4. #4
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    you could try the following:

    Just before DisplayTemplate($theme_path."header.html","\$title "); in the user_search.php file, add the following

    $users_obj = new clsUsers;
    $users_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassw ord,$dbName);
    $users_obj->table_name = "idx_users";

    if(!$users_obj->GetUserAuthentication()==0){
    $back_url = urlencode("user_search.php");
    header("Location: login.php?f=1&b=$back_url");
    The menu option will still be there but at least they will need to login.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. Member's homepage error
    By yesonline in forum v5.x
    Replies: 2
    Last Post: 11-15-2004, 07:38 AM
  2. Replies: 4
    Last Post: 12-19-2001, 03:22 PM
  3. Mailing List Error
    By Hart_House in forum v5.x
    Replies: 3
    Last Post: 12-07-2001, 06:48 PM
  4. To do list for indexu v.3 beta
    By dody in forum Announcements
    Replies: 0
    Last Post: 10-16-2001, 06:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •