Membership Plugin error msg

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/

Re: [Jason] Membership Plugin error msg

By Chris - September 27, 2010

Hi Maurice,

Alternately, you could just add HTML code to the messages you want to be green:

$errorsAndAlerts = "<span style='color:green;'>Thanks, we've updated your profile!</span>";
All the best,
Chris