View Full Version : User can Enable/Disable Quick Reply?
Cyricx
03-22-2004, 09:01 PM
Was thinking about this.
We have quick reply enabled on my board but trying to optimize things for the dialup users so their load times aren't as bad :)
Thought about doing something in the templates with the profilefield manager, but the quick reply is enabled via showthread.php by what I can tell.
Prolly could still use the profilefield for a yes no radio..
Any ideas? Or has anyone already hacked this in that would like to share? :)
whar are you telling that...a user can activate/deactivate the Quick Reply ?
maggie
03-22-2004, 09:36 PM
Oooo... I'd like to be able to do that, too... I like the quick reply, but a lot of my members don't!
Boofo
03-22-2004, 09:46 PM
That should be easy for vB3. Just make a new profilefield and do a conditional in the showthtread template. Like the following:
<if condition="$bbuserinfo[fieldxx] == 'yes'">
$quickreply
</if>
Boofo
03-22-2004, 10:25 PM
I've just done this if anybody needs the code for it. ;)
SVTBlackLight01
03-22-2004, 10:50 PM
Boofo,
Could you post the code here? This is a great idea, and it will also be useful for many other profile options.
These conditionals are awesome! :D
Boofo
03-22-2004, 11:13 PM
Here you go! ;)
Installation instructions:
~~~~~~~~~~~~~~~~~~~~~~
Create a new Custom Profile Field:
~~~~~~~~~~~~~~~~~~~~~~
Title: Quick Reply Box Status
Description: Show Quick Reply Box below each thread page?
Type: Single-Selection Radio Buttons
Options: Yes
No
Set Default: Yes
Display Page: Thread Viewing
~~~~~~~~~~~~~~~~~~~~~~
In showthread template FIND
~~~~~~~~~~~~~~~~~~~~~~
$quickreply
~~~~~~~~~~~~~~~~~~~~~~
REPLACE that with
~~~~~~~~~~~~~~~~~~~~~~
<if condition="$bbuserinfo['field15'] == 'Yes' OR $bbuserinfo['field15'] == ''">
$quickreply
</if>
NOTE: Change field15 to the profile field of the Quick Reply Box Status option.
~~~~~~~~~~~~~~~~~~~~~~
Cyricx
03-22-2004, 11:31 PM
damn I thought I looked for that variable and didn't see it LOL
Thanks boofo, that'll teach me to use the damn search function ;)
Boofo
03-22-2004, 11:45 PM
What search function? I just made that code a few minutes ago. I didn't get it from vb.org. ;)
SVTBlackLight01
03-23-2004, 05:51 AM
Thanks! I've already implemented it on a few things. :D
I did something similar to this for VB2 and it there was so much more involved.
Boofo
03-23-2004, 06:10 AM
You're very welcome, sir. ;)
Yes, vB3 is great for this kind of thing. I also have an option for fixed or liquid display and well as the option for postbit ot postbit_legacy template. With the conditionals and profilefields, the ideas are almost endless for what you can come up with for user options. ;)
maggie
03-24-2004, 12:29 AM
I'm afraid I'm missing something, I can't get it to work... it's listed as field7 in the profile fields, display order 5... I should use the 7, right?
Dadgummit, I like this one, can't figure out what I'm doing wrong... :(
Boofo
03-24-2004, 12:31 AM
Relax, we'll get it working for you. ;)
Yes, use field7.
maggie
03-24-2004, 12:41 AM
Should the quick reply be turned on, in the standard options? or off?
I got the "click for quick reply" to show up, with the code you wrote, but not the box itself...
maggie
03-24-2004, 01:12 AM
But the quick reply link just takes you to the regular reply page... *pouting*
maggie
03-24-2004, 01:37 AM
LOL I guess that capital "Y" was pretty important, huh? :o
**now off to find that Nosey Bugger Blocker" again**
Wonder how I'll mess that one up? :D
maggie
03-24-2004, 01:38 AM
Oops! Minding manners!
Thanks so much for that hack... seems folks on both sides of that issue care a LOT! :o
And now out of thread, to let someone else talk... :D
Boofo
03-24-2004, 03:02 AM
LOL @ maggie. I knew you'd get it working. ;)
maggie
03-24-2004, 03:45 AM
I'm slow, but I get there... so long as I don't throw my hands up in frustration, anyway... :D
Vigile
03-24-2004, 08:05 AM
Here you go! ;)
Can I presume Boofo the OR statement is for guests?
Here is a better way of doing it.
Do what freddie says in this post:
http://www.vbulletin.com/forum/showpost.php?p=569294&postcount=5
you can then change the Left/Top texts to On/Off
and then replace this $vboptions['legacypostbit']
with $vboptions['quickreply'] .
Done. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.