View Full Version : Save a Copy of Sent PMs Preference in User CP
Oblivion Knight
10-15-2005, 10:00 PM
A port of my 3.0.x code modification, here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=74465).
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 (https://vborg.vbsupport.ru/showpost.php?p=811076&postcount=16).
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
if ($templatename == 'pm_newpm')
{
$checked['savecopy'] = (($vbulletin->userinfo['savecopy']) ? 'checked="checked"' : '');
}
MissKalunji
10-17-2005, 06:59 PM
*** Untested ***
private_complete
if ($templatename == 'pm_newpm')
{
$checked['savecopy'] = (($vbulletin->userinfo['savecopy']) ? 'checked="checked"' : '');
}
whats that for?
Oblivion Knight
10-17-2005, 07:09 PM
*** Untested ***
private_complete
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.
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
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
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
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:
ALTER TABLE p_user CHANGE savecopy savecopy TINYINT (1) UNSIGNED NOT NULL DEFAULT '1'Replace p with your table prefix, if you're not using one completely remove p_.
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
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/showthread.php?s=&threadid=100152
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..
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.