How to make page a child page in url slug in html website? - url

So I just made a video game website where I put my online games on it but I want the video game's page link to be under a separate slug: website.com/video-games/mygame instead of website.com/mygame, how would I go about doing that? (video-games is already a page with an image gallery of all my video games)
I already searched around google and either what comes up is a wordpress tutorial or how to make a new page in an html website (which I already know how to do)

Related

jekyll/octopress embedded youtube videos caching issue

I have an octopress site http://irlnathan.github.io/sailscasts/ that embeds different screencasts from youtube. The correct video is displayed when the site is initially loaded, however, when a particular post is selected and one goes back from the browser all of the embedded videos point to the same single video.
I'm hosting the pages on github and I can't figure out why the pages are I think being cached in this way. Has anyone run into this problem?
I don't see the problem you described for your site.
But You might want to add <!--more--> before your videos so that videos are not shown in the blog list page. All these videos made the page loading a bit slow, which kinda defeat the purpose of using static page.

Embed YouTube on site, to open in a NEW PAGE (NOT within the same page)

OK, I have thoroughly searched for an answer, and have not found one that WORKS correctly. I have a page full of videos - listing training videos, each will have a link to a youtube video (all videos have been uploaded to youtube), but will open up in a NEW PAGE on my site. I am a novice website designer, and the problem seems to be that people are anxious to give me half of the code, rather than being explicit with it. Can you help, please?
You need to get the embedding url.
For instance, instead of: https://www.youtube.com/watch?v=JPx3A6XEUF0
use this: https://www.youtube.com/embed/JPx3A6XEUF0

How to update iframe page tab content using a form?

I am trying to pass data using a form to a Facebook iFrame page tab but can't seem to figure how to do it.
I have a page tab on my Facebook page with several elements such as links and images directing users to various pages on the main website. This is updated every week, so rather than update the HTML file and upload via FTP everyweek i would like to see if i can create a form to pass the new data to the iframe.
In addition the Facebook page tab cannot be created in PHP as the server is running ASP.NET
I am trying to do this without the use of a database table if possible, using POST or GET would be preferable.
If anyone knows of any tutorials or has any tips i would be very grateful.
Cheers
You can only pass content or interact with iframe content if it's on the same domain as the parent webpage that has the iframe. All browsers have a "same origin policy" that prevent you from being able to do that - sorry :(

How to allow users to embed YouTube & Vimeo videos?

How can I go about allowing users to embed YouTube and Vimeo videos in my Rails app?
I'd provide a text field or text area where users can add the link of the video they wish to embed.
Click add and have my app show a spinner while the details are being gathered.
When the details are found, I'd want them displayed on the page before user can finally submit the post.
I'm guessing the HTML, link details will need to be stored in the database so the video can automatically be displayed every time the page is visited.
HTML5 has a file API that gives me the ability to display users local file data on the fly. Wondering if there is something similar for display remote data or would normal ajax be used?
Is there a standard way of doing this? Also are there any tutorials out there on how to do this in rails? Would like to go about doing this in the most safest and securest way.
I love tutorials and screencasts so I'd really be thankful for info on where I can find one to achieve what I'm trying to achieve.
Try to use open graph protocol to fetch site information before user sending the form.
I suggest the following gem:
https://github.com/intridea/opengraph
Open graph protocol:
http://ogp.me/
And I guess you should store all the fetched information in database.
The Video Thumb gem is probably what you are looking for.
It handles vimeo, youtube and potentially others.
Then you just do:
<%= VideoPlayer::player(library_item.url, 700, 420).html_safe %>
In your view to display an automatically generated embed code.

Youtube player for multiple videos from various accounts

I have a page that has many videos on it and the page has become so slow it is unusable. These are all Youtube videos and I changed to the new iFrame tags hoping that would help the loading. I need a solution to make this page more useable.
I would be happy if I could just pull a frame from the video and display that, when clicked it would load the video. Or I would be happy with a multi-video player. The custom play from Youtube will not work because the videos I am serving are not all from my account and as I understand the custom player you reference a group from your account. I have also considered using AJAX to load the iframe, which would be okay too if I could figure out how to get a thumbnail of the video to show as a link.
Ideas and suggestions are welcome. Thanks in advance for any ideas.
YouTube API is made up of 2 different sets - one for the player and one for the data.
You can start here ...
http://code.google.com/apis/youtube/overview.html
... then click on "Data API" link and after looking over that page, click on the "Reference Guide" link.
In essence, the gData API will allow you to get videos in numerous ways (feeds, channels, tops, etc) in chunks of up to 100 videos at a time, using a startIndex (or whatever it may be called) option for paging. What you get is an XML document with parts or everything that YT has about a video, including not one but several different thumbnail images.
HTH helps you and/or another Web 0.2 Fellow (like me)

Resources