Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Visual Phone Book Public

Visual Phone Book Public

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 83 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    raptor84
    wrote on last edited by
    #1

    Does anyone know of a way to turn off the public option for visual phone book make the phone book private only?

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      Well, not sure about the complete changes, but you have to modify phonebook.php, look for this line:

      $grid->set_condition("context='$context' AND (owner='$extension' OR (owner<>'$extension' AND private='no'))");

      You want to change it to private='yes' so only private records are shown. Then you have to force the private field to be "yes", perhaps with

      $grid->set_default_values("private",'yes');

      I have not tried this, but it might work.

      1 Reply Last reply
      0
      • R
        R
        raptor84
        wrote on last edited by
        #3

        With your help, this is what I did and it works perfect.

        Changed;
        $grid->set_condition("context='$context' AND (owner='$extension' OR (owner<>'$extension' AND private='yes'))");
        To;
        $grid->set_condition("context='$context' AND (owner='$extension')");

        Then it make no difference if they choose private or public. No one can see anything but their own extension phone book.

        This works as well so that all records will be "yes" by default
        $grid->set_default_values("private",'yes');

        A future feature would be great so that each user can decide which extensions can see their visual phone book.

        Thanks for the help!!!

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups