hi everyone, is it possible to disable links in chat? i want to disable hyperlinks in chat where nothing can be clicked
--thanks in advance!
You received this message because you are subscribed to the Google Groups "AJAX-chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-chat+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Do you want the url to be there or that ommitted too?
On Oct 29, 2017 7:04 PM, <annie...@gmail.com> wrote:
hi everyone, is it possible to disable links in chat? i want to disable hyperlinks in chat where nothing can be clicked--thanks in advance!
You received this message because you are subscribed to the Google Groups "AJAX-chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-chat+...@googlegroups.com.
replaceBBCodeUrl: function(content, attribute) { var url, regExpUrl, link; if(attribute) url = attribute.replace(/\s/gm, this.encodeText(' ')); else url = this.stripBBCodeTags(content.replace(/\s/gm, this.encodeText(' '))); regExpUrl = new RegExp( '^(?:(?:http)|(?:https)|(?:ftp)|(?:irc)):\\/\\/', '' ); if(!url || !url.match(regExpUrl)) return content; this.inUrlBBCode = true; link = '<a href="' + url + '" onclick="window.open(this.href); return false;">' + this.replaceBBCode(content) + '</a>'; this.inUrlBBCode = false; return link; },
then change:
link = '<a href="' + url + '" onclick="window.open(this.href); return false;">' + this.replaceBBCode(content) + '</a>';to either this if you want all to be eliminated:link = '';or to this if you want the content of the link without the link being used:link = this.replaceBBCode(content);Hope that helps :)
if it isnt too much trouble to add that would be great. I tried setting the values to false at line 59,60 in cofing.js but it did nothing, unless there's some sort of rehash command or reset process im forgetting about? thanks for replying bobby
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-chat+unsubscribe@googlegroups.com.
worked perfect after clearing mysql database! Bobby, thank you so much for helping me!
--