Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Where are saved user settings "hide"

This discussion is related to the WhosOnline addon.
Hello,
where are saved settting :"Make me invisible? (Will not show you on the list)"
for users? thanks you

i have others question,

this addon is safe and not bugging forum?

Comments

  • This code fetches the data:

    $WhosOnlineModule->GetData(ArrayValue('Plugin.WhosOnline.Invisible', $UserMetaData));

    This code saves the data:

    // Get the data
    $UserMetaData = $this->GetUserMeta($UserID, '%');
    $ConfigArray = array(
    'Plugin.WhosOnline.Invisible' => NULL
    );

    if ($Sender->Form->AuthenticatedPostBack() === FALSE) {
    // Convert to using arrays if more options are added.
    $ConfigArray = array_merge($ConfigArray, $UserMetaData);
    $Sender->Form->SetData($ConfigArray);
    }
    else {
    $Values = $Sender->Form->FormValues();
    $FrmValues = array_intersect_key($Values, $ConfigArray);

    foreach($FrmValues as $MetaKey => $MetaValue) {
    $this->SetUserMeta($UserID, $this->TrimMetaKey($MetaKey), $MetaValue);
    }

    $Sender->StatusMessage = T("Your changes have been saved.");
    }


    both in plugins/WhosOnline/default.php

    I am not familiar with how "UserMeta" works or what it does, but for more help, you should look into that.

    /cd
  • ok is saved in mysql table : gdn_usermeta ;)
    verry thanks
Sign In or Register to comment.