If you want to work it with CLEditor, do the following: Comment or remove the lines below in ezreply.js: /* $('body').animate({ scrollTop: ipt.position().top }, 300); ipt = ipt[0]; setCursorPosition(ipt, ipt.textLength); ipt.focus(); */
Then insert the lines below to the same place: var ed = ipt[0].editor; if (ed) { // Update the frame to match the contents of textarea ed.updateFrame(); }
An issue still remains though: it works only once without page refresh. Click reply -> write something -> post comment. You see your nice comment, but when you click reply again (without page refresh), nothing happens. I'd appreciate some help on fixing that...
im use russian latters for user nicks, when use "@" this simbol with russian nick - this nick dont have link to user profile (for users with latin letters works ok)
@andelf tell me more what i want to do, i dont know chinese lang how to modify '@mentions' and possible do link to profile when use cirillic latters with simbol '@'
@batters ok~ the key function is GetMention in the file functions.generl.php. there is a regular expression to match `@something`, so in order to use chinese or russian nick, you should modify it to support your lang. '/(?:^|[\s,\.])@([\S]{1,20})(?=[\s,\.!?]|$)/i' also library/core/class.format.php 's Menions() function first regexp change to '/(^|[\s,\.])@([\S]{1,20})(?=[\s,\.!?]|$)/i',
I've made some changes to this plugin to get it to work more reliably.
Previously it would stop working if the textarea was edited, as mentioned by @Csabbencs
It now uses val() rather than html() to check or modify the textarea contents, and the animate() call has also been changed to work more reliably.
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I am planning to add a link to anchor of the comment.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Comment or remove the lines below in ezreply.js:
/*
$('body').animate({ scrollTop: ipt.position().top }, 300);
ipt = ipt[0];
setCursorPosition(ipt, ipt.textLength);
ipt.focus();
*/
Then insert the lines below to the same place:
var ed = ipt[0].editor;
if (ed) {
// Update the frame to match the contents of textarea
ed.updateFrame();
}
An issue still remains though: it works only once without page refresh.
Click reply -> write something -> post comment. You see your nice comment, but when you click reply again (without page refresh), nothing happens.
I'd appreciate some help on fixing that...
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •how to modify '@mentions'
and possible do link to profile when use cirillic latters with simbol '@'
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •the key function is GetMention in the file functions.generl.php.
there is a regular expression to match `@something`, so in order to use chinese or russian nick, you should modify it to support your lang.
'/(?:^|[\s,\.])@([\S]{1,20})(?=[\s,\.!?]|$)/i'
also library/core/class.format.php 's Menions() function
first regexp change to '/(^|[\s,\.])@([\S]{1,20})(?=[\s,\.!?]|$)/i',
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •its not help rus nicks with simbol '@' dont have links to the profile
i change files functions.general.php and class.format.php as you wrote
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •perhaps you should full text search "mentions"
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I've made some changes to this plugin to get it to work more reliably.
Previously it would stop working if the textarea was edited, as mentioned by @Csabbencs
It now uses val() rather than html() to check or modify the textarea contents, and the animate() call has also been changed to work more reliably.
Download: http://cl.ly/2t3S02191S3j35231b17
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Please dont link downloads to external sites, via masked short urls. Upload as revised plugin if need be or speak to @underdog
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •It's not a masked URL, it's a link to a file hosted on the CloudApp service. Here's a direct download version of the link: http://cl.ly/2t3S02191S3j35231b17/EasyReply.zip
Not sure if @andelf is still around? Can @underdog help?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •