The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PM send-items on/off option in User CP
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. |
#2
|
||||
|
||||
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: HTML Code:
<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> |
#3
|
||||
|
||||
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. |
#4
|
||||
|
||||
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. |
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
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). |
#7
|
||||
|
||||
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! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|