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.

Boofo 03-23-2004 06:10 AM

You're very welcome, sir. ;)

Yes, vB3 is great for this kind of thing. I also have an option for fixed or liquid display and well as the option for postbit ot postbit_legacy template. With the conditionals and profilefields, the ideas are almost endless for what you can come up with for user options. ;)

maggie 03-24-2004 12:29 AM

I'm afraid I'm missing something, I can't get it to work... it's listed as field7 in the profile fields, display order 5... I should use the 7, right?
Dadgummit, I like this one, can't figure out what I'm doing wrong... :(

Boofo 03-24-2004 12:31 AM

Relax, we'll get it working for you. ;)

Yes, use field7.

maggie 03-24-2004 12:41 AM

Should the quick reply be turned on, in the standard options? or off?
I got the "click for quick reply" to show up, with the code you wrote, but not the box itself...

maggie 03-24-2004 01:12 AM

But the quick reply link just takes you to the regular reply page... *pouting*

maggie 03-24-2004 01:37 AM

LOL I guess that capital "Y" was pretty important, huh? :o
**now off to find that Nosey Bugger Blocker" again**
Wonder how I'll mess that one up? :D

maggie 03-24-2004 01:38 AM

Oops! Minding manners!
Thanks so much for that hack... seems folks on both sides of that issue care a LOT! :o
And now out of thread, to let someone else talk... :D

Boofo 03-24-2004 03:02 AM

LOL @ maggie. I knew you'd get it working. ;)

maggie 03-24-2004 03:45 AM

I'm slow, but I get there... so long as I don't throw my hands up in frustration, anyway... :D

Vigile 03-24-2004 08:05 AM

Quote:

Originally Posted by Boofo
Here you go! ;)

Can I presume Boofo the OR statement is for guests?

M1th 03-24-2004 09:53 AM

Here is a better way of doing it.

Do what freddie says in this post:

http://www.vbulletin.com/forum/showp...94&postcount=5

you can then change the Left/Top texts to On/Off

and then replace this $vboptions['legacypostbit']

with $vboptions['quickreply'] .

Done. :)


All times are GMT. The time now is 12:59 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.01096 seconds
  • Memory Usage 1,748KB
  • 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
  • (21)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