Not clickable links
-
Hi marcellorobert,
Those become clickable if you have BuddyPress or Users Ultra installed. Those go to profile page. The default WordPress doesn’t have profile pages so we leave those not clickable.Thank you for your reply. I installed BuddyPress and Users Ultra, but it changes nothing.
That’s impossible,
What wpDiscuz version you use?Are you sue you’re checking registered users Username Links? Because the Guests names will not be a link.
ah! you’re talking about comment content links? Ok, I thought you mean Username links. Ok it doesn’t have such a function yet. We’ll add this function in next release.
I’ve got the last version. But i don’t understand the paramaters “registered users Username Links”. Where is it?
Ok, I thought you mean Username links.
The comment content links are being filtered by WordPress. It doesn’t allow wpDiscuz to display. We’re going to add a new option to allow/disable links in comments so it’ll work on next wpDiscuz very soon.ah ok, so it’s not possible actualy.
i’ll be back…
thank youIn /wp-content/plugins/wpdiscuz/wc.php
Find line:
$comment = preg_replace('|[\n]+|', '<br />', wp_kses($comment, 'default'));(line 225)
After Paste this code:
function formatUrlsInText($text){ $reg_exUrl = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; preg_match_all($reg_exUrl, $text, $matches); $usedPatterns = array(); foreach($matches[0] as $pattern){ if(!array_key_exists($pattern, $usedPatterns)){ $usedPatterns[$pattern]=true; $text = str_replace($pattern, "<a href='".$pattern."' target='_blank'>$pattern</a> ", $text); } } return $text; } function linkToImg($text){ $reg_exUrl = "#<\s*?a\b[^>]*>(.*?)</a\b[^>]*>#s"; preg_match_all($reg_exUrl, $text, $matches); $usedPatterns = array(); foreach($matches[0] as $pattern){ if(!array_key_exists($pattern, $usedPatterns)){ $usedPatterns[$pattern]=true; $noHtml = strip_tags($pattern); if (preg_match('/(\.jpg|\.jpge|\.png|\.gif|\.bmp)$/', $noHtml)) { $text = str_replace($pattern, " <a href='".$noHtml."' target='_blank'><img style='max-width:96%; border:#FFF 5px solid; -webkit-box-shadow: 1px 1px 7px 0px rgba(0,0,0,0.75); -moz-box-shadow: 1px 1px 7px 0px rgba(0,0,0,0.75); box-shadow: 1px 1px 7px 0px rgba(0,0,0,0.75);' src='".$noHtml."' /></a>", $text); } } } return $text; } function parser($text) { return linkToImg(formatUrlsInText($text)); } $comment = parser($comment);Save and enjoy…
Now, you have automatic clickable links and visible images 🙂
Hi marcellorobert,
We just released wpDiscuz 2.0.0 with lots of new features. Please update.New Features:
* Click-able Author Name
* Live update of new comments with notifier buttons
* Multi-level (nested) comment threads, with maximum levels depth setting option
* Different comment date formats, reflects WordPress date format settings
* URLs to link auto-conversion in comment texts
* Multiple line-breaks (limited by WordPress comment filter)
* Comment author notification options with special checkboxes on comment form
* Ability to add comment system on attachment pages if it’s allowed by WordPress
* Comments are generated with WP comment-id to link those with anchor(#)
* Option to set Live Update mode (auto or notifier buttons) and update period
* Option to set nested comments maximum depth level
* Option to manage (hide/show) email notification checkboxes
* Option to manage background color of just loaded new comment (on live update)I seem to have trouble finding this option for URL links. What tab is it under on the WpDiscuz settings? I figured it would be under general settings, but it wasn’t there or anywhere else that I could find.
Hi nimex,
There is not any option for that. wpDiscuz, creates links from simple URLs. You can insert some link in comment and test it.Apologies, I should have been more clear. I am referring to there being links from simple URLs in comments. When I get a pingback from another blog (currently testing it with other posts from my same blog) and I approve it as a comment, the title of the comment should be a URL link. And when I go in to manually edit the comment to check the link, the URL is definitely in the appropriate text box to make the title a link. However, it cannot be clicked. I was wondering if there was a setting for this.
Hi nimex,
This may be wpDiscuz isseue, we’ll check and fix it in next release. We’re planning to release wpDiscuz 2.2.0 this week.I hope a solution is found soon. I really like this plugin and would hate to switch.
Here’s a link that shows an example of what I’m talking about: http://gameofenergy.com/energy-research/biofuel/biofuel-introduction/
At the bottom is a comment, where the title of the comment should be linking to the article it is referencing on the same website.
The topic ‘Not clickable links’ is closed to new replies.
(@marcellorobert)
11 years, 6 months ago
hello
and congratulations for this great plugin.
My problem is: links in comments are not clickable.
How to solve this problem?
thank you in advance
https://ww.wp.xz.cn/plugins/wpdiscuz/