Keyword

video position k2 article

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106542 by marco
video position k2 article was created by marco
Hello guys a question how do I put the see the article by k2 first of the article as it does for photos rather than later?


here is the link of the page: www.tgtourism.tv/news/item/2100-altro-articolo-di-prova-video.html


and I wish the video could be seen between the title and the article ..


here is the link to the correct page with a photo and I want to come so even with the video for the link above: www.tgtourism.tv/news/item/2096-prova-articolo-tg-tourismo243.html


can you tell me what code I need to enter and / or what I need to change?

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106543 by marco
Replied by marco on topic Re: video position k2 article
PLEASE HELP ME!!!

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 6 months ago #106544 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: video position k2 article
Hi marco,

You can do it with moving the existing code to display the video up above the intro or full text area. It's in item.php file. Just do a template override.

Or you can achive this by using the JW All Videos plugin, just use the plugin syntax like {youtube}videoID{/youtube}

K2 Rocks \m/

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106545 by marco
Replied by marco on topic Re: video position k2 article
could you tell me how to do? that is where I have to insert the code where in the file item.php

ps. I've done the verride to put thumbnails of the video on the news of the site, then help me to fix this code?

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 6 months ago - 12 years 6 months ago #106546 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: video position k2 article
Please zip and attach your existing item.php file here

It's basically, moving this line of code...
					
K2 Rocks \m/

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106547 by marco
Replied by marco on topic Re: video position k2 article
here is the file you can put it to me the code as it should be, because I did not understand where I have to insert ... thanks

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106548 by marco
Replied by marco on topic Re: video position k2 article
lhere is the file
Attachments:

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 6 months ago #106549 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: video position k2 article
the file is corrupted :( i can't unzip

K2 Rocks \m/

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 6 months ago #106550 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: video position k2 article
You can copy the code above and add it in line 227 of item.php
					
K2 Rocks \m/

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #106551 by william white
Replied by william white on topic Re: video position k2 article
@kannan He is using gk_twn template. I put category_item.php in an override called "videoORimage"
attached is the image.php file from that directory.
Im at jwc, Ill check back in later. Attached is the item.php

Attachment not found

Attachments:

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 6 months ago #106552 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: video position k2 article
@William Roger that. Have fun at JWC :) I've edited the file that you attached.

Marco,

You can download and use the attached item.php file.

Attachment not found


K2 Rocks \m/
Attachments:

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago - 12 years 6 months ago #106553 by marco
Replied by marco on topic Re: video position k2 article
is perfect there is only one problem that I busted the date line ... as fix him?

look www.tgtourism.tv/news/item/2100-altro-articolo-di-prova-video.html

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106554 by marco
Replied by marco on topic Re: video position k2 article
I helped to align the date line and the author because thanks to your help this has moved ... and I do not know how to align it ..

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 6 months ago #106555 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: video position k2 article
Can you use back the old item.php, i would to see how you aligned the date line and the author.

K2 Rocks \m/

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106556 by marco
Replied by marco on topic Re: video position k2 article
I tried in every way but I can not align the text to the date and print and mail and share buttons ...

How come the page of the video you can see so badly misaligned: www.tgtourism.tv/news/item/2100-altro-articolo-di-prova-video.html

while the page with the images are perfectly aligned: www.tgtourism.tv/news/item/2097-prova-articolo-tg-tourismo24333.html

please help me to align the video page as the page picture

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 6 months ago #106557 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: video position k2 article
Both displays the same - misaligned.

K2 Rocks \m/

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106558 by marco
Replied by marco on topic Re: video position k2 article
I'm sorry if you look at the share buttons you will see that the page of the video are all moved up while the photo page you are on the correct line ....

then I ask you a favor to fix the rest that date and author and put them on the same line.

help me because I do not know how ...

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106559 by marco
Replied by marco on topic Re: video position k2 article
please help me!

Please Log in or Create an account to join the conversation.

  • marco
  • marco's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months ago #106560 by marco
Replied by marco on topic Re: video position k2 article
anyone help me on this problem?

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #106561 by Melanie
Replied by Melanie on topic Re: video position k2 article
Hi,

I am new to K2 and also want to display my videos first in my content with the text and comments below. I have installed AllVideos, and my particular videos are stored on my website as follows:

mysite.com/images/videos/myvideo.m4v

I have tried adding them to the top of the item content page using:

{m4v}myvideo{/m4v}

or {m4v}mysite.com/images/videos/myvideo{/}

and a number of other ways including changing the file extension and trying it that way - neither works.

All I want is to display my media files at the very top of my articles. I tried looking at the file you suggested i.tem.php) which I found on my server here:

mysite.com/components/com_k2/views/item/tmpl/item.php

But all it contains is the following - am I looking at the right file?:

<?php
/**
* @version $Id: item.php 1618 2012-09-21 11:23:08Z lefteris.kavadas $
* @package K2
* @author JoomlaWorks www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2012 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: www.gnu.org/copyleft/gpl.html
*/

// no direct access
defined('_JEXEC') or die;

?>

I would love to get this working as prefer what I have seen of K2 so far (compared to standard Joomla articles). Any help pointing me where and how to do it would be most appreciated

Please Log in or Create an account to join the conversation.