Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Form access without login

Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Form access without login

Unread post by Fike »

Hi,

For some applications I used the ''Access without login' feature of nuBuilder 2 to make some cool things like building a QR code with an url which contained the form id and the record id as parameters of an edit form, and when somebody scanned the QR code with a smartpgone, the nubuilder's edit form opened and displayed the record's information.

I have used this feature also to automate/schedule reports sent by email (this post says how I did it) http://forums.nubuilder.cloud/viewtopic.php?f=3&t=8303

I noticed that in nuBuilderPro there is no longer the 'Access without login' dropdown in the General Tab of the forms, and I also noticed that nuBuilderPro doesn't use parameters in the url.

Is there anyway to open an edit form on a give record ID without being logged in ?


Kind regrads,

Fike
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Form access without login

Unread post by admin »

Fike,

(You'll need the latest build)


You can do it with nucall.php

URL.. (p=Code of PHP Code)

Code: Select all

http://localhost/site_c/nucall.php?p=1&a=calling&b=without&c=logging&d=in
PHP.. (Allow non secure Access = Yes)

Code: Select all

print '#a# #b# #c# #d#';
Capture3.PNG
Steven
You do not have the required permissions to view the files attached to this post.
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Re: Form access without login

Unread post by Fike »

Great! Thanks a lot Steven !
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Form access without login

Unread post by admin »

.
israelwebdev
Posts: 21
Joined: Thu May 22, 2014 6:08 pm

Re: Form access without login

Unread post by israelwebdev »

How do we pull up a form then in PHP?
Not the DB record, but a working form?
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Form access without login

Unread post by admin »

israelwebdev,

I don't understand your question

Steven
israelwebdev
Posts: 21
Joined: Thu May 22, 2014 6:08 pm

Re: Form access without login

Unread post by israelwebdev »

The original question was "how do I render an edit form with non-secure access?"
The answer was to enable that option using PHP code, and call it using nucall.php

What PHP code will let me render the form?
Would I use a combination of PHP and JS (nuOpenForm...)?

The other option would be to create a new user with the desired form as a homepage, and use the u/p parameters to auto-login and embed.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Form access without login

Unread post by admin »

israelwebdev,

The auto login would be the best way.

Steven
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Re: Form access without login

Unread post by Fike »

I am using the auto login option proposed by israelwebdev.

It works fine. However, the homepage form of the recently created user opens at record '-1', and I would like it to open at a given recrod.

Is there any parameter that I can pass on the url to open that form at a given record?

I mean, something like:

http://localhost/nupro/index.php?u=newu ... 4f69eg5g96


Kind regrads,


Fike
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Form access without login

Unread post by admin »

Fike,

There is in the latest build..

http://wiki.nubuilder.net/index.php/Mis ... ogging_in.

Steven
Locked