Solved

e107 page - pass a script parameter

Posted on 2011-09-08
3
354 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
Comment Utility
Can you use the hash if you cannot use the query string?
0
 
LVL 1

Accepted Solution

by:
bigintegration earned 0 total points
Comment Utility
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
Comment Utility
There was no other solution provided
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now