Contribute to the development of SMF. Follow the coding discussions taking place on >> Github.

Private Message Warning

Mick in Tutorials
May 17, 2019

Creating a very simple warning message when users private message each other. In this case, I wanted a specific warning shown when sending a private message using a simple line of html and css code. Nothing fancy, nothing troublesome. This area can be used to your liking, ie; ads, rules, etc.

1. Open Themes/default/PersonalMessage.template.php and find:

	echo '
<dl id="post_header">';

Add after:

        echo '
                                <div class="pm-warning"><p>Please, do not send private messages to the author for support. Instead, reply to articles so others can also find the answer. <br /> Regards, The idesignSMF team.</p></div>';

2. Open your current theme's css file and at the very end add:

.pm-warning {
   background-color: #2ecc71;
   width: 100%;
   color: #ffffff;
   font-size: 18px;
   line-height: 22px;
   text-align: center;
   padding: 15px;
   display: block;
   margin-bottom: 20px;
}

Replace hex colors to your liking as well as the text


Reference: https://www.simplemachines.org/community/index.php?topic=567825.0

Tagged with: pm smf messages warning 


Mick

Mick G

Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time and has a weakness for Tacos and Pizza.

Website: https://www.idesignsmf.com/

    


0 Comments



Connect with us:


Improve SMF

If you wish to contribute to the development of SMF you can contribute to the coding discussions taking place on Github. You are also welcome to suggest features which you would like to see added to the software in the Feature Requests board.

  Receive our monthly newsletter right in your inbox.


Advertisement  




 Tutorials
In this section you will find in-depth how-to's involving common SMF development and design techniques.



go up