Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: yogesh_gamer - toukokuu 26, 2011, 12:14:55 AP

Otsikko: how to add youtube video below header?
Kirjoitti: yogesh_gamer - toukokuu 26, 2011, 12:14:55 AP
how to add youtube video below header?
Otsikko: Re: how to add youtube video below header?
Kirjoitti: Kermit - toukokuu 26, 2011, 01:22:13 AP
You can use the embed codes from youtube,just for the main page in BoardIndex.template.php and for every pages you need to use index.template.php for placing the embed codes
Otsikko: Re: how to add youtube video below header?
Kirjoitti: yogesh_gamer - toukokuu 26, 2011, 02:35:10 AP
i will change the video daily
so i need a mod
Otsikko: Re: how to add youtube video below header?
Kirjoitti: wandawill - toukokuu 26, 2011, 09:54:13 AP
you might want to use this one. you can do a lot with it.

http://custom.simplemachines.org/mods/index.php?mod=351
Otsikko: Re: how to add youtube video below header?
Kirjoitti: yogesh_gamer - toukokuu 26, 2011, 09:42:17 IP
i try this but it ad the video to every page.
i just wanted to add on My Homepage (index page)
Otsikko: Re: how to add youtube video below header?
Kirjoitti: mashby - toukokuu 26, 2011, 09:47:32 IP
Then you'll want to edit BoardIndex.template.php and put the code you put in that mod in that file.
Otsikko: Re: how to add youtube video below header?
Kirjoitti: yogesh_gamer - toukokuu 26, 2011, 09:50:01 IP
ok. if there is not any mod what can I do?
just tell me how/where to put the code.
and also tell me that i wanted to add News.
Left Hand Side "Youtube" Right Hand Side "News"
how can i do that?
Otsikko: Re: how to add youtube video below header?
Kirjoitti: mashby - toukokuu 26, 2011, 09:58:58 IP
This is an interesting way of achieving that using mods. Install this mod:
http://custom.simplemachines.org/mods/index.php?mod=2681
Or might you already have a video embedder mod like Aeva Lite or something? In any case, with one of those two mods installed, you can add a news item and paste a YouTube link as one of the news items (or the only one if you only want that one to show).

That will also allow your users to embed YouTube and many other video service URLs into posts.
Otsikko: Re: how to add youtube video below header?
Kirjoitti: yogesh_gamer - toukokuu 26, 2011, 10:12:54 IP
i try aeva. but how can i add the youtube below header along with news?
Aeva is for adding video to post
Otsikko: Re: how to add youtube video below header?
Kirjoitti: mashby - toukokuu 26, 2011, 10:18:25 IP
Well, as far as I know there is no mod to add a video to the board index. I tried what I suggested out (not using aeva but the one I mentioned) and it mostly worked. I had three items in the rotation but only the youtube one worked. In any case, if you want to have a YouTube video on the board index, I believe the way to achieve that is to edit BoardIndex.template.php.
Look for:
/* Each category in categories is made up of:

Your code should go just above that.
Otsikko: Re: how to add youtube video below header?
Kirjoitti: MC73 - toukokuu 26, 2011, 10:21:14 IP
Have you tried a portal block .... such as Tiny portal or simple portal ? That is how i did mine at one time. Then you can add the bbc code and put it where ever you like to put it.
Otsikko: Re: how to add youtube video below header?
Kirjoitti: yogesh_gamer - toukokuu 26, 2011, 10:40:20 IP
LainaaWell, as far as I know there is no mod to add a video to the board index. I tried what I suggested out (not using aeva but the one I mentioned) and it mostly worked. I had three items in the rotation but only the youtube one worked. In any case, if you want to have a YouTube video on the board index, I believe the way to achieve that is to edit BoardIndex.template.php.
Look for:
Code: [Select]
   /* Each category in categories is made up of:
Your code should go just above that.

well. i will change the video daily so editing is not a perfect idea.


LainaaHave you tried a portal block .... such as Tiny portal or simple portal ? That is how i did mine at one time. Then you can add the bbc code and put it where ever you like to put it.
thanks for waisting my time. this mod is not good for a forum





Otsikko: Re: how to add youtube video below header?
Kirjoitti: MC73 - toukokuu 26, 2011, 10:46:59 IP
Your very welcome, I aim to please via waisting your time.
Otsikko: Re: how to add youtube video below header?
Kirjoitti: mashby - toukokuu 26, 2011, 10:49:33 IP
I doubt MC73 wasted any of your time. If you change it daily, how are you changing it now or is that your plan? Without a mod dedicated to do what you need, you could pursue the avenue I mentioned. I don't have aeva installed so I cannot tell you if it works, but pasting in a YouTube URL in the News area worked with Simple Audio Video Embedder. It certainly took over the news area. Are you using your News as well? Without a dedicated mod to achieve what you're asking for or dedication to edit your BoardIndex.template.php file, I'm not sure what else to say.
Otsikko: Re: how to add youtube video below header?
Kirjoitti: yogesh_gamer - toukokuu 26, 2011, 10:52:28 IP
ok. where can i request for a new mod?
Otsikko: Re: how to add youtube video below header?
Kirjoitti: mashby - toukokuu 26, 2011, 10:55:29 IP
Mod Requests (http://www.simplemachines.org/community/index.php?board=79.0)
Otsikko: Re: how to add youtube video below header?
Kirjoitti: mandoo18 - toukokuu 26, 2011, 11:23:34 IP
Thank you very good information.
Otsikko: Re: how to add youtube video below header?
Kirjoitti: Aleksi "Lex" Kilpinen - kesäkuu 15, 2011, 03:26:06 AP
Any updates to this? I'd agree with mashby on this though, there is no straight forward way to do this without mods,
and I know of no mod that would do exactly what you are asking.

Lainaus käyttäjältä: mashby - toukokuu 26, 2011, 10:49:33 IP
I doubt MC73 wasted any of your time. If you change it daily, how are you changing it now or is that your plan? Without a mod dedicated to do what you need, you could pursue the avenue I mentioned. I don't have aeva installed so I cannot tell you if it works, but pasting in a YouTube URL in the News area worked with Simple Audio Video Embedder. It certainly took over the news area. Are you using your News as well? Without a dedicated mod to achieve what you're asking for or dedication to edit your BoardIndex.template.php file, I'm not sure what else to say.
Otsikko: Re: how to add youtube video below header?
Kirjoitti: YogiBear - kesäkuu 15, 2011, 06:13:55 AP
To add to mashby's solution, place it in the Newsfader using the html or iframe code. That way you can set it to whatever size you want manually. The trick is to maintain the ratio 1.33 : 1 or widescreen.