Jump to content

Delete button code help please


Genestoy

Recommended Posts

Posted

I am trying to add a "Delete" member button to an existing app so I can quickly delete a validating member

Here is the code I am trying but it just keeps going to a "Page not found -  Error code: 2S106/1"  so obviously I have something wrong in the code?

<li><a href='{$user->url()->setQueryString( array( 'do' => 'delete', 'id' => $user->member_id, 'delete' => 1  ) )}' data-action='delete' class='ipsButton ipsButton_verySmall ipsButton_normal'>{lang="delete"}</a></li>

Here is the FireFox "Firebug" code from the acp for that delete button

<a href="https://mysite.com/forums/admin/?adsess=3t819atr8getjfjgtk24hevq10&amp;app=core&amp;module=members&amp;controller=members&amp;do=delete&amp;id=11" class="ipsButton ipsButton_verySmall ipsButton_normal " data-delete="" data-delete-warning="This action cannot be undone. The member's account will be deleted immediately." data-noajax="">
					<i class="fa fa-times-circle"></i> &nbsp;&nbsp;<span data-role="title">Delete</span>
				</a>

 

Thanks for any help

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...