Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I want to show video clips on my site - how?


katman1971

Recommended Posts

Hi

I want to show a number of video clips on my site. I dont want the customers to download the viseos. I want them to only have the ability to view them (play / pause / rewind / etc) The videos would sit on the server and the customers would stream the videos (I guess). how would I do this? I looked for a contribution but didn't see one.

Link to comment
Share on other sites

Where do you want to put the videos?

 

You should just be able to put the html code where you need it.. unless you want the customers to have to log in first then you'll need to do some coding to check if they are logged in.

Link to comment
Share on other sites

Where do you want to put the videos?

 

You should just be able to put the html code where you need it.. unless you want the customers to have to log in first then you'll need to do some coding to check if they are logged in.

 

I want to put it on the index page. Yes, I want customers to log in first. How eactly would I work it if customers have ot login first? I'm not that great with code. Would you recommend I build it in DW and copy the code over?

Link to comment
Share on other sites

I want to put it on the index page. Yes, I want customers to log in first. How eactly would I work it if customers have ot login first? I'm not that great with code. Would you recommend I build it in DW and copy the code over?

 

You don't need DW for this. Place the HTML code for the video where required on the homepage, then you can use a php if statement to show only for logged in users. Something like this

 

if (tep_session_is_registered('customer_id'))

Link to comment
Share on other sites

You don't need DW for this. Place the HTML code for the video where required on the homepage, then you can use a php if statement to show only for logged in users. Something like this

 

if (tep_session_is_registered('customer_id'))

 

Does the same rule apply if I want this situation?:

 

On my home page I'll have 20 video clips and anyone can watch the first 2 for free - they will not be able to click on the rest of the videos because they haven't signed up. If they sign up (username/password) they will be re-directed to another page (a duplicate of the first page except all the videos will be clickable)

Link to comment
Share on other sites

Does the same rule apply if I want this situation?:

 

On my home page I'll have 20 video clips and anyone can watch the first 2 for free - they will not be able to click on the rest of the videos because they haven't signed up. If they sign up (username/password) they will be re-directed to another page (a duplicate of the first page except all the videos will be clickable)

 

Not sure how the coding for that will work to be honest, but it is quite easy to display only desired items to registered users with

 

(tep_session_is_registered('customer_id'))

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...