Hi guys,
Is there a way of giving ordinary users ability to import files without logging into Admin area. I do not want to give my users admin access but they have to import data as they use the application.
Can this be done
IMPORTING CSV FILE AS ORDINARY USER
Re: IMPORTING CSV FILE AS ORDINARY USER
Hello igimanigi,
there is a pageUploadCSV.php in admin file, you can make a copy of it , put it outside the admin folder,
change includes in the top of page from admin includes to the ordinary custom page include
there is a pageUploadCSV.php in admin file, you can make a copy of it , put it outside the admin folder,
change includes in the top of page from admin includes to the ordinary custom page include
Re: IMPORTING CSV FILE AS ORDINARY USER
Hi Tammam,
which part of includes in the top of page that exactly should be change.
And how can it included in ordinary user menu
which part of includes in the top of page that exactly should be change.
And how can it included in ordinary user menu
Re: IMPORTING CSV FILE AS ORDINARY USER
you should replace the admin includes with the following includes
and i have tried them , but i got other errors , if i find something new , i will tell you .
Code: Select all
define('PREPEND_PATH', '../');
$hooks_dir = dirname(__FILE__);
include("$hooks_dir/../defaultLang.php");
include("$hooks_dir/../language.php");
include("$hooks_dir/../lib.php");