Advertisement:

Author Topic: Confirmation code  (Read 683 times)

Offline Jeff B

  • Full Member
  • ***
  • Posts: 407
Confirmation code
« 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.

Code: [Select]
        <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>';


Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,663
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Confirmation code
« Reply #1 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.

Offline Jeff B

  • Full Member
  • ***
  • Posts: 407
Re: Confirmation code
« Reply #2 on: February 15, 2018, 05:46:27 PM »
YES!!  Thank you!