-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link in notification messages #1468
Comments
Okay, we're not talking about the same thing. I'm not talking about e-mail notifications, but private messages. Before, the link was clickable. The date of the message is not important in my example. |
Did some quick testing on xoops.org with pm module. A message with just a URL only, all as one line, became clickable as expected.
The same URL inside of other lines displayed as plain text.
TextSanitizer::makeClickable() appears to have a regex issue in handling line breaks. |
@geekwright OK, I'll look into it this weekend and fix it |
@GregMage please check out the fix and test if it works for you: mambax7@91c2360 @geekwright The PhpUnit tests for Please let me know if we need to add any extra tests for this function |
Can you email me the whole link, so I could test it here locally? |
They're just notification messages. In this case it's newbb. You can even test on xoops.org, the problem is there. |
The first thing is that I don't write a PM but it's a notification message. https://www.monxoops.fr/modules/newbb/viewtopic.php?topic_id=139&post_id=1440#forumpost1440 Bye ` And the link is not clickable... |
If I make a PM like you I get clickable links! |
I tested it now on XOOPS and the content (URL link and email address) works fine, but the link to the original post is not working:
If you're still awake, let me know what code did you exactly change that made it work again, was it the whole module.textsanitizer.php file? Please provide me with a link to that exact file, because files change over time, so I need to know which file exactly is working. Thanks! |
It seems to be fixed now. Copy the code of these two methods: protected function makeClickableCallbackEmailAddress($match)
public function makeClickable($text) from here: And let me know if it's working for you. |
Perfect, it works now! Thanks a lot! |
It was fixed in the upcoming XOOPS 2.5.12
Michael
…On Mon, Jun 10, 2024 at 02:35 Grégory Mage ***@***.***> wrote:
Perfect, it works now! Thanks a lot!
Why do you put this problem as closed? I don't see any Pull requests that
fix this here.
—
Reply to this email directly, view it on GitHub
<#1468 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEV2NQN55LPJKOS6XQECSLZGVCK5AVCNFSM6AAAAABI62LATSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJXGQ2DCNJXGQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
No code fixes the problem at the moment. This issue will be closed when a PR is done! |
@GregMage That's exactly how the process works: if something was closed, but you discover that a new bug appears, and the old was not fully fixed, just reopen it, no big deal! |
I didn't reopen it for this reason! This issue will be closed with the PR that fixes the problem. |
It seems to me that this problem has existed since the switch to smarty 3. Before, when one received a notification message, the link was clickable. Now it's not!
It's not practical...
The text was updated successfully, but these errors were encountered: