vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Optional Quick Reply for vB3 (https://vborg.vbsupport.ru/showthread.php?t=64203)

lazserus 04-21-2004 05:24 PM

Optional Quick Reply for vB3
 
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

Quote:

Originally Posted by lazserus
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

Quote:

Originally Posted by lazserus
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.

theo 04-25-2004 06:33 PM

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.

theo 04-25-2004 07:26 PM

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?

theo 04-25-2004 08:33 PM

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

theo 04-25-2004 08:43 PM

Thankyou - excellent stuff!!!!


All times are GMT. The time now is 11:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01072 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete