Description in gallery mode
#1
Posted 02 November 2011 - 08:28 AM
#2
Posted 02 November 2011 - 11:47 PM
-gl
#4
Posted 09 November 2011 - 10:15 PM
-gl
#5
Posted 11 November 2011 - 08:35 PM
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
Posted 11 November 2011 - 11:43 PM
-gl
#7
Posted 23 November 2011 - 01:57 PM
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
Posted 23 November 2011 - 10:03 PM
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
Posted 25 November 2011 - 09:13 AM
#10
Posted 29 January 2012 - 01:17 AM
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
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
Posted 31 January 2012 - 10:19 PM
#14
Posted 08 February 2012 - 05:48 PM
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
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
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
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!