Solved

e107 page - pass a script parameter

Posted on 2011-09-08
3
364 Views
Last Modified: 2012-05-12
We have a website that is based on the e107 platform. Normally, the pages that we create are stored in the database and are referenced like: http://www.mysite.org/page.php?123 where 123 is the page number in the list of pages.

We are looking to display several dozen streaming educational videos that are hosted on youtube. We can accomplish this succesfully by creating a page for each video that needs to be posted, but this is time-consuming and cumbersome. So, I wrote some simple java script that takes 2 parameters (the unique Youtube ID for the video and the video format wide/narrow) and builds the embed code for the video. The code works perfectly in an individual page. The idea is that if I can pass the parameters in the URL, I can use one page for diplaying dozens of videos by modifying just the link as I create it.

So, I am trying to figure out how I can pass those 2 parameters to the page.php so that the page dynmically displays the desired youtube video based on the parameters in the URL.

Any help is appreciated.  
0
Comment
Question by:bigintegration
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 36509349
Can you use the hash if you cannot use the query string?
0
 
LVL 1

Accepted Solution

by:
bigintegration earned 0 total points
ID: 37644924
I was never really able to get this to work, so I just used a pop-up window for the player, which probably ended up working out better because the video list stayed active in the background and the video popped up in front of the list.
0
 
LVL 1

Author Closing Comment

by:bigintegration
ID: 37664422
There was no other solution provided
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question