No bug warning before uploading a video to youtube
- Hervé
- Topic Author
- Offline
- Posts: 113
- Thank you received: 0
I hope you are well?
1/ location of the text that warns about loading cookies
Is it possible to translate, or even supercharge "Click to load the embedded media..."?
2/ see the video on the blog page
clibre.eu/infos-sur-le-libre >> "Si c'est gratuit, vous êtes le produit"
What should I add in the safe overload I made of blog_item.php to see the video?
<?php echo JHTML::_('string.truncate', strip_tags($this->item->introtext, ), 450, true, true); ?>
regards
Please Log in to join the conversation.
- Ruud van Lent
- Offline
- Posts: 1481
- Thank you received: 100
Yes, that is possible: it is a language string that you can change via a language override: PLG_CONTENT_OCHFITFIDS_MESSAGE_CLICKTOLOADVIDEO1/ location of the text that warns about loading cookies
Is it possible to translate, or even supercharge "Click to load the embedded media..."?
2/ see the video on the blog page
clibre.eu/infos-sur-le-libre >> "Si c'est gratuit, vous êtes le produit"
with the code above you are stripping the iframe, so you should remove that from the array, possibly others as well. I would start without the strip_tags and see if it displays and then add until it doesn'tWhat should I add in the safe overload I made of blog_item.php to see the video?
<?php echo JHTML::_('string.truncate', strip_tags($this->item->introtext, ), 450, true, true); ?>
regards
Please Log in to join the conversation.
- Hervé
- Topic Author
- Offline
- Posts: 113
- Thank you received: 0
1/ perfect
2/
I see that my command line has been deleted!
I added tags: br', 'img', 'iframe', 'b', 'strong' to see the content in the strip_tags
Can you tell me more precisely which tag has been added?JHTML::_('string.truncate', strip_tags($this->item->introtext, ), 450, true, true) ;
Please Log in to join the conversation.
- Hervé
- Topic Author
- Offline
- Posts: 113
- Thank you received: 0
Please Log in to join the conversation.
- Hervé
- Topic Author
- Offline
- Posts: 113
- Thank you received: 0
I put it back for the memory
If I put back
<echo $this->item->introtext; ?>
=> video with the plugin setting is displayed
If I put :
<?php echo JHTML::_('string.truncate', 300, true, true); ?>
nothing is displayed
but can you take into account that all this setting with all these tags are important to me, as they should work for other types of content with a nice layout.
Is there any way to get around this with a class? or something else while keeping my string. truncate?
Please Log in to join the conversation.
- Ruud van Lent
- Offline
- Posts: 1481
- Thank you received: 100
This gets very complicated, something like first remove the iframe, truncate and then add the iframe back.
Please Log in to join the conversation.
- Hervé
- Topic Author
- Offline
- Posts: 113
- Thank you received: 0
ok as I'm motivated, I have an idea to make a test on the existence of the plugin
If (plugin ochFitVids !?) then
<echo $this->item->introtext; ?>
otherwise
<?php echo JHTML::_('string.truncate', ... (full display with truncate)
If you have the condition, maybe it would be a good idea?
Please Log in to join the conversation.
- Ruud van Lent
- Offline
- Posts: 1481
- Thank you received: 100
Please Log in to join the conversation.
- Hervé
- Topic Author
- Offline
- Posts: 113
- Thank you received: 0
if (stripos($this->item->introtext, 'iframe') !== false)
Thanks
Please Log in to join the conversation.
- Ruud van Lent
- Offline
- Posts: 1481
- Thank you received: 100
Please Log in to join the conversation.