Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

How can I make a page which is just videos?


  • You cannot reply to this topic
3 replies to this topic

#1 stumax

  • Community Member
  • 7 posts
  • Real Name:Stuart Maxwell

Posted 08 February 2012, 01:44

Hi guys, my company manufactures jet engines for RC model aircraft, and the best way to promote them is with a video of a model flying with one of my jet engines. I've worked out how to embed a youtube video on the product page where the images are, however, I'd like to have a category which is dedicated just to videos, then a page for each different size of engine, using a similar style of image pop-up as what's on the product page, except I may have the thumbnails running vertically down the left hand side, I can probably work out how to do that. Basically, it would be the same as a product page but without the prices, add to cart buttons etc. I think it would be best to have it in the "categories" box rather than in information. I was thinking the easiest way may be to make a copy of the product_info.php file and call it something like video_page.php and then modify it to remove the stuff I don't want. Rather than start with a copy of say shipping.php (or another almost blank page) and then try to add the image handling stuff. I searched a bit and saw how to add a page to the information box, I assume it would be similar to add a page to the categories box, is there anything else I need to be aware of? I'd hate to mess up all my work so far! Thanks a lot!

Stu.

#2 stumax

  • Community Member
  • 7 posts
  • Real Name:Stuart Maxwell

Posted 10 February 2012, 04:24

Can anyone help?

#3 DunWeb

  • Community Sponsor
  • 10,471 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 10 February 2012, 04:42

@stumax,

I don't think there is a contribution currently available......you may have to create a new one.



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#4 stumax

  • Community Member
  • 7 posts
  • Real Name:Stuart Maxwell

Posted 10 February 2012, 12:20

Thanks, Chris, I thought that may be the case. I got around it in a less than elegant way, basically making a category called "videos", adding products which were actually just video links, then putting this code into the product_info.php file in a few places where I didn't want certain info to appear, such as prices in this instance or "buy now" box:

<?php if ($categories['categories_name'] !== "Videos") echo $products_price; ?>

Basically, it's seeing if we're not looking at a category called "videos", and if so, it will proceed and display stuff.

I also added it to product_listing.php in spots where I didn't want prices or "buy now" to appear. Now I have a page inside the categories box which opens up to show the fancy box thingy, click on the large image and a youtube video pops up in the middle of the screen. Sure, it's a messy way of doing it, defining a separate page for a category would have been better as I would have had more individual control over that page without having to put conditional statements all over the place, but it works fine for me. If anyone has a better solution I'm all ears.

Stu.

Stu.