Experiencing a 401 Unauthorized Error During Update?
If you're seeing a 401 Unauthorized error when trying to update your Joomla extension, it's likely due to our new two-factor authentication (2FA) security measure for your Download ID.
To resolve this, check your email (Spam folder?) for a message to approve your server or device, or read our detailed blog post here(
onlinecommunityhub.nl/best-practice/new-...-extension-downloads) to understand the steps involved. This will guide you through approving your server for future updates.
No bug Problem displaying buttons
- Hervé
- Onderwerp Auteur
- Offline
Minder
Meer
- Berichten: 121
- Ontvangen bedankjes 0
2 jaren 1 week geleden - 2 jaren 1 week geleden #2305
door Hervé
Problem displaying buttons werd gestart door Hervé
Hello Ruud
On blog pages like
clibre.eu/alternatives-aux-gafam
or clibre.eu/infos-sur-le-libre
There are articles with
a) the login buttons and
b) the whole article of "LoL, une affaire sérieuse".
I don't want the buttons on the blog pages and I would like to truncate the article like the others with
Regards
On blog pages like
clibre.eu/alternatives-aux-gafam
or clibre.eu/infos-sur-le-libre
There are articles with
a) the login buttons and
b) the whole article of "LoL, une affaire sérieuse".
I don't want the buttons on the blog pages and I would like to truncate the article like the others with
Code:
<?php if (stripos($this->item->introtext, 'iframe') !== false) { echo $this->item->introtext; }// INIT ou obligé pour avoir la vignette vidéo avec le plugin ochFitvids else {echo JHTML::_('string.truncate', strip_tags($this->item->introtext, ['br','img','iframe','b','strong']), 300, true, true) ;} ?>
Regards
Laatst bewerkt 2 jaren 1 week geleden door Hervé.
Onderwerp is gesloten.
- Ruud van Lent
- Offline
Minder
Meer
- Berichten: 1624
- Ontvangen bedankjes 107
2 jaren 6 dagen geleden #2308
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Problem displaying buttons
Hi Herve,
I do not understand completely. This is what I think I am seeing:
on the blog pages there are articles with and without jssocials buttons. The ones WITH the buttons (I think) have a read more, the ones WITHOUT do not have a read more in the text.
that would also explain why the truncate code you have is not working: you are truncating the introtext but on the articles without a read more this is empty and instead the full text is displayed (which is not truncated / stripped by your code).
I do not understand completely. This is what I think I am seeing:
on the blog pages there are articles with and without jssocials buttons. The ones WITH the buttons (I think) have a read more, the ones WITHOUT do not have a read more in the text.
that would also explain why the truncate code you have is not working: you are truncating the introtext but on the articles without a read more this is empty and instead the full text is displayed (which is not truncated / stripped by your code).
Onderwerp is gesloten.
- Hervé
- Onderwerp Auteur
- Offline
Minder
Meer
- Berichten: 121
- Ontvangen bedankjes 0
2 jaren 6 dagen geleden #2309
door Hervé
Beantwoord door Hervé in topic Problem displaying buttons
Hi Ruud
There is no different structure between the articles.
If I remove :
<p><ii src=" www.YTTT.com/embed/JwEOx_zZLnw" width="560" height="314" allowfullscreen="allowfullscreen">
I don't have the buttons displayed anymore and the truncation is correct (see picture)
If you want I can give you access and send the overload file by mail to understand.
I sent the image by mail because I can't insert it here!
Regards
There is no different structure between the articles.
If I remove :
<p><ii src=" www.YTTT.com/embed/JwEOx_zZLnw" width="560" height="314" allowfullscreen="allowfullscreen">
I don't have the buttons displayed anymore and the truncation is correct (see picture)
If you want I can give you access and send the overload file by mail to understand.
I sent the image by mail because I can't insert it here!
Regards
Onderwerp is gesloten.
- Ruud van Lent
- Offline
Minder
Meer
- Berichten: 1624
- Ontvangen bedankjes 107
2 jaren 6 dagen geleden #2310
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Problem displaying buttons
Hi Herve,
I do not understand what the issue is. do you mean login buttons or social share buttons (jssocials). Can you 'draw' on the image you send me what is missing or what needs to be removed?
I do not understand what the issue is. do you mean login buttons or social share buttons (jssocials). Can you 'draw' on the image you send me what is missing or what needs to be removed?
Onderwerp is gesloten.
- Hervé
- Onderwerp Auteur
- Offline
Minder
Meer
- Berichten: 121
- Ontvangen bedankjes 0
2 jaren 6 dagen geleden #2311
door Hervé
Beantwoord door Hervé in topic Problem displaying buttons
Hi
I want the same type of display whether there is a video or not!
I have sent the image just as I want it.
To compare with clibre.eu/infos-sur-le-libre
I want the same type of display whether there is a video or not!
I have sent the image just as I want it.
To compare with clibre.eu/infos-sur-le-libre
Onderwerp is gesloten.
- Ruud van Lent
- Offline
Minder
Meer
- Berichten: 1624
- Ontvangen bedankjes 107
2 jaren 6 dagen geleden #2312
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Problem displaying buttons
Onderwerp is gesloten.
- Hervé
- Onderwerp Auteur
- Offline
Minder
Meer
- Berichten: 121
- Ontvangen bedankjes 0
2 jaren 6 dagen geleden #2314
door Hervé
Beantwoord door Hervé in topic Problem displaying buttons
Hi
Ok for hiding the buttons on the blog page (sorry, it was simple, but strange because hidden if there was no video!?)
Otherwise the conflict remains with the video preventing truncation on the blog page.
I sent the file (blog_item.php) to see if you could solve this problem
Regards
Ok for hiding the buttons on the blog page (sorry, it was simple, but strange because hidden if there was no video!?)
Otherwise the conflict remains with the video preventing truncation on the blog page.
I sent the file (blog_item.php) to see if you could solve this problem
Regards
Onderwerp is gesloten.
- Ruud van Lent
- Offline
Minder
Meer
- Berichten: 1624
- Ontvangen bedankjes 107
2 jaren 6 dagen geleden #2316
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Problem displaying buttons
Hi,
can you add a readmore in article "LoL, une affaire sérieuse"?
Because there is no read more, there is also no introtext so your truncation logic doesn't work.
can you add a readmore in article "LoL, une affaire sérieuse"?
Because there is no read more, there is also no introtext so your truncation logic doesn't work.
Onderwerp is gesloten.
- Hervé
- Onderwerp Auteur
- Offline
Minder
Meer
- Berichten: 121
- Ontvangen bedankjes 0
2 jaren 6 dagen geleden #2317
door Hervé
Beantwoord door Hervé in topic Problem displaying buttons
Hello Ruud
This bothers me, because on this site and another with the same architecture, other people (collaborative site) can add a video from time to time.
They will have trouble understanding the input variants.
I know it comes from my IF ... ELSE (which I had found, last time in another thread, to see the video thumbnail).
Would you see a solution to have the thumbnail AND the beginning of the article text by adapting blog_item.php a bit?
This bothers me, because on this site and another with the same architecture, other people (collaborative site) can add a video from time to time.
They will have trouble understanding the input variants.
I know it comes from my IF ... ELSE (which I had found, last time in another thread, to see the video thumbnail).
Would you see a solution to have the thumbnail AND the beginning of the article text by adapting blog_item.php a bit?
Onderwerp is gesloten.
- Ruud van Lent
- Offline
Minder
Meer
- Berichten: 1624
- Ontvangen bedankjes 107
2 jaren 6 dagen geleden #2318
door Ruud van Lent
Beantwoord door Ruud van Lent in topic Problem displaying buttons
What you could do is get the iframe from the text and replace it with e.g. '[.]'. then truncate the text. then replace the '[.]' with the iframe.
That way the text is truncated without the iframe that counts as length.
or
you now truncate on 300. You can also get the length of the iframe in the text and add that to the 300. So if the length is 100 then truncate on 400
I think the last is easiest
That way the text is truncated without the iframe that counts as length.
or
you now truncate on 300. You can also get the length of the iframe in the text and add that to the 300. So if the length is 100 then truncate on 400
I think the last is easiest
Onderwerp is gesloten.