Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Encrypted Master Password support

Encrypted Master Password support

Started by stagebrace on 16 May 2011, 1:45 AM · Views: 53,706

Results 201 to 210 of 210
25 Apr 2023, 11:08 PM
#201
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Post #201 by jimmie

this is what i have in that file in that location

<?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 } ?>
26 Apr 2023, 12:07 AM
#202
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #202 by carlwhat

use:

<?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, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

26 Apr 2023, 12:52 AM
#203
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Post #203 by jimmie

Call to undefined function str_contains() zen 1.56c

26 Apr 2023, 2:17 AM
#204
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #204 by carlwhat

jimmie:

Call to undefined function str_contains() zen 1.56c

no good deed goes...

v1.5.7 added some polyfill functions.

try:

<?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, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

26 Apr 2023, 11:44 AM
#205
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Post #205 by jimmie

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

26 Apr 2023, 11:52 AM
#206
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Post #206 by jimmie

im sorry it did work, didnt finish uploading file.

26 Apr 2023, 4:52 PM
#207
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #207 by carlwhat

jimmie:

im sorry it did work, didnt finish uploading file.

you are welcome.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

26 Apr 2023, 5:37 PM
#208
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Post #208 by jimmie

thank you

11 May 2023, 6:25 PM
#209
apollowilcox avatar

apollowilcox

Zen Follower

Join Date:
Sep 2014
Location:
Indiana
Posts:
123
Plugin Contributions:
0

Post #209 by apollowilcox

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

11 May 2023, 6:40 PM
#210
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,154
Plugin Contributions:
56

Post #210 by lat9

apollowilcox:

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.