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

Description in gallery mode


  • Please log in to reply
16 replies to this topic

#1 George Loch

George Loch

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 02 November 2011 - 08:28 AM

So, I have a vimeo gallery which is laid out with the selected video on top and the thumbnails below. For some reason, the text description of the video on top has disappeared and I can't figure out why. Is there a setting that I am missing. Screenshot below:

#2 George Loch

George Loch

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 02 November 2011 - 11:47 PM

Any clues on this? I am without any more options to pursue.

-gl

#3 George Loch

George Loch

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 05 November 2011 - 06:54 PM

Here is the link: http://spaceacemedia...ork/commercial/
-gl

#4 George Loch

George Loch

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 09 November 2011 - 10:15 PM

I purchased the Pro version in hopes that it would either resolve the issue or at least get me closer to a support solution. Anyone have any ideas why descriptions don't appear with the main video?

-gl

#5 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 11 November 2011 - 08:35 PM

Hi gl,

Here's how to get the video's description under the main video player. It's not the simplest process on the planet, I know. But I think you'll find that this way gives you maximum flexibility in laying out your gallery, and it's totally upgrade-proof.

  • If you haven't already, create and activate a TubePress theme to hold your customizations. Since you're using WordPress, you'll want to create a directory for your theme at

    wp-content/tubepress-content/themes/yourtheme
  • Copy into your new theme the following file and its parent directories

    tubepress_pro_2_2_9/sys/ui/themes/default/players/normal.tpl.php
    So after this step you should have that file at

    wp-content/tubepress-content/themes/yourtheme/sys/ui/themes/default/players/normal.tpl.php
  • Edit your newly copied file to add in the description wherever you'd like it, using getDescription() to display the text. e.g.

    ...<div id="tubepress_embedded_object_<span class="syntaxdefault"><?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>">      <?php echo ${org_tubepress_api_const_template_Variable::EMBEDDED_SOURCE}; ?></div><!-- Adding the description... --><div>    <?php echo ${org_tubepress_api_const_template_Variable::VIDEO}->getDescription(); ?></div>...</span>

Let me know if all this makes sense or if you need help with any step. Thanks!

#6 George Loch

George Loch

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 11 November 2011 - 11:43 PM

Thanks for getting back to me. It seems to be working now. Thanks!

-gl

#7 Eric Heller1359656553

Eric Heller1359656553

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 23 November 2011 - 01:57 PM

Hi, I'm trying to get the same functionality (displaying the video description beneath the main player) with zero luck. Have tried to follow these instructions but it just won't work.

I'm using the 2.2.9 version. Incidentally, the path shown above is not accurate for me: Instead of

tubepress_pro_2_2_9/sys/ui/themes/default/players/normal/normal.tpl.php


as shown in this thread, I actually have

tubepress_pro_2_2_9/sys/ui/themes/default/players/normal.tpl.php

In other words, there was no "normal" directory. I've added it anyway but still not working.

The direct link to the page in question is http://www.sightlogix.com/blog/videos/.

Are there other methods to achieve this effect besides the instructions here? Would purchasing the plugin avail me of other methods?

Many thanks for the response and for this excellent software, it's quite good, this issue notwithstanding.

Eric

#8 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 23 November 2011 - 10:03 PM

Thanks for pointing out the typo. I've updated my instructions.

It seems like TubePress can't find your theme's normal.tpl.php. From your debug output:

Could not read file at /home/content/l/0/g/l0g1x/html/blog/wp-content/tubepress-content/themes/sightlogix/players/normal.tpl.php. Falling back to default.


This means that TubePress is using the "sightlogix" theme, but it didn't find your theme's template at /home/content/l/0/g/l0g1x/html/blog/wp-content/tubepress-content/themes/sightlogix/players/normal.tpl.php, so it bailed and used the default theme's template instead.

I would verify that you have indeed placed your template at /home/content/l/0/g/l0g1x/html/blog/wp-content/tubepress-content/themes/sightlogix/players/normal.tpl.php, and that the file is readable.

#9 Eric Heller1359656553

Eric Heller1359656553

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 25 November 2011 - 09:13 AM

Eric, that was the problem!! You're a star. Thanks for the help here, greatly appreciated.

#10 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 29 January 2012 - 01:17 AM

Eric,

this guide is for the wordpress plugin.

Can you write the same for standalone php?

When i add the

<div>
    <?php echo ${org_tubepress_api_const_template_Variable::VIDEO}->getDescription(); ?>
</div>

to normal.tpl.php located in tubepress-content/themes/slaviccenter_theme/sys/ui/themes/default/normal.tpl.php

I dont see any change. and where i want to place tubepress code looks like this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<?php 

$tubepress_base_url = 'C:\xampp\htdocs';

include 'C:\xampp\htdocs\sys\classes\TubePressPro.class.php';

?>



