Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 13, 20186 yr 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.
May 13, 20186 yr 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?
May 13, 20186 yr 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
May 13, 20186 yr Author Why would this be restricted to admin only? What’s the reason? I don’t see amy sense in it.
May 14, 20186 yr 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.
May 14, 20186 yr Author 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.
Archived
This topic is now archived and is closed to further replies.