Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2009, 02:13 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hiding Quick Reply...

Currently running vb 3.8.3...

Can someone instruct me on how to hide the Quick Reply area on certain forums?

I'm assuming I have to edit the SHOWTHREAD template and look for the following code:

Code:
<if condition="$show['quickreply']>

However...I'm showing two locations for that after searching the SHOWTHREAD template. I find these two entries:

Code:
<if condition="$show['quickreply'] OR $show['ajax_js']">

and...

Code:
<if condition="$show['quickreply']">

If anyone can help...I certainly would appreciate it.
Reply With Quote
  #2  
Old 06-12-2009, 03:20 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking at the page source leads me to think it's the second one. However, you may be able to do this just with a plugin. Find a hook location in the showthread template, do a check for the forumid, and if it's one you don't want to show Quick Reply on, set $show['quickreply'] to false. I've never tried that, but I'm guessing it would work.
Reply With Quote
  #3  
Old 06-12-2009, 03:20 AM
1Unreal 1Unreal is offline
 
Join Date: Jul 2008
Location: London
Posts: 372
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vB Options -> Message Posting and Editing Options -> Quick Reply

It's saying $show['ajax_js'] aswell as $show['quickreply'] because the quick reply is an ajax feature
Reply With Quote
  #4  
Old 06-12-2009, 03:52 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Looking at the page source leads me to think it's the second one. However, you may be able to do this just with a plugin. Find a hook location in the showthread template, do a check for the forumid, and if it's one you don't want to show Quick Reply on, set $show['quickreply'] to false. I've never tried that, but I'm guessing it would work.
Thanks Lynne...but I'm a little lost. Would ya mind simplifying what you just said to me...it's been a long day.

Thanks...
Reply With Quote
  #5  
Old 06-12-2009, 03:58 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something like

PHP Code:
if ($forumid == 'xx'$show['quickreply'] = '0'
OR, I forgot it's also just an option as 1UnReal said, so:
PHP Code:
if ($forumid == 'xx'$vbulletin->options['quickreply'] = '0'
Reply With Quote
  #6  
Old 06-12-2009, 04:08 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Something like

PHP Code:
if ($forumid == 'xx'$show['quickreply'] = '0'
OR, I forgot it's also just an option as 1UnReal said, so:
PHP Code:
if ($forumid == 'xx'$vbulletin->options['quickreply'] = '0'

Lynne...thanks for the replies...

Okay...I understand what you're doing with the code...but the problem I face is where to put this code.

I know absolutely nothing about plugins...and I read the how to in the Articles section here...and I'm still lost.

So...someone's going to have to take me by the hand on this one...and make sure I don't get anything on me...

Maybe I should be wearing a bib.
Reply With Quote
  #7  
Old 06-12-2009, 04:21 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just go to Plugins & Products > Add New Plugin. Select fetch_foruminfo as the hook location (that one should work), give it a title, leave the order, add the code from above (I'd use the one regarding the options, not the first one) but replace xx with the forum id, make the plugin active, save. Test it out. If it works, do the same on your live site.
Reply With Quote
  #8  
Old 06-12-2009, 04:49 AM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Just go to Plugins & Products > Add New Plugin. Select fetch_foruminfo as the hook location (that one should work), give it a title, leave the order, add the code from above (I'd use the one regarding the options, not the first one) but replace xx with the forum id, make the plugin active, save. Test it out. If it works, do the same on your live site.
Okay...I don't have a test site.

Also...I'll have multiple forums for which I do not want the Quick Reply to appear. How would that be coded...individually?

Thanks, again...

--------------- Added [DATE]1244786990[/DATE] at [TIME]1244786990[/TIME] ---------------

I just added a line for each forum...and all seems well.

I'm sorry I was such a bother...but really do appreciate your help. It works...and I'm happy. That's all that matters...right?

Thanks, again...

I can now go to sleep...
Reply With Quote
  #9  
Old 06-12-2009, 04:03 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For multiple forums, try this:

PHP Code:
if (in_array($forumid,array(x,y,z))) $vbulletin->options['quickreply'] = '0'
Reply With Quote
  #10  
Old 06-12-2009, 04:58 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Lynne...

Code changed and it works...much obliged.
Reply With Quote
Reply


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 06:26 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.04504 seconds
  • Memory Usage 2,265KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_code
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete