vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   User can Enable/Disable Quick Reply? (https://vborg.vbsupport.ru/showthread.php?t=62802)

Cyricx 03-22-2004 09:01 PM

User can Enable/Disable Quick Reply?
 
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? :)

PET 03-22-2004 09:07 PM

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! ;)

Quote:

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.


All times are GMT. The time now is 09:58 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.01334 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete