HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


OCF features question

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#68262 (In Topic #14511)
Avatar

Well-settled

members request them :)

Members request some features in the forum which I think could be useful for everyone. If these features are available already please just tell me I should read docs more carefully :) If they are not included yet it would be nice if you could implement them in future versions.
1. Button to add post author's nick to the reply. Like adding "2username:" string into the reply window.
2. Ability to quote mouse-selected text only from the post. It would be useful if user replies to the particular phrase in the post and would not need to do manual editing.
3. Is it possible to add more interface elements to the quick reply window? Like font size/colors and so on.
Back to the top
 
Posted
Rating:
#68510
Avatar

Well-settled

Just in case someone needs the mouse-selected text quotes here is the fix for it :)
1. Find forum/pages/modules/topicview.php (make a backup or better upload edited one to forum/pages/modules_custom/topicview.php)
2. Replace the string starting from (it should be 216 string):

Code

$javascript='var post
to:

Code

$javascript='var post=document.getElementById(\'post\'), txt=(window.getSelection?window.getSelection().toString():document.selection.createRange().text); if (!post) return true; var y=findPosY(post); if (y==0) return true; post.value+=(post.value==\'\'?\'\':\'\n\n\')+(txt==\'\'?\'[quote=\"'.addslashes($_postdetails['poster_username']).'\"]'.str_replace(chr(10),'\n',addslashes($_postdetails['post_original'])).'[/quote]
\n\':(\'[quote=\"'.addslashes($_postdetails['poster_username']).'\"]\n\'+txt+\'\n[/quote]
\')); window.scrollTo(0,y); return false;';
Attention: you should replace the entire string, not just the beginning :)
That's it, everything should work fine now.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: