Membership Plugin error msg
            3 posts by 3 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: September 27, 2010   (RSS)          
          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
                          
        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
                    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:
Hope this helps
                          
        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/
                    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:
                          
        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
                    Chris