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

Posted

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.

Posted

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.

Posted

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?

Posted

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'))

Posted

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)

Posted

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'))

Archived

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

×
×
  • Create New...