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.


Photo

Problems Upgrading From 4_0_2 To 4_1_8


Best Answer eric , 10 May 2015 - 07:23 PM

You can simply create a text file named database.json and save it on your website at tubepress-content/config/database.json. The contents of the file should be exactly this:

{
    "googleApiKey": "your key here"
}

You could alternatively include the key in your call to getHtmlForShortcode(), e.g.

<?php print TubePressPro::getHtmlForShortcode('googleApiKey="your key" ...');

Does that make sense?

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 TrevorV

TrevorV

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 06 May 2015 - 04:50 PM

Can someone explain how I upgrade the pro php version 4_0_2 to 4_1_8

 

My current setting are

 

<?php
include "tubepress_pro_4_0_2/src/TubePressPro.php";
TubePressPro::setBaseUrl("http://cheap-local-h...ss_pro_4_0_2");
?>

 

<?php print TubePressPro::getHtmlForHead(true); ?>

 

<?php print TubePressPro::getHtmlForShortcode('mode="tag" tagValue="handyman tips" resultsPerPage="15" resultCountCap="15" playerLocation="popup" hqThumbs="true" orderBy="newest"'); ?>

 

 

I've tried uploading the new files and changing the  directory from tubepress_pro_4_0_2 to tubepress_pro_4_1_8

 

That doesn't work, the youtube videos are not being displayed.



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 06 May 2015 - 08:38 PM

Trevor,

 

Please take a look at the directions for setting up Stand alone PHP

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#3 TrevorV

TrevorV

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 06 May 2015 - 10:18 PM

Please advise where do I find database.json in line item 13 ??

 

Add your API key to database.json under the key googleApiKey



#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 10 May 2015 - 07:23 PM   Best Answer

You can simply create a text file named database.json and save it on your website at tubepress-content/config/database.json. The contents of the file should be exactly this:

{
    "googleApiKey": "your key here"
}

You could alternatively include the key in your call to getHtmlForShortcode(), e.g.

<?php print TubePressPro::getHtmlForShortcode('googleApiKey="your key" ...');

Does that make sense?


  • brandon likes this