Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2004, 05:24 PM
lazserus's Avatar
lazserus lazserus is offline
 
Join Date: Mar 2004
Location: Planet Earth
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 04-21-2004, 05:43 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 04-21-2004, 05:47 PM
lazserus's Avatar
lazserus lazserus is offline
 
Join Date: Mar 2004
Location: Planet Earth
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 04-21-2004, 06:06 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just relized a problem with this

change

<if condition="$bbuserinfo[fieldX]">$quickreply</if>
to

<if condition="$bbuserinfo[fieldX] != No">$quickreply</if>
Reply With Quote
  #5  
Old 04-21-2004, 06:15 PM
lazserus's Avatar
lazserus lazserus is offline
 
Join Date: Mar 2004
Location: Planet Earth
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 04-21-2004, 06:16 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #7  
Old 04-21-2004, 06:32 PM
lazserus's Avatar
lazserus lazserus is offline
 
Join Date: Mar 2004
Location: Planet Earth
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 04-25-2004, 06:33 PM
theo theo is offline
 
Join Date: Apr 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'n new to hacks but am trying to install this. Where is the showthread in the CP???? please
Reply With Quote
  #9  
Old 04-25-2004, 06:59 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its a template.
Reply With Quote
  #10  
Old 04-25-2004, 07:26 PM
theo theo is offline
 
Join Date: Apr 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06730 seconds
  • Memory Usage 2,246KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete