Membership Plugin error msg

By Maurice - September 26, 2010

Hi it team,

I'm working with the Membership Plugin

when using the profile page there is a error msg code

this gives both successful and unsuccessful errors

but i want the successful error to displayed in a different color mmmm let me think green hahahaha.

is there a way to split the errors????

Thnx Maurice
-------------------------------------------

Dropmonkey.nl

Re: [Maurice] Membership Plugin error msg

By Jason - September 27, 2010

Hi Maurice,

In your code, when you are assigning values to the variable $errorsAndAlerts, you could also create a variable called $color. You can then assign this a value of any color your want (example, "red" or "green"). You can then output this variable along with the errorsAndAlerts:

example:

<?php if($errorsAndAlerts): ?>
<span style="color:<?php echo $color;?>">
<?php echo $errorsAndAlerts; ?>
</span>
<?php endif ?>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/