This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
allow members to view entries but not edit
Started 13 years ago by Panort | 2 posts |
-
I found the code below on forums and edited my forms as directed. But I found out that if a member clicks on the magnifying glass, they are able to delete and edit what they see there. If there a way to prevent that happening?
The code below is what I found and changed but it does not affect the magnifying part of the view entries.<I see, you need to edit "view_entry.php" and "manage_entries.php" then, try to following this steps :
1. In "manage_entries.php", around line 25 and 40 you will see this code :
if(!empty($_POST['submit_del_selected'])){
and
}elseif (!empty($_POST['submit_del_all'])){
replace those code with
if(!empty($_POST['submit_del_selected']) && !empty($_SESSION['logged_in'])){
and
}elseif (!empty($_POST['submit_del_all']) && !empty($_SESSION['logged_in'])){
2. In "view_entry.php" on line 20 you will see this code
if(!empty($_GET['delete'])){
replace with
if(!empty($_GET['delete']) && !empty($_SESSION['logged_in']) ){>Posted 13 years ago # -
We have the complete files for this modifications. Please contact us directly via email and we'll send you the files.
You can mail to: customer.service [at] appnitro.comMachForm Founder
Posted 13 years ago #
Reply
You must log in to post.