The Private Message thread page is just re-using the Forum/Article/Blog thread page template. PMs are stored in the database the same way as normal thread posts. Private Message is just a special channel and essentially acts the same as a regular channel. This is the reason the UI for PM is the same as the forum/article/blog channels.
But for PMs, using "Post" as the button label for sending a PM is not appropriate. Using "Send" button label is more appropriate. The button is globally using the phrase variable "post_verb" in the Phrase Manager in AdminCP but if you change it to "Send", it will change all instances which is not good for non-PM channels.
But worry not! There is a simple pure CSS solution. Simply add this custom CSS in css_additional template in AdminCP or Sitebuilder Style Editor:
For vBCloud:
The above code hardcodes the button label to "Send" as vBCloud does not support using phrase variables in templates. Update the button label to the desired text accordingly. If your forum uses multiple languages and you want to have different translations for the Send button, add the following additional CSS code:
The sample code above is for Italian language denoted by lang="it". Simply change "it" with a different 2-letter language code in lowercase. Repeat the same block for each language your forum supports.
For vB5 and vB6 (Self-hosted):
The above code doesn't hardcode the button text like it does for vBCloud but it uses a phrase variable which means you don't have to do anything extra for multiple translations. It uses the existing phrase variable called "send" (in {vb:phrase send}) which has default value of "Send". If you want to use a different phrase variable, you can create a new custom phrase in the Phrase Manager and then use the variable name you assigned to it and replace it like below
If you find this mod useful, please consider buying me a ☕. Thanks!
Enjoy!
But for PMs, using "Post" as the button label for sending a PM is not appropriate. Using "Send" button label is more appropriate. The button is globally using the phrase variable "post_verb" in the Phrase Manager in AdminCP but if you change it to "Send", it will change all instances which is not good for non-PM channels.
But worry not! There is a simple pure CSS solution. Simply add this custom CSS in css_additional template in AdminCP or Sitebuilder Style Editor:
For vBCloud:
Code:
/* Change PM button to "Send" - START */ #privateMessageContainer .js-content-entry-submit, #vb-page-body:has(#privateMessageContainer) #preview-overlay .js-content-entry-preview-submit, .b-pmchat__widget .js-pmchat-submit { text-indent: -999999px; display: flex; justify-content: center; } #privateMessageContainer .js-content-entry-submit::after, #vb-page-body:has(#privateMessageContainer) #preview-overlay .js-content-entry-preview-submit::after, .b-pmchat__widget .js-pmchat-submit::after { content: 'Send'; text-indent: 0; } /* Change PM button to "Send" - END */
Code:
/* Sample code for Italian */ html[lang="it"] #privateMessageContainer .js-content-entry-submit::after, #vb-page-body:has(#privateMessageContainer) #preview-overlay .js-content-entry-preview-submit::after, .b-pmchat__widget .js-pmchat-submit::after{ content: 'Inviare'; }
For vB5 and vB6 (Self-hosted):
Code:
/* Change PM button to "Send" - START */ #privateMessageContainer .js-content-entry-submit, #vb-page-body:has(#privateMessageContainer) #preview-overlay .js-content-entry-preview-submit, .b-pmchat__widget .js-pmchat-submit { text-indent: -999999px; display: flex; justify-content: center; } #privateMessageContainer .js-content-entry-submit::after, #vb-page-body:has(#privateMessageContainer) #preview-overlay .js-content-entry-preview-submit::after, .b-pmchat__widget .js-pmchat-submit::after{ content: '{vb:phrase send}'; text-indent: 0; } /* Change PM button to "Send" - END */
Code:
#privateMessageContainer .js-content-entry-submit::after, #vb-page-body:has(#privateMessageContainer) #preview-overlay .js-content-entry-preview-submit::after, .b-pmchat__widget .js-pmchat-submit::after{ content: '{vb:phrase thePhraseVariableYouCreated}'; text-indent: 0; }
If you find this mod useful, please consider buying me a ☕. Thanks!
Enjoy!
Comment