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

Issues/ Help Initially Installing.


  • Please log in to reply
12 replies to this topic

#1 maverick

maverick

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 19 March 2013 - 12:36 PM

I have gotten the page to display this thus far - Is this displaying correctly?

 

I was originally using a WP plugin. If this is displaying correctly where do I go from here to make a gallery of video?

 

Based on that I have a fully functional (pretty) WP gallery if I am to send you a link to this, would it be realativily easy to replicate outside of WP?

 

http://urbanmarketin...uk/php/test.php

 

Thanks

 

 



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1,989 posts

Posted 19 March 2013 - 11:08 PM

Hi Maverick,

 

It appears that the issue you are experiencing is because you have the incorrect value set for $tubepress_base_url .  It is currently set to: "http://www.urbanmarketing.co.uk/" however it needs to be set to the web accessible address of your TubePress installation.

 

Once that value is set properly, TubePress will load the javascript and css files that it needs to properly display your website.

 

Let us know if you have any other issues

 

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 maverick

maverick

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 20 March 2013 - 12:28 AM

Thanks for your reply.

I am a little confused on what dir this has to be.

All my tube files are in http://www.urbanmark...co.uk/tubepress

Therfore I guessed that would be the correct dir? I tried it and then tried to load the test.php I setup but found errors?

Thanks

#4 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1,989 posts

Posted 20 March 2013 - 06:46 PM

Hi Maverick,

 

When viewing the page linked above (test.php), I am seeing the following errors when the page loads.

 

"NetworkError: 404 Not Found - http://www.urbanmark...ry-1.8.3.min.js"
"NetworkError: 404 Not Found - http://www.urbanmark...js/tubepress.js"

"NetworkError: 404 Not Found - http://www.urbanmark...s/tubepress.css"

 

By looking at those 404 errors, we can see that within your header, you are telling your website to look at those addresses for the JavaScript and CSS files.

 

In your above post, you stated that everything was in the urbanmarketing.co.uk/tubepress/ folder.  If that is where everything is located, then you need to change the code within the head of your test.php page to reflect the correct location.

 

Please let us know if this fixes your issue or if you need more help.

 

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!


#5 eric

eric

    Lead Developer

  • TubePress Staff
  • 2,787 posts

Posted 21 March 2013 - 12:44 PM

Following up on Brandon's last post, you should be able to set $tubepress_base_url to 

http://www.urbanmarketing.co.uk/tubepress

and everything should work.



#6 maverick

maverick

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 22 March 2013 - 12:00 PM

Thanks the pagnition seems to be working now.

Please can you provide some assistance on where I am to add new theme files.

As mentioned all of my tubepress 3.0 files are in directory lib/tubepress

I have a theme which was created in wordpress which I am attempting to mimic outside of WP on this site. - Everything working apart from the theme.

I have created a separate dir tubepress_pro_3_0_0 (for my TubePress Content Directory) in there is dir /content/themes/explore (explore has all of the appropriate php files taken from WP theme).

Based on the spacing not being correct between thumbs leads me to guess that its not finding my 'explore' theme and is defaulting to standard theme also I tested this my creating a new theme to display no thumbs, but there was no change to the gallery.

Everything is still be tested on php/test.php

Appreciate you help....and patience!

 

<?php 
 
    $tubepress_base_url = "http://site/temp/tubepress";
 
    include "../tubepress/src/main/php/classes/TubePressPro.php";
?>

[Edit 23-03] Ok so I progressed a little further, due to leaning the basics of php. I completely understand the <print> & <Echo> functions and how these work now but my questions is:

 

Do I need to to include the above code on each of the page I use tubepress? I cant quite figure out how the above links/ is related to the proceeding  <php> statements.

 

 

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

<?php echo TubePressPro::getHtmlForShortcode('theme="explore" mode="playlist" playlistValue="PLD1AE64406117E2FA" playerLocation="shadowbox" orderBy="newest" title="true" description="false" thumbHeight="172" thumbWidth="217" resultsPerPage="24" embeddedHeight="540" embeddedWidth="720" length="false" hqThumbs="true"'); ?>

 

 

Apologies two different core questions now. Theme dir & the best method for getting a playlist showing on a html page?

 

[Edit 24/03]

 

Trying to utilise tubepress player only (without thumb). Is the best way to follow this method?

 

http://tubepress.com...stomize:Recipes

Hide All Thumbnails for a Gallery

 

-Still trying to work out the correct dir for theme though?? Currently:

 

/lib/tubepress_pro_3_0_0/content/themes/explore
&
/lib/tubepress_pro_3_0_0/content/themes/single-player


#7 eric

eric

    Lead Developer

  • TubePress Staff
  • 2,787 posts

Posted 24 March 2013 - 10:21 PM

I have a theme which was created in wordpress which I am attempting to mimic outside of WP on this site. - Everything working apart from the theme.

 
Could you clarify what you mean by "theme"? Are you referring to a WordPress theme? Or a TubePress theme?
 

<?php 
 
    $tubepress_base_url = "http://site/temp/tubepress";
 
    include "../tubepress/src/main/php/classes/TubePressPro.php";
?>
 
Do I need to to include the above code on each of the page I use tubepress? I cant quite figure out how the above links/ is related to the proceeding  <php> statements.

 
Essentially, yes, you'll need to include the above code on any PHP page where you want to use TubePress.
 

