Private Message Warning

Mick in Tutorials on 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: About PersonalMessage.template.php scripting help






Tagged with: pm smf messages warning 


Mick

Mick G

  idesignsmf.com

    

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 Pizza.

  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.
Commitment issues? Unsubscribe at any time.

Get 100% complete access to our entire collection and find out why 11,202 SMF owners prefer our themes



0 Comments



 Related Articles






  Free Forever. Our themes will always be free. Forever. Period.