View Full Version : Optional Quick Reply for vB3
lazserus
04-21-2004, 05:24 PM
This is kind of 2 requests in one. I ran a few searches on here and couldn't find anything like it, so I'm shooting for a request.
I think a nice hack would be to have the user capable of turning on Quick Replies for themselves. Some users on my forums like it and some think it just clutters everything. I think it would be a nice addition in the usercp instead of just having it in the admincp as on or off. I suppose the admin should be able to override the feature, so maybe have an extra admincp option that would be along the lines of "user defined". So, the user themself can choose to enable the quick reply feature and the admin can still override if necessary.
If that's too much, then a simpler solution could be a quick reply pop-up box, just like the vB3 quick edit pop-up hack.
Zachery
04-21-2004, 05:43 PM
This is kind of 2 requests in one. I ran a few searches on here and couldn't find anything like it, so I'm shooting for a request.
I think a nice hack would be to have the user capable of turning on Quick Replies for themselves. Some users on my forums like it and some think it just clutters everything. I think it would be a nice addition in the usercp instead of just having it in the admincp as on or off. I suppose the admin should be able to override the feature, so maybe have an extra admincp option that would be along the lines of "user defined". So, the user themself can choose to enable the quick reply feature and the admin can still override if necessary.
If that's too much, then a simpler solution could be a quick reply pop-up box, just like the vB3 quick edit pop-up hack.
You can use an if condition and a profile field to accomplish this :) so that if the user doesnt want to have it displayed they then go to their profile and disable it by changing the condition.
Add a new profile field
AdminCP > User Profile Fields > Add New User Profile Field > Profile Field Type > Single Selection Menu > Continue
Title: Use Quick Reply
Description: This will let you enable or disable the quick reply
Options:
Yes
No
Set Default
Yes, But no First Blank Option
Filed Required: (suggestion) No, but display at registration
Editable by User: Yes
Hideen on profile: your choice
Searcable: your choice
Show on members list: your choice
Optional Input: No
Display Page : thread viewing (or your choice, thread viewing is the best fitting category)
Hit "Save"
Note the field ID it should look like field1 or field5 somthing along thoughs lines remember it
find in showthread
$quickreply
change too
<if condition="$bbuserinfo[fieldX]">$quickreply</if>
Replace X for the number that was displayed when you saved it
lazserus
04-21-2004, 05:47 PM
OOoohhhh. Got to love vB3. :) It's hard to tell what you can do with it and what needs to be hacked now. :P Thanks for the advice, I'm giving it a shot.
Zachery
04-21-2004, 06:06 PM
Just relized a problem with this
change
<if condition="$bbuserinfo[fieldX]">$quickreply</if>
to
<if condition="$bbuserinfo[fieldX] != No">$quickreply</if>
lazserus
04-21-2004, 06:15 PM
Yea, I got a parse error. Now, you're talking about showthread.php, correct? If so, there's 2 lines that have $quickreply in it. Just the first one that's alone? I'm getting parse errors on line 736 (which is where the first $quickreply resides) even after changing it to
<if condition="$bbuserinfo[fieldX] != No">$quickreply</if>
Zachery
04-21-2004, 06:16 PM
Yea, I got a parse error. Now, you're talking about showthread.php, correct? If so, there's 2 lines that have $quickreply in it. Just the first one that's alone? I'm getting parse errors on line 736 (which is where the first $quickreply resides) even after changing it to
<if condition="$bbuserinfo[fieldX] != No">$quickreply</if>
The SHOWTHREAD template... not the file...
lazserus
04-21-2004, 06:32 PM
:rolleyes: No wonder. Bahahhaha. That's the first thing I thought and I went looking for it and passed it right up. It's because I use Opera. IE is more friendly to the way vBulletin setup the Templates section, and I passed it right up because the text was so small. :nervous:
Works like a champ. You r0ck! Thanks much.
I'n new to hacks but am trying to install this. Where is the showthread in the CP???? please
Zachery
04-25-2004, 06:59 PM
Its a template.
Ive just followed these instructiosn yet i still see no quick reply box?????
The template has been saved and the new field created. No error messages just no quick reply box??
Help?
Zachery
04-25-2004, 07:45 PM
Did you ENABLE the quick reply for vB3?
where do i do that zachery - sorry to sound dumb but ive only had vb installed for 4 days
Zachery
04-25-2004, 08:35 PM
AdminCP > vBulletin Options > Message Posting and Editing Options > Quick Reply Enabled
Thankyou - excellent stuff!!!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.