Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Where are saved user settings "hide"

edited October 2010 in Vanilla 2.0 - 2.8
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

  • Options
    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
  • Options
    edited October 2010
    ok is saved in mysql table : gdn_usermeta ;)
    verry thanks
Sign In or Register to comment.