Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Specific User Preferences

vanoobvanoob New
edited April 2008 in Vanilla 1.0 Help
hi, i've tried searching for this and played around with various things myself, i believe that sql may be the key to this problem, however my sql scripting skills are next to nothing, if someone can help me it would be great.

Problem: i need to return the value of a specific preferences of a user (not the person who's browsing) for validation, the UserID of the user in questioned is known.

Comments

  • Not had the chance to test it but I think the following should work:
    $getme = $Context->ObjectFactory->NewContextObject($Context, 'UserManager'); $who = $getme->GetUserById($userid); $test = $who->Preference('TestPreference');

    Obviously you would change 'TestPreference' to the name of the preference you are looking for.
This discussion has been closed.