• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] USER Group not working

Started by bini,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

biniTopic starter

Hello,

First of all Great too for ppl who would like to share there video....So here is my issue..

I got this error trying to edit the user to assign a group level.

Warning: Invalid argument supplied for foreach() in /home/orotube/public_html/moderator/edit-user.php on line 60


And also this is what i see on line 60

foreach ($groups as $gp) {
?>
<label class="radio">
<input type="radio" name="group_id" id="group2" class="styled" value="<?php echo $gp->id; ?>" <?php if($profile->group_id <> $gp->id) {} else { ?> checked <?php } ?>><?php echo $gp->name; ?>
</label>


and Here is the screenshot

  •  

PHPVibe A.


biniTopic starter

Hello Again,

Yes i have been looking at that forum post but i am not a good programmer and i may need a clear way to fix it. May be tell me where to go and do the fix...

Thanks
  •  

PHPVibe A.

Go to phpmyadmin, open your database and run this via the sql tab:

INSERT INTO `#db-prefix#users_groups` (`id`, `name`, `admin`, `default_value`, `access_level`) VALUES
(1, 'Administrators', 1, 0, 3),
(4, 'Members', 0, 1, 1),
(3, 'Author', 0, 2, 2),
(2, 'Moderators', 0, 2, 2);


BEFORE change #db-prefix# to your prefix of table, vibe_, or what you have chosen.

Similar topics (7)