Adriano Faria Posted May 13, 2018 Share Posted May 13, 2018 Does it only works only in ACP? This: <a href="{url="app=advmedit&module=display&controller=display&do=messenger&id={$member->member_id}"}" class="ipsPos_right ipsType_medium" data-confirm data-confirmType="verify" data-confirmIcon="question" data-confirmMessage="{lang="admin_disable_messenger"}" data-confirmSubMessage="{lang="admin_disable_messenger_confirm"}" data-confirmButtons='{expression="json_encode( array( 'yes' => \IPS\Member::loggedIn()->language()->addToStack('no'), 'no' => \IPS\Member::loggedIn()->language()->addToStack('yes'), 'cancel' => \IPS\Member::loggedIn()->language()->addToStack('cancel') ) )" raw="true"}'> {lang="admin_disable_messenger"} </a> Shows on ACP like that: Same link on public side will show like that: Tks. Link to comment Share on other sites More sharing options...
TheJackal84 Posted May 13, 2018 Share Posted May 13, 2018 6 hours ago, Adriano Faria said: Does it only works only in ACP? This: <a href="{url="app=advmedit&module=display&controller=display&do=messenger&id={$member->member_id}"}" class="ipsPos_right ipsType_medium" data-confirm data-confirmType="verify" data-confirmIcon="question" data-confirmMessage="{lang="admin_disable_messenger"}" data-confirmSubMessage="{lang="admin_disable_messenger_confirm"}" data-confirmButtons='{expression="json_encode( array( 'yes' => \IPS\Member::loggedIn()->language()->addToStack('no'), 'no' => \IPS\Member::loggedIn()->language()->addToStack('yes'), 'cancel' => \IPS\Member::loggedIn()->language()->addToStack('cancel') ) )" raw="true"}'> {lang="admin_disable_messenger"} </a> Shows on ACP like that: Same link on public side will show like that: Tks. for the messages or any confirm? Link to comment Share on other sites More sharing options...
Adriano Faria Posted May 13, 2018 Author Share Posted May 13, 2018 Yes, No and Cancel instead of Ok and Cancel. Link to comment Share on other sites More sharing options...
TheJackal84 Posted May 13, 2018 Share Posted May 13, 2018 4 minutes ago, Adriano Faria said: Yes, No and Cancel instead of Ok and Cancel. seems like it is admin based, I found 14 hits for the data-confirmButtons and they are all admin, and the actual js I can only find in the dev file itself dev\js\admin\controllers\core\ips.core.app.js otherwise it is in the \applications\core\data\javascript.xml apart from them 2 the rest is found in the admin phtml's Link to comment Share on other sites More sharing options...
Adriano Faria Posted May 13, 2018 Author Share Posted May 13, 2018 Why would this be restricted to admin only? What’s the reason? I don’t see amy sense in it. Link to comment Share on other sites More sharing options...
bfarber Posted May 14, 2018 Share Posted May 14, 2018 We probably only ever needed it in the ACP so that's where it was built. I don't think there's a specific 'reason' in this case. Link to comment Share on other sites More sharing options...
Adriano Faria Posted May 14, 2018 Author Share Posted May 14, 2018 16 minutes ago, bfarber said: We probably only ever needed it in the ACP so that's where it was built. I don't think there's a specific 'reason' in this case. Can it changed then in a near release? Need to implement this in a resource. Tks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.