Jump to content

cybromancy

Members
  • Posts

    3
  • Joined

  • Last visited

cybromancy's Achievements

Newbie

Newbie (2/6)

1

Reputation

  1. That was it THANKS. I got this as an error: Call $page->setOutputFormatting(false) before getting/setting values that will be modified and saved. Is that what the 'of' stands for in of(false) ? outputformatting? Call $page->setOutputFormatting(false) before getting/setting values that will be modified and saved.
  2. thanks for the reply I changed my code, but it's still throwing an error $changeRole = $users->get($sanitizer->username('username')); //add role $changeRole->addRole('moderator'); //save changes $users->save($changeRole); Do I need to be using: $users->of(true); or $changeRole>roles->add($roles->get('moderator));
  3. Hi there, going a bit crazy here. Trying to be a user and change the role of another user. //get the user id to change $changeRole = $users->get($sanitizer->username('username'))->id; //add role $changeRole->addRole('moderator'); //save changes $users->save($changeRole); What am I missing? Is it a user permissions setting? All I saw were permission settings for pages. Thanks up front for the help.
×
×
  • Create New...