The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] target=blank + more

10 Posts
4 Users
3 Reactions
1,800 Views
(@danniee)
Posts: 124
Estimable Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 
[#1207]

Hi,

I've just noticed that links in the comments are not opened in a new window/tab, why is that? For me this is absolutely essential.

Also, are links posted "nofollow"?


 
Posted : 16/10/2020 3:47 pm
Topic Tags
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Hi @danniee,

wpDiscuz uses WordPress native comments functions and doesn't change the logic of the external website link system. 

As this is WordPress native logic we'd recommend finding the solution using some WordPress plugins e.g the Comment Link Remove plugin. 

After installing this plugin you'll need to enable the "Open Comment Links in New Tab" option. This option is located in the Dashboard > Settings > QC CLR Settings admin page.

Screenshot of Successful Lazy Load in Desktop Mode

In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 16/10/2020 3:50 pm
(@danniee)
Posts: 124
Estimable Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Thanks for the quick response. There isn't a more straight forward way of doing this by just adding a line of custom css/php code to the child theme rather than having to install yet another plugin? Seems a bit overkill. Also, why can't this option be included directly in your plugin if you don't mind me asking?


 
Posted : 16/10/2020 3:52 pm
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@danniee,

You can use this js code, put it in the active theme js files. 

jQuery('#wpdcom .wpd-comment-text a').attr('target','_blank');

Helpful article: https://www.collectiveray.com/add-javascript-to-wordpress

 Also, why can't this option be included directly in your plugin if you don't mind me asking?

As I've already mentioned, wpDiscuz uses WordPress native comments functions and doesn't change the logic of the external website link system.


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 16/10/2020 3:58 pm
Orakel reacted
(@danniee)
Posts: 124
Estimable Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Thank you. However, I'm not a coder and don't know how to make use of that js code so I guess I'm out of luck.

I really don't see why there is a reason not to add the option even if its a native comments function, but ok. A simple checkbox would probably be easy for you to implement:

Open url in new tab: yes/no.

Make links nofollow: yes/no .

I like the plugin, but this is a bit disappointing and a dealbreak for me personally :/


 
Posted : 16/10/2020 4:15 pm
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@danniee,

We've found another easiest solution for you. Just put this code in the active theme functions.php file: 

add_filter('comment_text', function ($content) {
return preg_replace('~(<a[^>]+)(>)~is', '$1 target="_blank"$2', $content);
}, 999);

In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 16/10/2020 5:57 pm
danniee reacted
(@danniee)
Posts: 124
Estimable Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@asti excellent! Thank you so much 🙂


 
Posted : 16/10/2020 6:26 pm
Asti reacted
(@aerostar)
Posts: 138
Estimable Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@asti,

Thank you so much! We needed this as well. Job well done.

Cheers!


 
Posted : 16/10/2020 9:50 pm
(@orakel)
Posts: 107
Estimable Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@asti is the best!!! i will include this code too.

Thank you so much <3

 


 
Posted : 17/10/2020 2:34 am
(@orakel)
Posts: 107
Estimable Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Good work, you should integrate it to the wpdiscuz system.


 
Posted : 17/10/2020 2:58 am