vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Default PM Read Receipts (https://vborg.vbsupport.ru/showthread.php?t=123850)

Darwinist 08-12-2006 10:00 PM

Default PM Read Receipts
 
I've had a few complaints from my members about the way they have to click the 'Request a read receipt for this message' checkbox each and every time they send someone a private message. Most would like to have this on by default, so I created this quick add-on to accommodate that request.

Features:
  • Allows each member to set whether or not they would like the 'Request a read receipt for this message' checkbox checked by default.

Installation Overview:
Files to Modify: 1
Templates to Modify: 0
Product:
-Plug-Ins: 0
-Templates: 0
-vB Options: 0
-Phrases: 0

Version History:
1.0.0 - Initial release.

*Tested and works for vBulletin versions 3.5.x to 3.6.0*

soletrader 08-13-2006 03:23 PM

Nice. Thank you

utw-Mephisto 08-13-2006 04:07 PM

You only need to change one template to make it default ticked. There is no need to modify any files !!!

To do so, open the template pm_newpm

Search for

Code:

<if condition="$show['trackpm']"><div><label for="cb_receipt"><input type="checkbox" name="receipt" value="1" id="cb_receipt" $checked[receipt] />$vbphrase[request_receipt_for_message]</label></div></if>
and change to

Code:

<if condition="$show['trackpm']"><div><label for="cb_receipt"><input type="checkbox" name="receipt" value="1" id="cb_receipt" checked="checked" />$vbphrase[request_receipt_for_message]</label></div></if>
Or, if you would like to give them an option, use a IF condition in the template ..

Darwinist 08-13-2006 06:30 PM

Quote:

Originally Posted by utw-Mephisto
You only need to change one template to make it default ticked. There is no need to modify any files !!!

The idea was that the users would have the option to use it.

Quote:

Originally Posted by utw-Mephisto
Or, if you would like to give them an option, use a IF condition in the template ..

The problem with that is if you change the checkbox status and click 'preview', it'll reset itself to the default status. I would rather add one line to one file and have it working 100% rather then change one line in a template and have it working partially.

adwade 09-23-2006 10:06 PM

What if a user does not have access rights to request read receipts? Does this MOD keep this checkbox hidden from them?

PtitLu 08-23-2007 04:47 PM

Great mod, thanks.

yoyoyoyo 10-13-2007 03:06 AM

Quote:

Originally Posted by adwade (Post 1081841)
What if a user does not have access rights to request read receipts? Does this MOD keep this checkbox hidden from them?

good question

StarBuG 10-19-2007 09:53 AM

Hi

Thanks, I was looking for this a long time.

Is there any way to make this a plugin by any chance without the file edit?

StarBuG

Cindyl10 02-21-2009 03:45 PM

Does anyone know if this works with version 3.8.0? I've been looking for something like this and am really hoping it does!

Peejay 02-22-2009 06:52 AM

Excellent, many thanks :D


All times are GMT. The time now is 09:15 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.01361 seconds
  • Memory Usage 1,731KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete