Jump to content

These Forums Are Now Read-Only

For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


tubepress pro on an SSL-secure site

  • Please log in to reply
2 replies to this topic

#1 John Hamlin

John Hamlin


  • Members
  • Pip
  • 4 posts

Posted 19 February 2012 - 02:04 PM

I use a secure LAMP website (separate from my Wordpress site where I am using the Tubepress plugin) that I am building to provide content for my business Facebook page. On the Facebook page I employ a static-HTML-iframe app that gets its iframe content from on the secure website.

On Facebook I need to have all elements secured -- that is, linked via HTTPS. So far so good with the little content I have now going into the iFrame -- all images, for example, linked via HTTPS -- so the Facebook page is secure SSL.

I want to include YouTube video AND SOME THUMBNAIL IMAGES from my business "channel." Is it possible using TubePress Pro to maintain full SSL security? Any tips on how to make sure that nothing will be non-https???


#2 John Hamlin

John Hamlin


  • Members
  • Pip
  • 4 posts

Posted 20 February 2012 - 12:29 PM

I have gone ahead and purchased TubePressPro -- really a finely designed way to connect with the YouTube API. But I fear my request in the above post about being able to present the output on a secure site and not lose the SSL "padlock" may be more difficult to engineer. I am willing to hack the code but would require guidance since I'm at best an advanced novice with PHP.

Interestingly, both single videos and channels, using the YouTube presentation, can be served over SLL. Calles like these work and maintain security:

Our Channel: https://www.youtube.com/user/nozzlnews
One Video: https://www.youtube.com/v/JW5meKfy3fY

So I am hoping that some careful edits in the code could achieve the same and still use TubePress's far superior presentation and controllable CSS styling.

Here's the link I'm trying to serve up over SSL. It is destined for display on Facebook page in an iframe 500px wide by 800 deep. (The use of the table is temporary; border will be replaced by iframe's border on Facebook page.):


Code for the page here:

// Nozzl fb pdx page with tubepress presentation of channel:
$tubepress_base_url = "https://nozzl.com/lib/tubepress_pro_2_2_9";
$mtWebRoot = "/nfs/c07/h03/mnt/112017/domains/nozzl.com/html";
include $mtWebRoot . "/lib/tubepress_pro_2_2_9/sys/classes/TubePressPro.class.php";
  <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
  <meta http-equiv="Content-Language" content="en-us" />
  <?php print TubePressPro::getHtmlForHead(false); ?>

<table width="500px" align="center" border="1" style="border-collapse:collapse;font-family:arial;"><tr><td>

<?php print TubePressPro::getHtmlForShortcode("mode='user' userValue='nozzlnews', embeddedWidth='480', embeddedHeight='390', title='true', resultsPerPage='8', orderBy='published', thumbWidth='100', thumbHeight='65', uploaded='true', length='false', views='false', paginationAbove='false', paginationBelow='false'"); ?>


On the page sources you may be able to spot which http calls in the php code I need to hack for https everywhere.

I have saved the source code and manually edited it to show only https: for the image src=https://... calls. AND HOORAY: IT WORKS -- that isd serves up over SSL and remains secure in the browser:


So I know this can be done!!! Just need a little help finding the code to touch up. Also, I think that you may be able to normalize this for other users who are moving to Facebook with their websites.

Thanks again for the terrific plugin.


#3 eric


    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 21 February 2012 - 12:04 AM

Hi John,

The good news is that the upcoming release of TubePress, for which a release candidate is due in a day or so, will include first-class HTTPS support. This will cover both the thumbnails as well as the embedded player, so you should have 100% SSL coverage. As you discovered, it's fairly simple to get the thumbs working right but the players required a bit more work.

Do you think you'll be able to wait a day or so to help test out TubePress 2.4.0?