Page 1 of 1
IMPORTING CSV FILE AS ORDINARY USER
Posted: 2017-04-04 06:06
by igimanigi
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
Re: IMPORTING CSV FILE AS ORDINARY USER
Posted: 2017-12-10 11:00
by R Tammam
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
Re: IMPORTING CSV FILE AS ORDINARY USER
Posted: 2017-12-20 02:48
by dilitimor
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
Re: IMPORTING CSV FILE AS ORDINARY USER
Posted: 2018-01-16 12:02
by R Tammam
you should replace the admin includes with the following includes
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");
and i have tried them , but i got other errors , if i find something new , i will tell you .