-
AuthorPosts
-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 29, 2016 at 7:44 am #972054Hi,
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
September 29, 2016 at 8:48 am #972078Hi,
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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 1, 2016 at 2:50 pm #972629I’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
October 1, 2016 at 3:11 pm #972633Hello 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 🙁
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 3, 2016 at 3:07 am #972872You 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; ?>
1 user says Thank You to Ninja Lead for this useful post
October 3, 2016 at 9:13 am #972979Hi 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
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 4, 2016 at 1:55 am #973205October 8, 2016 at 7:23 pm #974641Hi,
Unfortunately, I changed the width of 640 to 940, but it did not work 🙁-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 10, 2016 at 2:25 am #974849Hi
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 .
RegardsOctober 11, 2016 at 8:39 am #975284This reply has been marked as private.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 11, 2016 at 9:29 am #975304Hi
Try my solution given below to solve the problemOpen 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 .
1 user says Thank You to Ninja Lead for this useful post
October 12, 2016 at 9:30 am #975621Hi,
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 ?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 13, 2016 at 1:34 am #975825Hi
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 .
October 14, 2016 at 9:07 am #976284Hi 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.-
AuthorPosts
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 ago.
The topic ‘Message for a previous message’ is closed to new replies.
Jump to forum
Message for a previous message
Viewing 14 posts - 1 through 14 (of 14 total)