Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Jeff B on February 14, 2018, 09:29:22 PM

Title: Confirmation code
Post by: Jeff B on February 14, 2018, 09:29:22 PM
Could someone help me with some code for links such as these?  I'm in need of a confirmation alert. "Are you sure?"  as the buttons are easily clicked by mistake.  A best case sceario would be something that takes care of all similar links in the file.

        <a href="', $scripturl, '?action=friends;sa=approve;u=', $context['member']['id'],';', $context['session_var'], '=', $context['session_id'], '" class="social_profile_btn">
', $txt['approve_friend'], '
</a> <a href="', $scripturl, '?action=friends;sa=remove;u=', $context['member']['id'],';', $context['session_var'], '=', $context['session_id'], '" class="social_profile_btn_red">
', $txt['reject_friend'], '
</a>';


Title: Re: Confirmation code
Post by: Nibogo on February 15, 2018, 05:24:10 PM
This was added to the newest version of Social Profile, you don't need to manually adjust it as I already did it for your site.
Title: Re: Confirmation code
Post by: Jeff B on February 15, 2018, 05:46:27 PM
YES!!  Thank you!