QuickReply Reloaded

Disable QR on a per-user basis? - QuickReply Reloaded

Disable QR on a per-user basis?

by larkyv » Sat May 26, 2018 3:10 pm

We have one user who is really picky about how "his" forum works. He doesn't want the quick reply form at all, preferring to read all posts and then go to full reply (no accounting for tastes...)

Is there some way to do this just for him? I mean, short of making him in a guest group forever!

I'm using the 3.2 beta version with a prosilver-based custom theme.
User avatar
larkyv
Registered User
Posts: 57
Joined: Wed Feb 21, 2018 3:45 pm
Contact:

Re: Disable QR on a per-user basis?

by Татьяна5 » Sat May 26, 2018 7:59 pm

For one user you can hide quickreply in the template
styles/your_style/temlate/viewtopic_body.html
Find

Code: Select all

<!-- IF S_QUICK_REPLY -->
	<!-- INCLUDE quickreply_editor.html -->
<!-- ENDIF -->
Replace with

Code: Select all

<!-- IF S_QUICK_REPLY and USERNAME != 'nickname_that_user' -->
	<!-- INCLUDE quickreply_editor.html -->
<!-- ENDIF -->
User avatar
Татьяна5
Registered User
Posts: 135
Joined: Wed Feb 13, 2013 5:30 pm
Name: Tatiana
Contact:

Re: Disable QR on a per-user basis?

by larkyv » Sat May 26, 2018 8:23 pm

Lovely! Thank you SO much.
User avatar
larkyv
Registered User
Posts: 57
Joined: Wed Feb 21, 2018 3:45 pm
Contact:

Re: Disable QR on a per-user basis?

by larkyv » Sat May 26, 2018 10:14 pm

Well.... I made that edit, putting his nick in 'nickname_that_user' (tried his nick by itself, and also nickname_his nick) and he's still seeing QR. So perhaps I've been too long away from php and I'm not getting it right!

But you know, it occurs to me that I can give him his own special group and just not enable QR for that group.
User avatar
larkyv
Registered User
Posts: 57
Joined: Wed Feb 21, 2018 3:45 pm
Contact:

Re: Disable QR on a per-user basis?

by Татьяна5 » Sat May 26, 2018 10:23 pm

It is not php

Have you purged forum cache?
And that user should purge cache in the browser
User avatar
Татьяна5
Registered User
Posts: 135
Joined: Wed Feb 13, 2013 5:30 pm
Name: Tatiana
Contact:

Re: Disable QR on a per-user basis?

by larkyv » Sat May 26, 2018 10:28 pm

Yes, I purged the forum cache, and had him hard refresh his browser. So I'm thinking I didn't do the edit plus add his name properly. And I don't know why I thought I could enable/disable this for given groups - probably thinking about some other extension!
User avatar
larkyv
Registered User
Posts: 57
Joined: Wed Feb 21, 2018 3:45 pm
Contact:

Re: Disable QR on a per-user basis?

by Татьяна5 » Sat May 26, 2018 10:37 pm

Example with nickname

Code: Select all

<!-- IF S_QUICK_REPLY and USERNAME != 'larkyv' -->
	<!-- INCLUDE quickreply_editor.html -->
<!-- ENDIF -->
User avatar
Татьяна5
Registered User
Posts: 135
Joined: Wed Feb 13, 2013 5:30 pm
Name: Tatiana
Contact:

Re: Disable QR on a per-user basis?

by larkyv » Sat May 26, 2018 10:42 pm

I did try it that way. Perhaps he's not really clearing his browser cache. I'll try it with one of the other members; if it works for her, then I'll walk him through cache-clearing.

Thanks! Appreciate the help.
User avatar
larkyv
Registered User
Posts: 57
Joined: Wed Feb 21, 2018 3:45 pm
Contact:

Re: Disable QR on a per-user basis?

by LavIgor » Mon May 28, 2018 4:03 pm

larkyv wrote:But you know, it occurs to me that I can give him his own special group and just not enable QR for that group.
I think it would be a better approach, permissions serve exactly the described purpose - to differ the access for certain users.
Moreover this change will remain intact when you update the extension.
LavIgor
Registered User
Posts: 541
Joined: Mon Apr 28, 2014 1:47 pm

Re: Disable QR on a per-user basis?

by larkyv » Mon May 28, 2018 4:34 pm

Hi Igor. Actually, I was just coming back to say what the whole upshot was. It turns out he didn't explain his objection thoroughly. What he disliked was the "floaty" ajaxified QR bar that moved up and down with the post screen. Disabled that, and everyone's very happy now! Thanks much for all the help!
User avatar
larkyv
Registered User
Posts: 57
Joined: Wed Feb 21, 2018 3:45 pm
Contact:

Re: Disable QR on a per-user basis?

by LavIgor » Mon May 28, 2018 4:37 pm

Actually it is not moving but being fixed on the screen.
And it can be configured in the UCP.
LavIgor
Registered User
Posts: 541
Joined: Mon Apr 28, 2014 1:47 pm