• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] New usergroup access?!

Started by ipeci,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ipeciTopic starter

Hallo ,

i have created a new premium usergroup on my database,

how to fix that the futured videos, only the premium group members can watching and all other groups like member or author to have NO access ?

thankl you
  •  

PHPVibe A.

If(is_user() && (user_group() == x)) {
show it
}


where x is your group's id.

You may want to allow admins and mods as well:

If((is_user() && (user_group() == x)) || is_moderator()) {


Also
$video->featured > 0
for video is featured check.

ipeciTopic starter

Hi Alex
Thank you, it works all perfect the way I want it, except for the problem on who you as the visitor clicks futured video, the promotion is that you should first login ... This is good :-)
But after the visitor does log in, and click the futured video,  its coming a blank page, really should come back a note and inform the user that only premium users can look at this!

Friendly greetings
  •  

PHPVibe A.

#3
But that depends how you coded it and where you've placed it, I've just given you the if conditions, you can add an else for the users not having this.

For example you can wrap the embed code in:
If($video->featured > 0 && ((is_user() && (user_group() == x)) || is_moderator())) {
echo $embedvideo;
} elseif($video->featured < 1) {
echo $embedvideo;
}
else {
echo "This is video is premium...bla bla bla";
}

ipeciTopic starter

Yes thats right, and thank you for great helping
but if i know this doit my self i dont ask you der alex .
Im have other specifikatoons lernin ,but not cms :-)

Thank youuuu ar the best  ::)
  •  

 

Similar topics (7)

Important Announcement: PHPVibe Video Sharing CMS End of Life

Started by Marius P.


Replies: 1
Views: 32283

The problem of video viewing PHPVibe 5.0

Started by Nayn


Replies: 25
Views: 59416

embed video does not work on v5

Started by neospider69


Replies: 6
Views: 42225

when slecting to unpublish music mp3 - next page says unpublished video ?

Started by spirog


Replies: 2
Views: 1447

insite ads issue when selecting above/below video player location

Started by georgepanaitescu


Replies: 3
Views: 16595

Video that I've uploaded needs to have that value in admin to upload

Started by spirog


Replies: 4
Views: 1296

video,playlist,images, etc. (frontend) select all deselect all reselect all

Started by spirog


Replies: 3
Views: 1753