<html>

	<head>

	<title>Slavic Christian Center</title>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">



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



	</head>
<body>	<div>		            <?php print TubePressPro::getHtmlForShortcode(" theme='slaviccenter_theme' randomize_thumbnails='false' embeddedWidth='650' 

embeddedHeight='395' description='true' views='false' orderBy='published' resultsPerPage='20' mode='playlist' playlistValue='49F0EA68F19E7AF8' loop='true' 

playerLocation='normal' ajaxPagination='true' showRelated='false'"); ?>	





</div></body></html>

I dont get any description below the main player. with the description='true" I just get the description under the thumbnails but nothing under the main player.

By the way, i added a link to one of my youtube video's and under the thumbnails the link appeared as straight text and cannot be clicked, but when you watch same video on youtube and look under the description the link is clickable and im guessing that is the same case for when we get the video description under the main player working, is it going to do the same thing? the links arent clickable in tubepress?

Any ideas?

Can I PM you my phone that way we can get in touch and get this figured out? We have a meeting every week and would be really great if we can get this working .

I understand you are busy, but thanks for coming back and answering every ones questions.
Thanks a lot for this amazing plugin.

#11 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 30 January 2012 - 01:28 PM

this guide is for the wordpress plugin.

Can you write the same for standalone php?


The procedure is identical except for one thing: the location of the "TubePress content" directory. In WordPress, this directory is at wp-content/tubepress-content. In standalone PHP, the directory is at tubepress_pro_x_y_z/tubepress-content (where "x_y_z" is the version number of your TubePress Pro installation).

When i add the

<div>    <span class="syntaxdefault"><?php echo ${org_tubepress_api_const_template_Variable::VIDEO}->getDescription(); ?></div></span>

to normal.tpl.php located in tubepress-content/themes/slaviccenter_theme/sys/ui/themes/default/normal.tpl.php

I dont see any change. and where i want to place tubepress code looks like this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><span class="syntaxdefault"><?php $tubepress_base_url = 'C:\xampp\htdocs';include 'C:\xampp\htdocs\sys\classes\TubePressPro.class.php';?><html>   <head>   <title>Slavic Christian Center</title>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">   <?php print TubePressPro::getHtmlForHead(true); ?>   </head><body>   <div>                  <?php print TubePressPro::getHtmlForShortcode(" theme='slaviccenter_theme' randomize_thumbnails='false' embeddedWidth='650' embeddedHeight='395' description='true' views='false' orderBy='published' resultsPerPage='20' mode='playlist' playlistValue='49F0EA68F19E7AF8' loop='true' playerLocation='normal' ajaxPagination='true' showRelated='false'"); ?>   </div></body></html></span>

I dont get any description below the main player. with the description='true" I just get the description under the thumbnails but nothing under the main player.


If you're still not seeing the description under the player, it's likely just a permissions issue or misplacement of your custom theme's files. Can you share a link to your site so I can take a look? Or post your debug output? TubePress is really verbose when it comes to logging custom theme actions.

p.s. Adding the description below the main player is such a common request that I'm preparing some official documentation on how to do this! But in the mean time the previous post in this thread has the correct steps.

By the way, i added a link to one of my youtube video's and under the thumbnails the link appeared as straight text and cannot be clicked, but when you watch same video on youtube and look under the description the link is clickable and im guessing that is the same case for when we get the video description under the main player working, is it going to do the same thing? the links arent clickable in tubepress?

Any ideas?


This is a known bug and is due (in part) to a limitation on the YouTube API. Please star the issue to vote for the feature and track updates. Features with the most votes will be implemented first.

#12 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 31 January 2012 - 10:19 PM

I'm testing everything locally on my PC with xampp, nothing is live yet. Want to work out the bugs prior to publishing therefore i cant send you a direct link, but where are the logs located to send you the logs? I took a look and couldn't find them.

#13 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 01 February 2012 - 11:52 PM

Whoops, just responded to your other post before I saw this one.

Here is how to put your gallery into debug mode so it can produce logs. Let me know if you have any trouble getting the output. Thank you.

#14 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 08 February 2012 - 05:48 PM

Thanks Eric,

Im in the middle of moving to my new home and my isp hasnt yet come out and connected the internet, but as soon as that happens ill post a link to my server.

Thanks for your help.

#15 Hugo

Hugo

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 29 November 2014 - 09:13 PM

Hi Eric,

 

I would like to accomplish the same in version 4.

The code has changed a bit. Could I get some leads to get this done?

 

Thanks.



#16 Nita Saint-Hilaire

Nita Saint-Hilaire

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 09 May 2015 - 01:54 PM

What is the status on this, I don't see anything relating to this in the 4.1.8 pro version recently released. Did I miss this? 



#17 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 11 May 2015 - 09:18 PM

The function to add the description under the main player?

 

No, but you can make your own custom theme that can display the description under the main player.

 

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!