Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2008, 02:44 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 05-12-2008, 03:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Where x in fieldx is the field number for your profile field.
Reply With Quote
  #3  
Old 05-12-2008, 08:03 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 05-12-2008, 10:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-14-2008, 09:24 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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?
Reply With Quote
  #6  
Old 05-14-2008, 10:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #7  
Old 05-14-2008, 11:07 PM
Black Tiger's Avatar
Black Tiger Black Tiger is offline
 
Join Date: Apr 2004
Location: Netherlands
Posts: 957
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04184 seconds
  • Memory Usage 2,226KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete