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 + jQuery Expander Issue

  • Please log in to reply
No replies to this topic

#1 Peter Surrena

Peter Surrena


  • Members
  • Pip
  • 3 posts

Posted 19 August 2011 - 01:50 PM

Working on a site that uses jQuery Expander with tubepress to give me a "read more" link on video descriptions.

It works fine for the first movie but when I click to load a different movie, the Expander plugin doesn't work...any ideas?


$(function() {
	$('div.expandable p').expander({
		slicePoint: 200,
		expandText: 'read more',
		userCollapseText: '[^]'

<div class="tubepress_normal_embedded_wrapper" style="width: <?php echo ${org_tubepress_api_const_template_Variable::EMBEDDED_WIDTH}; ?>px">
	<div id="tubepress_embedded_object_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>">
		<?php echo ${org_tubepress_api_const_template_Variable::EMBEDDED_SOURCE}; ?>
	<div id="tubepress_embedded_title_<?php echo ${org_tubepress_api_const_template_Variable::GALLERY_ID}; ?>" class="tubepress_embedded_title">
	<h3 class="red"><?php echo ${org_tubepress_api_const_template_Variable::VIDEO}->getTitle(); ?></h3>
	<div class="expandable">
		<p style="border-bottom: 2px solid #CCC; margin-bottom: 5px; padding-bottom:10px;"><?php echo htmlspecialchars($video->getDescription(), ENT_QUOTES, "UTF-8"); ?></p>