MyBB Community Forums

Full Version: PM Alert Banner
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone tell me what template this PM alert banner is located in? I want to change the color of the fonts but can't find the template it's located in. I'm using the 2.0 Inspired theme.

Thanks for any help you could give me.

[attachment=29190]
(2013-05-03, 02:03 PM)MJ456 Wrote: [ -> ]find .pm_alert in global css of your theme and edit the color codes.

Thank you very much. That is where I changed the background to red and the message font to white. I wasn't very clear in my first post but what I want to do is change the from name and title shown in what looks like a blue font to white also. So I'm looking for the template to modify the blue font to white.

Thanks again!

[attachment=29191]
The template is:
Global Templates > global_pm_alert
(2013-05-03, 04:06 PM)effone Wrote: [ -> ]The template is:
Global Templates > global_pm_alert

Thank you. I'm sorry for my ignorance but I don't see where you would change the font color for the "from" name and the "title". Here's the code in that template.

<div class="pm_alert" id="pm_notice">
	<div class="float_right"><a href="private.php?action=dismiss_notice&amp;my_post_key={$mybb->post_code}" title="{$lang->dismiss_notice}" onclick="return MyBB.dismissPMNotice()"><img src="{$theme['imgdir']}/dismiss_notice.gif" 
alt="{$lang->dismiss_notice}" title="[x]" /></a></div>
	<div>{$privatemessage_text}</div>
</div>
<br />

I made this change in the global.language.php file and I got the "title" font to be white but I don't know if that's a good way to do it or not. I haven't figured out how to get the "from" name in white by modifying that file though.

Modified:
<strong>You have one unread private message</strong> from {1} titled <a href="private.php?action=read&amp;pmid={2}" 
style="font-weight: bold; color: #ffffff";>{3}</a>

Original:
<strong>You have one unread private message</strong> from {1} titled <a href="private.php?action=read&amp;pmid={2}" 
style="font-weight: bold;">{3}</a>

Thanks for all of the help.
^ though adding style in a language file doesn't affect much, I feel its better to use required style in global.css
like .pm_alert a {color: #ffffff; font-weight: bold;}
You have to change the from name's and title's font color this way in global.css:

.pm_alert a:link, .pm_alert a:visited {
color: #ff0000;
}

more?

.pm_alert a:hover, .pm_alert a:active {
color: #00ff00;
}
Thanks guys.

Like this?

.pm_alert {
	background: #B22222;
	color: #FFFFFF;
	border: 1px solid #FFD324;
	text-align: center;
	padding: 5px 20px;
	margin-bottom: 15px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font-size: 12px;
        a:link, a:visited {color: #ffffff;}
}

I'm new to PHP, obvious I know, so please bare with me. Shy
No, if you want to change the link text color you must use css anchor pseudo classes.
http://www.w3schools.com/css/css_pseudo_classes.asp

This is CSS, not PHP.