• Welcome to Simple Machines Community Forum. Please login or sign up.
September 19, 2021, 07:43:50 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Feature question? Quick reply?

Started by Deprecated, August 04, 2008, 11:46:24 PM

Previous topic - Next topic

Deprecated

As implemented on vBulletin, IPB and others, you are viewing the thread and you can open a reply box (or already there in vBulletin if enabled), just type your reply while you can scroll up/down the thread.

Now I'm new to SMF and I'm discovering features every day that I thought should have been in the release, and yes they were, but they were not enabled, not explained, not evident to an SMF n00b.

I had wished SMF had the feature you hit the URL button, paste the URL in the pop-up box, click okay and the insert was done. Just yesterday I discovering that enabling Quick Edit did just that. Boy did I feel dumb! I switched all my forum members over immediately.

So I just wonder, is there a setting to enable this? Quick reply? Or a mod package? For vB style quick reply? I've read the mods and none of them fully explain the features except in a gloss with no details.

Angelotus

It can be set in your themesettings (admin -> Themes and settings).
There are also various of mods that will extend the quick reply box with smilies and bbcodes.
Members can also turn off/on the quick reply option thereselves in their profile

karlbenson

For everyone
Admin > Current Theme > Reset Options

Click the link "Reset Options for members using this theme"
Enable quick reply

Individually via
Profile > Look and Layout Options
Enable quick reply

Deprecated

LMAO! I'm finding so many features that I wished SMF had it does have, just off by default! I'm using quick reply now in writing my reply. :)

And thanks for the reminder regarding "for everyone." I've already used that to turn on everybody's WYSIWYG, another good feature that is off by default.

Thank you very much! :D

Deprecated

I have a related question. I love the way quick reply works, except one thing. I would rather have "Quote" take me to the WYSIWYG editor instead of putting it in the quick reply.

Is there a configuration for that or will I have to modify the code?

X3mE

Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Deprecated

Thanks for the suggestion. Actually I had already seen that mod and read about it a bit, but decided I prefer the quick reply to not have WYSIWYG. The reason is that at least in my browser all the animated smilies are a bit disruptive and cause a bit of cursor flicker from time to time. It's not so annoying that it needs fixing, and I may be the only one to see it, but I'd rather not have that on every topic. I like the simple quick reply, and then prefer to hit the REPLY tab if I want WYSIWYG. Thanks again. :)

Angelotus

If you use SMF 2.0 you can actually choose to show BBcode and smilies or smilies or BBcode. That simplifies and minimize your flickering cursur :)

Deprecated

Sorry, I should have stated that I'm running 2.0b3.1 version.

I think I just have a perverse preference that I want the full WYSIWYG editor to pop up when I hit Quote, not the quick reply, not the quick reply in WYSIWYG mode. I want the quick reply to stay plain and simple, and I don't want the quotes to show up there.

It's just a personal preference, and SMF is all about personal preferences, even to the degree that if you don't like things you're free to change the code. In fact I will change the Quote code to my preference, and I expect it would be a very simple change since Quote already knows how to go either place (quick reply or WYSIWYG). I can just change that one IF statement.

I just don't want to be changing code if there's a configuration setting for it. Wouldn't I feel stupid if I did that? :)

Rumbaar

I think you want to be able to 'quote', ie select a post to quote, then taken to the reply section and only have the replied quote show up after posting?

Yeah the nature of how the quoting system works in SMF I don't think that is possible.   But I personally think our system works well.  You can insert a quote into your post at anytime and select multiple quotes which you can then edit to your needs to remove contents etc.
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Deprecated

Quote from: Rumbaar on August 09, 2008, 12:10:24 AM
I think you want to be able to 'quote', ie select a post to quote, then taken to the reply section and only have the replied quote show up after posting?

No, that wasn't it at all.

1.) First imagine how posting works without quick reply enabled. You hit Reply, you get taken to the WYSIWYG. You hit Quote, you get taken to the WYSIWYG but the quote is pasted in your reply.