Trying to utilise tubepress player only (without thumb). Is the best way to follow this method?

 
If you want to play a single video with TubePress, we would recommend that you follow these instructions.

 

Does that make sense? Thanks!



#8 maverick

maverick

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 24 March 2013 - 11:37 PM

Yes Tubepress theme.

I basically just need to know the correct dir to add a custom theme?

All my main tubepress files are in:

Site/temp/dir/tubepress

I created a seperate dir:

Site/temp/dir/tubepress_3_0_0/content/themes/single-player

I have copied the correct files to new theme but still no luck using the 'theme=' value

I have also tried moving the content/ dir to inside main tubepress dir but still no luck.

 

[Edit] Also none of my thumbs actually play when click. I'm using shadowboox and get the shadowbox modal to show with a little loading > then just a blank screen.

 

Tubepress code I am using on the page:

 

<!-- TubePress --> 
<?php 
 
    $tubepress_base_url = "http://site URL/temp/lib/tubepress";
 
    include "../lib/tubepress/src/main/php/classes/TubePressPro.php";
?>

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



<?php echo TubePressPro::getHtmlForShortcode('theme="test-theme" mode="recently_featured" playerLocation="shadowbox" orderBy="newest" title="false" views="false" description="false" thumbHeight="102" thumbWidth="137" resultsPerPage="12" embeddedHeight="540" embeddedWidth="720" length="false" hqThumbs="true"'); ?>

Attempted using the standard themes with no change: i.e

 

<?php echo TubePressPro::getHtmlForShortcode('mode="recently_featured" playerLocation="shadowbox" orderBy="newest" title="false" views="false" description="false" thumbHeight="102" thumbWidth="137" resultsPerPage="12" embeddedHeight="540" embeddedWidth="720" length="false" hqThumbs="true" theme="sidebar"'); ?>

 

 

Please assist.

Thanks.

S



#9 maverick

maverick

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 30 March 2013 - 09:29 AM

When are you able to provide some help please?



#10 eric

eric

    Lead Developer

  • TubePress Staff
  • 2,787 posts

Posted 30 March 2013 - 12:31 PM

I'm terrible sorry that we're only getting back to you now! Please accept our apologies.

 

The correct location for your TubePress content directory, in your case, is

lib/tubepress/content

 

so your custom TubePress theme should be located at

lib/tubepress/content/themes/test-theme

 

I'm basing this off of the PHP code that you last posted (though in the text of your post you referenced a "dir" directory instead of the "lib" directory). So in other words, I think you have set everything up correctly. But it's difficult for me to say for sure since debugging appears to be disabled. Could you add debugging_enabled="true" to your shortcode so I could take a look "under the hood"?

 

 

 

 

Also none of my thumbs actually play when click. I'm using shadowboox and get the shadowbox modal to show with a little loading > then just a blank screen.

 

This is just a cross-domain Ajax problem. So you'll just need to choose urbanmarketing.co.uk or www.urbanmarketing.co.uk as your "primary" domain and redirect the other domain to it. Notice that if you view your site from http://www.urbanmark...k/php/test.php, Shadowbox plays the videos correctly.

 

Please let us know how that works for you. Thanks!



#11 maverick

maverick

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 01 April 2013 - 12:16 PM

Thanks for your reply.

 

The Ajax issue is sorted - it works when the page is hosted but I am still unable to make it function via XAMPP working locally. Its a duplicated dir for both local and server side so I'm not quite sure why it works just sever side.

 

Anyway.

 

Yep I moved my previous:    Sitename/temp/dir/tubepress_3_0_0/content/themes/single-player

 

into the main tubepress dir so that it is now:

 

sitename/lib/tubepress/content/themes/test-theme

 

Still no change? I also tried changing code to use one of the default themes but still no change - so not too sure what the problem is.

 

<?php echo TubePressPro::getHtmlForShortcode('mode="recently_featured" playerLocation="shadowbox" orderBy="newest" title="false" views="false" description="false" thumbHeight="102" thumbWidth="137" resultsPerPage="12" embeddedHeight="540" embeddedWidth="720" length="false" hqThumbs="true" theme="sidebar"'); ?>

 

 

Thanks



#12 eric

eric

    Lead Developer

  • TubePress Staff
  • 2,787 posts

Posted 02 April 2013 - 02:38 PM

It looks like you're doing everything correctly. But for some reason I can't seem to view your TubePress debug output. Could you ensure that your shortcode includes debugging_enabled? Something like this would be useful:

<?php echo TubePressPro::getHtmlForShortcode('debugging_enabled="true" mode="recently_featured" playerLocation="shadowbox" orderBy="newest" title="false" views="false" description="false" thumbHeight="102" thumbWidth="137" resultsPerPage="12" embeddedHeight="540" embeddedWidth="720" length="false" hqThumbs="true" theme="sidebar"'); ?>

I'm also willing, if you're willing and able, to log in to your server and see what's going on. If you'd like to go that route, feel free to PM me the credentials. Otherwise, please just try the above shortcode and that should allow me to continue to debug remotely.

 

Thanks again for your patience in working this out!



#13 maverick

maverick

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 03 April 2013 - 01:01 PM

PM'd - thanks