View Full Version : PM send-items on/off option in User CP
Black Tiger
05-12-2008, 02:44 PM
Seems to me this must be possible by doing some template changes and make a user profile option or something.
This is what I mean.
At this moment in the usercp when you reply to a pm the following option is selected automatically:
Save a copy of this message in your Sent Items folder.
Now I've editted a template so this is automatically not-checked.
But some other users are complaining again, because they would like it checked by default. Others do want it unchecked by default.
The only way to achieve this is to make a selection box in which users can select if they want to option selected or unselected by default.
If it possible somebody makes me such hack? Since for now it is only possible to select or deselect it on a board-wide basis and not on a per user basis.
Lynne
05-12-2008, 03:17 PM
Create a new Profile Field:
Title: Default for Saving PMs
Options: Saved
Not Saved
Then in your template pm_newpm change the line to this:
<div><label for="cb_savecopy"><input type="checkbox" name="savecopy" value="1" id="cb_savecopy" tabindex="1" <if condition="$bbuserinfo[fieldx] == 'Not Saved'"><else />$checked[savecopy]</if> /><phrase 1="private.php?$session[sessionurl]folderid=-1">$vbphrase[save_copy_in_sent_items_folder]</phrase></label></div>Where x in fieldx is the field number for your profile field.
Black Tiger
05-12-2008, 08:03 PM
Great!! Thanks for your quick answer Lynne.
I just tried and it really works! Super, many thanks!!!:)
Little question, can the "saved" and "not saved" also be translated in a way that English users see saved and unsaved and Dutch users see "bewaren" and "niet bewaren"?
I didn't find a way in the Language manager that quickly, but I'm also afraid if I translate that, the selection won't work anymore.
Lynne
05-12-2008, 10:42 PM
I really don't know. I've never used the languages, but they are based on the use of phrases and I am pretty sure you cannot use a phrase in the Profile Fields. So, I would guess not, but I am really not sure.
edit: I did notice that you can put a translation for the description for the hack, so you could say in your translation what the two terms mean.
Black Tiger
05-14-2008, 09:24 PM
I did notice that you can put a translation for the description for the hack,
Ah cool. How does that work? Just make a new phrase pointing to the name I gave to the profile field?
Lynne
05-14-2008, 10:19 PM
I don't have any other languages on my site to try it out with. But, I notice that when you click on Translations under Description, it brings up the phrase, so you just would select the language there (is that what you would normally do?) and input the translation.
Is Yes and No pretty universally understood? You could change the Options to Yes and No and word the description in such a way that those are the two options (and change the field option in the conditional).
Black Tiger
05-14-2008, 11:07 PM
Aaaah... now I see what you mean, unfortunately, these "translations" links are only working with the Title and Description field.
Normally I use the "search phrase" option, put in the English word and let it search on the Dutch language I have. Then I click edit and translate the text.:)
I did a search on Yes and No but did not find any English yes for the profile field.
The Global yes and no is already translated, so it seems translation is not working for this kind of stuff.
I'm happy most Dutch users do understand what yes and no means, so I think I leave it this way then. Thank you very much for helping me and thinking with me!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.