IMPORTING CSV FILE AS ORDINARY USER

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
igimanigi
Posts: 11
Joined: 2016-11-30 18:24

IMPORTING CSV FILE AS ORDINARY USER

Post by igimanigi » 2017-04-04 06:06

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

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: IMPORTING CSV FILE AS ORDINARY USER

Post by R Tammam » 2017-12-10 11:00

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

User avatar
dilitimor
Veteran Member
Posts: 36
Joined: 2013-01-10 02:45
Location: Jakarta, Indonesia
Contact:

Re: IMPORTING CSV FILE AS ORDINARY USER

Post by dilitimor » 2017-12-20 02:48

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

R Tammam
Veteran Member
Posts: 113
Joined: 2017-08-26 15:35

Re: IMPORTING CSV FILE AS ORDINARY USER

Post by R Tammam » 2018-01-16 12:02

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 .

Post Reply