Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

how to add youtube video below header?

Aloittaja yogesh_gamer, toukokuu 26, 2011, 12:14:55 AP

« edellinen - seuraava »

yogesh_gamer


Kermit

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
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Lainaa
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

yogesh_gamer

i will change the video daily
so i need a mod

wandawill


yogesh_gamer

i try this but it ad the video to every page.
i just wanted to add on My Homepage (index page)

mashby

Then you'll want to edit BoardIndex.template.php and put the code you put in that mod in that file.
Always be a little kinder than necessary.
- James M. Barrie

yogesh_gamer

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?

mashby

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.
Always be a little kinder than necessary.
- James M. Barrie

yogesh_gamer

i try aeva. but how can i add the youtube below header along with news?
Aeva is for adding video to post

mashby

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.
Always be a little kinder than necessary.
- James M. Barrie

MC73

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.
Over 1100 Online Flash Games 

yogesh_gamer

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






MC73

Your very welcome, I aim to please via waisting your time.
Over 1100 Online Flash Games 

mashby

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.
Always be a little kinder than necessary.
- James M. Barrie

yogesh_gamer


mashby

Always be a little kinder than necessary.
- James M. Barrie

mandoo18


Aleksi "Lex" Kilpinen

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.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

YogiBear

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.
SMF v2.1.4  Mods : Snow & Garland v1.4, Simple Image Upload v2.0.0,  PHP  v.8.1

Advertisement: