1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I show all media in embed preview?

Discussion in 'Media Gallery Support' started by rhodes, Nov 8, 2015.

  1. rhodes

    rhodes Active Member

    When I click on the camera symbol (Media gallery embed) to embed a movie in my post a preview is shown below the textarea showing the movies I've uploaded.

    In my forum all movies are public youtube videos and I would like to show all of them in the embed preview for all registered users. Any ideas how I can do this?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That function applies to your media only.

    It would require custom development to make that available to all users.
  3. rhodes

    rhodes Active Member

    thank you, @Brogan . I'm a developer myself, so maybe I can change this. Any ideas where I can start (template/controller/js)?
  4. Chris D

    Chris D XenForo Developer Staff Member

    XenGallery_ControllerPublic_Media::actionEditorBrowser() is probably a good place to start.

    If you're ok with code modifications, you can probably just get away with removing this line:
    'user_id' => $visitor->user_id,
  5. rhodes

    rhodes Active Member

    Thank you @Chris D . That solved my problem. I also added a line to filter for videos. Perfect!
    Chris D likes this.

Share This Page