Page 21 of 21 FirstFirst ... 11192021
Results 201 to 210 of 210
  1. #201
    Join Date
    Jan 2013
    Posts
    808
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    this is what i have in that file in that location
    Code:
    <?php for ($i=0, $n=sizeof($output); $i<$n; $i++) { ?>
    	<?php
    	$msg_pera='';
    	if(strpos($output[$i]['params'],'messageStackError')>0){
    		$msg_pera=str_replace('messageStackError','alert alert-danger alert-dismissable',$output[$i]['params']);
    	}else if(strpos($output[$i]['params'],'messageStackWarning')>0){
    		$msg_pera=str_replace('messageStackWarning','alert alert-warning alert-dismissable',$output[$i]['params']);
    	}else if(strpos($output[$i]['params'],'messageStackSuccess')>0){
    		$msg_pera=str_replace('messageStackSuccess','alert alert-success alert-dismissable',$output[$i]['params']);
    	}else if(strpos($output[$i]['params'],'messageStackCaution')>0){
    		$msg_pera=str_replace('messageStackCaution','alert alert-warning alert-dismissable',$output[$i]['params']);
    	}else{
    		$msg_pera=str_replace('messageStackCaution','alert alert-info alert-dismissable',$output[$i]['params']);
    	}
    	?>
    	<div <?php echo $msg_pera; ?>><?php echo $output[$i]['text']; ?><button class="close" aria-hidden="true" data-dismiss="alert" type="button"></button></div>
    <?php } ?>

  2. #202
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,571
    Plugin Contributions
    11

    Default Re: Encrypted Master Password support

    use:

    PHP Code:
    <?php
        
    for ($i 0$n sizeof($output); $i $n$i++) {
            if (!
    str_contains($output[$i]['text'], 'Currently shopping for')) {
                
    $msg_pera '';
                if (
    strpos($output[$i]['params'], 'messageStackError') > 0) {
                    
    $msg_pera str_replace('messageStackError''alert alert-danger alert-dismissable'$output[$i]['params']);
                } elseif (
    strpos($output[$i]['params'], 'messageStackWarning') > 0) {
                    
    $msg_pera str_replace('messageStackWarning''alert alert-warning alert-dismissable'$output[$i]['params']);
                } elseif (
    strpos($output[$i]['params'], 'messageStackSuccess') > 0) {
                    
    $msg_pera str_replace('messageStackSuccess''alert alert-success alert-dismissable'$output[$i]['params']);
                } elseif (
    strpos($output[$i]['params'], 'messageStackCaution') > 0) {
                    
    $msg_pera str_replace('messageStackCaution''alert alert-warning alert-dismissable'$output[$i]['params']);
                } else {
                    
    $msg_pera str_replace('messageStackCaution''alert alert-info alert-dismissable'$output[$i]['params']);
                }
                
    ?>
                <div <?= $msg_pera?>><?= $output[$i]['text']; ?>
                    <button class="close" aria-hidden="true" data-dismiss="alert" type="button"></button>
                </div>
                <?php
            
    }
        }
    author of square Webpay. called the savior by the chief bottle washer...
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    available for hire.

  3. #203
    Join Date
    Jan 2013
    Posts
    808
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    Call to undefined function str_contains() zen 1.56c

  4. #204
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,571
    Plugin Contributions
    11

    Default Re: Encrypted Master Password support

    Quote Originally Posted by jimmie View Post
    Call to undefined function str_contains() zen 1.56c
    no good deed goes...

    v1.5.7 added some polyfill functions.

    try:

    PHP Code:
    <?php

        
    for ($i 0$n sizeof($output); $i $n$i++) {
            if ( 
    false === strpos($output[$i]['text'], 'urrently shopping for')) {
                
    $msg_pera '';
                if (
    strpos($output[$i]['params'], 'messageStackError') > 0) {
                    
    $msg_pera str_replace('messageStackError''alert alert-danger alert-dismissable'$output[$i]['params']);
                } elseif (
    strpos($output[$i]['params'], 'messageStackWarning') > 0) {
                    
    $msg_pera str_replace('messageStackWarning''alert alert-warning alert-dismissable'$output[$i]['params']);
                } elseif (
    strpos($output[$i]['params'], 'messageStackSuccess') > 0) {
                    
    $msg_pera str_replace('messageStackSuccess''alert alert-success alert-dismissable'$output[$i]['params']);
                } elseif (
    strpos($output[$i]['params'], 'messageStackCaution') > 0) {
                    
    $msg_pera str_replace('messageStackCaution''alert alert-warning alert-dismissable'$output[$i]['params']);
                } else {
                    
    $msg_pera str_replace('messageStackCaution''alert alert-info alert-dismissable'$output[$i]['params']);
                }
                
    ?>
                <div <?= $msg_pera?>><?= $output[$i]['text']; ?>
                    <button class="close" aria-hidden="true" data-dismiss="alert" type="button"></button>
                </div>
                <?php
            
    }
        }
    best.
    author of square Webpay. called the savior by the chief bottle washer...
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    available for hire.

  5. #205
    Join Date
    Jan 2013
    Posts
    808
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    didnt work, i still have to click it off, on every page

  6. #206
    Join Date
    Jan 2013
    Posts
    808
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    im sorry it did work, didnt finish uploading file.

  7. #207
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,571
    Plugin Contributions
    11

    Default Re: Encrypted Master Password support

    Quote Originally Posted by jimmie View Post
    im sorry it did work, didnt finish uploading file.
    you are welcome.
    author of square Webpay. called the savior by the chief bottle washer...
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    available for hire.

  8. #208
    Join Date
    Jan 2013
    Posts
    808
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    thank you

  9. #209
    Join Date
    Sep 2014
    Location
    Indiana
    Posts
    88
    Plugin Contributions
    0

    Default Re: Encrypted Master Password support

    Using 1.5.8a: When we "place order" as a customer, the "updated by" field of the order_status_history always shows the same, specific admin's name. It does show/ store the name of the admin that actually placed the order from their own admin login.

    Not a big deal, but it would be nice to have the admin listed that actually placed the order on behalf of the customer.

    Matt

  10. #210
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    11,926
    Plugin Contributions
    86

    Default Re: Encrypted Master Password support

    Quote Originally Posted by apollowilcox View Post
    Using 1.5.8a: When we "place order" as a customer, the "updated by" field of the order_status_history always shows the same, specific admin's name. It does show/ store the name of the admin that actually placed the order from their own admin login.

    Not a big deal, but it would be nice to have the admin listed that actually placed the order on behalf of the customer.

    Matt
    Since this feature is now "in core", I'll ask that you post in one of the Zen Cart base threads so that your issue has more visibility.

 

 
Page 21 of 21 FirstFirst ... 11192021

Similar Threads

  1. v139h tweaking encrypted master password and cowoa
    By lankeeyankee in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 28 Feb 2012, 08:50 PM
  2. Master Password Encrypted mod support
    By Woodymon in forum All Other Contributions/Addons
    Replies: 62
    Last Post: 16 May 2011, 02:48 AM
  3. encrypted master password stopped working
    By stagebrace in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 23 Jan 2010, 06:48 AM
  4. Master Password vs Encrypted Master Password
    By srturner47 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Apr 2008, 04:05 PM
  5. Encrypted master password probs
    By icklebits in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Jun 2007, 06:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR