WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Member upload video

[Resolved] Member upload video

Viewing 15 replies - 1 through 15 (of 31 total)
  • karthikeyani
    Member

    @karthikeyani

    Hi,

    By default our plugin will support add videos option for the following user roles “Editor”, “Administrator”, “Super User”. To enable this option for “subscriber”, Please install “User Role Editor” plugin and set the access level to “Edit_pages” for subscriber and open the file in the path \wp-content\plugins\contus-video-gallery\admin\views\video\video.php and find the code “<div class=”admin_short_video_info”>”. Now add the following code above “<div class=”admin_short_video_info”>”

    <?php
    function get_current_user_role() {
    global $current_user;
    get_currentuserinfo();
    $user_roles = $current_user->roles;
    $user_role = array_shift($user_roles);
    return $user_role;
    };
    $user_role = get_current_user_role();
    if($user_role!=’subscriber’){
    ?>

    No w close the curly braces after the form tag “</form>”

    <?php } ?>

    If you have any other queries feel free to contact us.

    Hi Karthikeyani,
    I did it and it work very well.
    How can I move the member add video page to front folder?
    (Or Show videos page only)
    Thank u so much.

    karthikeyani
    Member

    @karthikeyani

    Hi,

    Please note that, you cannot move the member add video page to front folder. Add video page will be displayed in admin panel and we can restrict the pages to the members using user role. If you have used the above mentioned steps, the restricted users can access only the add video page. If he try to access the other pages, it will display restricted access error message.

    If you have any other queries feel free to contact us.

    Hi,
    When I do with your step.
    It works ok, But the Page menu still show. How can I hide it?
    And when user add video. The add category button should be hided.

    Thank u

    karthikeyani
    Member

    @karthikeyani

    Hi,

    Please open \wp-content\plugins\contus-video-gallery\admin\views\video\addvideo.php and find onclick="playlistdisplay()". Now you can find the below code.

    <a style="cursor:pointer" onclick="playlistdisplay()"><?php _e('Create New', 'video_gallery') ?></a></h4>

    Replace with the following code.

    <?php
            function get_current_user_role() {
        global $current_user;
        get_currentuserinfo();
        $user_roles = $current_user->roles;
        $user_role = array_shift($user_roles);
        return $user_role;
    };
    $user_role = get_current_user_role();
    if($user_role!='subscriber'){
    ?>
    <a style="cursor:pointer"  onclick="playlistdisplay()"><?php _e('Create New', 'video_gallery') ?></a>
    <?php } ?>
    </h4>

    Now “Add category” will be restricted to the members. But please note that you cannot hide the menu. When you click on the menu, it will display “All Videos” Page only.

    Hi,
    My mean is the Pages management page ( on left menu) should hide. Show only All Videos page.
    Because I still see it appear.

    Thank 😀

    karthikeyani
    Member

    @karthikeyani

    Hi,

    It is not possible to hide the “video gallery” menu in the left side http://screencast.com/t/nBBlXgTs5D4e. If you try to hide the menu, then member cannot have an option to go to add videos page.

    Hi K,
    I would like to hide the “Pages” menu item above “Video Gallery” item.
    http://content.screencast.com/users/duyhoa07k4038/folders/Images/media/3787ef1e-5f8b-49ed-92e3-cf657c1e069c/2013-10-23_1149.png

    You can see the orange rectangle

    Thank

    karthikeyani
    Member

    @karthikeyani

    Hi,

    Please open \wp-content\plugins\contus-video-gallery\hdflvvideoshare.php and find function videogallery_addpages() { inside the function you can find the below code.

    add_menu_page("Video Gallery", "Video Gallery", 'edit_pages', "video", "videogallery_menu", APPTHA_VGALLERY_BASEURL . "/images/apptha.png");
        add_submenu_page("video", "Video Gallery", "All Videos", 'edit_pages', "video", "videogallery_menu");
        add_submenu_page("", "New Videos", "", 'edit_pages', "newvideo", "videogallery_menu");

    replace with the following code.

    add_menu_page("Video Gallery", "Video Gallery", 'read', "video", "videogallery_menu", APPTHA_VGALLERY_BASEURL . "/images/apptha.png");
        add_submenu_page("video", "Video Gallery", "All Videos", 'read', "video", "videogallery_menu");
        add_submenu_page("", "New Videos", "", 'read', "newvideo", "videogallery_menu");

    Please deactivate the “User Role Editor” plugin in your admin and check.

    I fixed it.
    Thank u so much, karthikeyani

    karthikeyani
    Member

    @karthikeyani

    Hi,

    Happy to hear that you have fixed it. If you have any other queries feel free to contact us.

    Saptadeep Bhowmik
    Member

    @saptadeep-bhowmik

    Thank you, Karthikeyani.

    But I have two questions :

    1. What you have said,by that a user can publish or un-publish anyone else’s video.
    What is the solution for that ?

    2. Can we use a moderator here, so that any user can flag any video if found inappropriate and moderator can act upon?

    karthikeyani
    Member

    @karthikeyani

    Hi,

    Please note that user cannot edit, publish/ Unpublish and view other’s video. Admin only can access the all the videos. We are on the progress of integrating member upload option in our plugin. So, this feature will be available in our next release.

    Saptadeep Bhowmik
    Member

    @saptadeep-bhowmik

    Thank you, Karthikeyani.

    But when a user is going to the video gallery, then all the videos posted by all users are available for view at the bottom of the page.

    Also, they have option to publish or un-publish them.

    i cant seem to get this plugin to work.

    1. How do i allow registered user to upload videos to the gallery
    2. How do i get the videos to play? the videos in the demo just takes me back to the home page of my site

    PLEASE HELP!!!

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘[Resolved] Member upload video’ is closed to new replies.