2.) Now imagine how it works when quick reply is enabled. You hit Reply, you get taken to the WYSIWYG. You hit Quote AND it pastes the quote into the quick reply window. Or you fill in the reply window and hit Post and it submits.

I don't like that. I want to restore the behavior in #1 above. I want Reply and Quote to work the same as before. I just want the quick reply enabled if somebody wants to type text into the window and hit Post.


I spent a few hours digging into this code today, and it is NOT simple. I can't even figure out how SMF decides whether Quote goes to the QR window or to the WYSIWYG editor. There are some places were SMF is incredibly obtuse.

Rumbaar

What happens if you want to have the quote to actually post into the quick reply area?  So you are looking to make two buttons for quoting?
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Deprecated

What happens is that I DO NOT WANT THE QUOTE TO ACTUALLY POST INTO THE QUICK REPLY AREA.

Oops, sorry for shouting. You're making this too complicated. I want the quick reply to work only when quotes are not being used. If the member wants quotes they would have to use the WYSIWYG.

ccbtimewiz

Basically, if you click the "quote" button on a post, it takes you to the reply page.

You'd have to edit the quote's buttons code in display.template.php. Remove the javascript onClick function.

Deprecated

Not quite sure I understand. If you click the Quote button, it pastes the quote into the QR box.

I never thought of looking at the Javascript. I've been poring over the PHP... :)

I just wanted to restore the operation of the Quote action as it was before Quick Reply was enabled. I seem to be having trouble communicating this.

Rumbaar

Quote from: Deprecated on August 09, 2008, 12:25:54 AMWhat happens is that I DO NOT WANT THE QUOTE TO ACTUALLY POST INTO THE QUICK REPLY AREA.
That is what I mean, you want to take away the quick reply and quote feature for all your users.  A feature I'm sure many would like to still use?

But if you want to globally do it and take away a great feature for your uses I'm sure you can hard code it to always open in the 'proper' reply area.  Though if I was a user of your forum and had quick reply on and then you forced me to go to the reply page to ever post any quotes I'd be annoyed very quickly.

Display.template.php
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="return oQuickReply.quote(', $message['id'], ', \'', $context['session_id'], '\', true);">', $reply_button, '</a>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Deprecated

August 09, 2008, 01:14:30 AM #16 Last Edit: August 09, 2008, 01:16:12 AM by Deprecated
Thanks for the tip Rumbaar. I'm operating a handicraft forum and my members are all technically unsophisticated. They would have never missed quick reply had I not enabled it. I want them sent to the WYSIWYG whenever they are posting more than a "me too" reply, so that they can better see what their post will look like.

I'm sorry you are so annoyed at my idea, but I thank you for your suggestion, and I'll look into the code that you pointed me to. :)


ETA: $options['display_quick_reply'] oh yeah, I should have seen that before!!! :)

Rumbaar

I'm not annoyed, just trying to be devils advocate.

I'm sure if you take away the // Can they reply? Have they turned on quick reply? option and only have the IF statement for the option of quoting without the quick reply it should be the same as before without the quick reply option set.
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Deprecated

I had a quick look at the code snippet and it looks like the spot I was looking before. It's way too late for me to get into coding mode tonight (nearly 11 p.m. here) but I'll have a look at that tomorrow.

I agree. It looks like you could nuke that one test and send it to the WYSIWYG. Thanks again!

Rumbaar

Did you have any luck with removing the quick_reply quote reply option for your forum?
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Deprecated

I have been working on several other things including submitting new mod packages. As it turns out, it seems that I have time later today to look into this. :)

Rumbaar

Personally I would have just changed the code to this:
// So... quick reply is off, but they *can* reply?
      if ($context['can_reply'])
         echo '
               <a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';
From the previous code that was there.
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Deprecated

Silly me, I keep forgetting about this. I got hung up writing mod packages.

Personally, I think I'll try your way first! I appreciate the help. :)

Deprecated

My TODO stack finally got popped to this modification, I tried your suggestion our Rumbaar, and it worked perfectly!!! :D

Thanks! :)

Advertisement: