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

Get The Number Of Results From A Gethtmlforshortcode Call


  • Please log in to reply
2 replies to this topic

#1 ptpasharon

ptpasharon

    Member

  • Members
  • PipPip
  • 10 posts

Posted 29 August 2013 - 09:20 AM

So my site is using a shortcode call as follows:

TubePressPro::getHtmlForShortcode('searchResultsRestrictedToUser="'.$user.'" resultsPerPage="4" mode="tag" tagValue="'.$slug.'"');

I was wondering if there is a way to also do a call to see if there are any results. The reason is on pages that return no results, I don;t even want to show the video section at all. Right now it shows "No results return" but I would like it to simply be blank.

 

Thanks in advance.



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 02 September 2013 - 08:11 PM

ptpasharon,

 

I have asked one of our developers for their input on this.

 

Thank you for your patience!


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 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 10 September 2013 - 10:52 PM

ptpasharon,

 

If you change this line: https://github.com/t...Service.php#L91 from

return $ms->_('No matching videos');

to just

   return ''; 

It will resolve your issue.

 

Let us know if you have any other questions.

 

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!