to previous topic Print topic to next topic

 Root :: Developments :: Tutorials and programming :: pncUserHack + FormExpress + customization
 Moderated by:
 
  Bottom  pncUserHack + FormExpress + customization
Wendell Posted: 05.10.2004, 04:33
Pizzaman
Pizzaman


registered: Mar 22, 2004
Posts: 27

Status:  offline
last visit: 07.09.05
I'm really struggling here, hoping for some advice.

I am using pncUserHack to create DUD fields in the database. When a user registers for the first time, I want them to be able to fill out SOME of the fields, but not all. I then have a form created in FormExpress which stores data to the DUD fields in the database. However, if I disable or delete DUD fields using the pncUserHack, I assume that FormExpress cannot store data to those fields.

Any thoughts on how I might accomplish this? Thank you!! :)
Top  Wendell send PM Homepage
 
Chestnut Posted: 05.10.2004, 09:15
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
I'm missing a little something in your question...

Putting the FormExpress aside, if you want your users to fill some of the fields, the solution would probably be to make those fields "required" so that in the original form, only those "required" fields shows up.

?


Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
Wendell Posted: 05.10.2004, 16:59
Pizzaman
Pizzaman


registered: Mar 22, 2004
Posts: 27

Status:  offline
last visit: 07.09.05
Well, I created several DUD fields for the sake of a FormExpress form. The FE form stores data in the created DUD fields. If I removed the DUD fields in the DUD admin area, then I assume they are removed from the database, thereby crippling FE's ability to store data to those fields. So I want new registrants to see only some of the DUD fields when signing up, but I don't want them all to be required. Then, when (and if) they later fill out the FE form, those "hidden" DUD fields would be filled. I hope this makes more sense, I'm having trouble explaining it.
Top  Wendell send PM Homepage
 
Chestnut Posted: 05.10.2004, 23:58
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
I... think... I'm ....... beginning to see the paint. :)

ButI don't see many solution I admit. One way is that if you can decide in your FE that a specific field is shown if the user is logged in... then.. MAYBE there would be a chance for that.

Example :
Code
  1. if (pnUserLoggedIn()) {
  2.  
  3.     // Do not show Extra Fields
  4.  
  5. } else {
  6.  
  7.     // Show the Extras...
  8.  
  9. }
  10.  


As I'm TOTALLY ignorant of FE since I never (yea yea I know, I'm a bum) tried it, I really don't know the extents of its possibilities.

Even if I still have some hard time grasping it all your idea, some of it might be possible with the future 0.8 as everything will be in templates with the Smarty possibilities (without thinking about FE). But still... in some way, it might not also.

Go figure....... (I'll have to try that damn FE one day or another I guess icon_lol )

Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
Wendell Posted: 08.10.2004, 03:29
Pizzaman
Pizzaman


registered: Mar 22, 2004
Posts: 27

Status:  offline
last visit: 07.09.05
Thank you, Chestnut, I will see what I can come up with. :D
Top  Wendell send PM Homepage
 



Powered by pnForum Version 2.0.1
DarkMindZ