Adriano Faria Posted May 13, 2018 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.
TheJackal84 Posted May 13, 2018 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?
Adriano Faria Posted May 13, 2018 Author Posted May 13, 2018 Yes, No and Cancel instead of Ok and Cancel.
TheJackal84 Posted May 13, 2018 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
Adriano Faria Posted May 13, 2018 Author Posted May 13, 2018 Why would this be restricted to admin only? What’s the reason? I don’t see amy sense in it.
bfarber Posted May 14, 2018 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.
Adriano Faria Posted May 14, 2018 Author 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.