Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • Ninja Lead Moderator
    #972054

    Hi,

    I tried to find your threads on the forum but I could not see your thread is discussed with Saguaros.

    Please tell me the problem on your site. I will take a look

    Regards

    zoohayr Friend
    #972078

    Hi,
    thank you so much Ninja Lead for your answer.
    Here the discussion link : https://www.joomlart.com/forums/topic/view-the-videos-after-the-articles/

    Saguaros gave me a modified file default.php page that I can make the video after a display item. except that in my case I work with the page movie.php

    I tried to copy the code added in the page defaut.php but it did not work

    Ninja Lead Moderator
    #972629

    I’ve just jumped this thread and I’m not sure of what do you expect on movie.php file, you can give me the screenshot and description on that. It will help to understand of your request. I will help further

    zoohayr Friend
    #972633

    Hello Ninja

    Here is a screen capture of what I want to do.

    I try to view a video after an item displayed in a page style movie

    the file that your colleague sent me to display the video after an article in default page and not in a page of style movie !

    And here is the code found in the default.php page but then when I added in the page movie.php it did not work ??

    <?php if (($content_type==’video’ && $params->get(‘access-view’))): ?> <div class="item-media col-sm-offset-1 col-sm-10"> <?php if ($content_type==’video’ && $params->get(‘access-view’) ): ?> <div id="ja-main-player" class="embed-responsive embed-responsive-16by9" itemprop="video"> <div id="videoplayer"> <?php echo JLayoutHelper::render(‘joomla.content.video_play’, array(‘item’ => $this->item, ‘context’ => ‘featured’)); ?> <?php endif; ?>

    I’am sorry for my english, i use google traduction 🙁


    1. image
    Ninja Lead Moderator
    #972872

    You can try to replace that code above with my code below

    <?php
        $attribs = new JRegistry ($this->item->attribs);
        $content_type = $attribs->get('ctm_content_type', 'article'); 
    ?>
    
    <?php if (($content_type=='video' && $params->get('access-view')) || ($content_type=='gallery' && $params->get('access-view'))): ?>
    <div class="item-media col-sm-offset-1 col-sm-10">
        <?php if ($content_type=='video' && $params->get('access-view') ): ?>
        <div id="ja-main-player" class="embed-responsive embed-responsive-16by9" itemprop="video">
            <div id="videoplayer">
              <?php echo JLayoutHelper::render('joomla.content.video_play', array('item' => $this->item, 'context' => 'featured')); ?>
            </div>
        </div>
        <?php endif; ?>
    </div>
    <?php endif; ?>
    zoohayr Friend
    #972979

    Hi Ninja,

    thank you so much, your code work very well.

    I’m sorry to bother you but can you tell me where I can adjust the width of the video


    1. image-1
    Ninja Lead Moderator
    #973205

    Hi,
    You can change the width from article, see the screenshot


    1. Screen-Shot-2016-10-04-at-08.54.37
    zoohayr Friend
    #974641

    Hi,
    Unfortunately, I changed the width of 640 to 940, but it did not work 🙁


    1. adm
    2. image-2
    Ninja Lead Moderator
    #974849

    Hi
    In this case, you can provide me the temp. admin login (backend) of your site and FTP account details via private reply. So that l can check further .
    Regards

    zoohayr Friend
    #975284
    This reply has been marked as private.
    Ninja Lead Moderator
    #975304

    Hi
    Try my solution given below to solve the problem

    Open templates/ja_moviemax/css/custom.css file and add new rule

    .item-page .item-media {
        width: 100% !important;
        padding: 0px !important;
        margin: 0px !important;
    }

    Hope it helps .

    zoohayr Friend
    #975621

    Hi,
    the code worked for the media but not for text ! I do not understand why the code ".item-page" does not enlarge text ?

    I find this page "http://www.lartiste.ma/index.php/cinema/238-deepwater-horizon-3-choses-a-savoir-sur-le-film" by an inspector of the elements and this is what I found :
    <div class="col-sm-offset-2 col-sm-8">

    if I change the two numbers 2 and 8 by 0 and 12. the text widens !
    does that remind you of something ?


    1. image-3
    Ninja Lead Moderator
    #975825

    Hi
    My solution above is only for media videos. You can use the CSS style below to solve the content issue .

    Open templates/ja_moviemax/css/custom.css file and copy the CSS style below

    .item-page .col-sm-offset-2 {
        margin-left: 0px;
    }
    
    .item-page .col-sm-8 {
        width: 100%;
    }

    Hope it helps .

    zoohayr Friend
    #976284

    Hi Ninja,
    your code work well for the pages by default but not for the type of movie pages. so I modify your code and it worked well for all pages.

    .item-page .col-sm-8.col-sm-offset-2 {
    width:100%;
    margin-left:0;
    }
    thank you very much Ninja.


    1. image-4
    2. image-2-1
Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 14 replies, has 2 voices, and was last updated by  zoohayr 8 years, 1 month ago.

The topic ‘Message for a previous message’ is closed to new replies.