vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Save a Copy of Sent PMs Preference in User CP (https://vborg.vbsupport.ru/showthread.php?t=98551)

Oblivion Knight 10-15-2005 10:00 PM

Save a Copy of Sent PMs Preference in User CP
 
A port of my 3.0.x code modification, here.

This plugin provides your users with an option whether or not to save a copy of sent private messages by default.


If you want Sent PMs to remain saved by default, run this query.

Many thanks to KirbyDE for his words of wisdom. No further updates are planned unless Jelsoft change any of the hooks that this modification uses..

mindfrost82 10-16-2005 07:13 PM

I just installed this. I had it on 3.0.x and it worked great.

However, on this one, I can't seem to find the option in the UserCP under Edit Options. The checkbox shows up in the new PM window after the template edit, but the UserCP option isn't there.

Oblivion Knight 10-16-2005 07:42 PM

Sorry.. I forgot to include a template edit. :surprised:

All fixed.

mindfrost82 10-16-2005 07:50 PM

Thanks. Works great!

*Clicks Install*

MissKalunji 10-17-2005 06:28 PM

Perfect thanks!

Andreas 10-17-2005 06:50 PM

*** Untested ***
private_complete
PHP Code:

if ($templatename == 'pm_newpm')
{
    
$checked['savecopy'] = (($vbulletin->userinfo['savecopy']) ? 'checked="checked"' '');



MissKalunji 10-17-2005 06:59 PM

Quote:

Originally Posted by KirbyDE
*** Untested ***
private_complete
PHP Code:

if ($templatename == 'pm_newpm')
{
    
$checked['savecopy'] = (($vbulletin->userinfo['savecopy']) ? 'checked="checked"' '');




whats that for?

Oblivion Knight 10-17-2005 07:09 PM

Quote:

Originally Posted by KirbyDE
*** Untested ***
private_complete
PHP Code:

if ($templatename == 'pm_newpm')
{
    
$checked['savecopy'] = (($vbulletin->userinfo['savecopy']) ? 'checked="checked"' '');



Works perfectly, thank you Kirby.. :)

I'll update the instructions shortly with this change.


Quote:

Originally Posted by MissKalunji
whats that for?

It's an additional plugin instead of having to edit the pm_newpm template.. :)

MissKalunji 10-17-2005 08:58 PM

actually i dont know what im doing wrong but its not working....

MissKalunji 10-17-2005 09:07 PM

Quote:

Originally Posted by MissKalunji
actually i dont know what im doing wrong but its not working....

Never mind it works! thanks

GeoffE 10-29-2005 11:03 AM

Can't seem to get this working .. plugin installed fine, template modification OK, the option appears under User Options but it doesn't seem to make any difference if it is ticked or not, PM's still default to do not save. Any ideas?

Oblivion Knight 10-29-2005 06:20 PM

Quote:

Originally Posted by GeoffE
Can't seem to get this working .. plugin installed fine, template modification OK, the option appears under User Options but it doesn't seem to make any difference if it is ticked or not, PM's still default to do not save. Any ideas?

Check your user table and make sure there is a field called savecopy.

GeoffE 10-29-2005 10:56 PM

Yup, and it's set to 1 for my user.

Oblivion Knight 10-30-2005 06:02 AM

Make sure the template edit has been done for all styles that you are running.? :)

sinaluna 11-02-2005 02:29 PM

I love this hack but the default is set to "do not save private messages". I want the default to remain "save" and just give users the option of not saving.

How can I do this?

Thanks!

Oblivion Knight 11-02-2005 08:46 PM

Quote:

Originally Posted by sinaluna
I love this hack but the default is set to "do not save private messages". I want the default to remain "save" and just give users the option of not saving.

How can I do this?

Thanks!

Run this query:
[sql]ALTER TABLE p_user CHANGE savecopy savecopy TINYINT (1) UNSIGNED NOT NULL DEFAULT '1'[/sql]Replace [high]p[/high] with your table prefix, if you're not using one completely remove [high]p_[/high].

Should work (and yes, savecopy should be there twice).. :)

sinaluna 11-04-2005 09:54 PM

Thanks! Its working perfectly now. :)

gldtn 11-18-2005 07:52 AM

Works great!

Would be nice to get rid of the template edit tho ;)

thanks!

Oblivion Knight 11-18-2005 08:27 AM

It's possible, but is not something that I personally wish to do..

I like to be in control of my designs. ;)

toytaco99 11-30-2005 03:37 AM

Awesome awesome mod. This should definitely be part of the default vB system!!

msimplay 12-31-2005 07:26 PM

Quote:

Originally Posted by toytaco99
Awesome awesome mod. This should definitely be part of the default vB system!!


yeah wonder why it isn't

Tralala 02-04-2006 04:33 PM

This hack allows for the same and a couple more options too:
https://vborg.vbsupport.ru/showthrea...hreadid=100152

HBC 08-05-2006 06:19 PM

this still works for vB 3.6.0

the only thing that sucks is you have to re-mod the "modifyoptions"
templete every time you upgrade vB..

they always play with that template..

tqj 04-13-2008 01:09 PM

I'm looking for a version of this hack that will work with Version 3.6.8

Any help is greatly appreciated

Also when running the query How do I know what the table prefix is?
Is it the $db_prefix variable in conf.php?

wideopen 06-23-2008 09:01 PM

Need a little help with this one.. While in the userCp users get this messsage with a checkbox "Always Save a Copy of Sent Private Messages" when checked is doesn't save it anywhere.

The only way to get it to save is when you send a message to check it then.


All times are GMT. The time now is 04:44 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.01099 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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