Welcome, Guest
Username: Password: Remember me

TOPIC: User related data

User related data 26 Feb 2013 16:50 #6840

Hi, i am thinking to migrate an app i already did some time ago.
But i do not know how to do or if possible using j-cook.

It is a kind of curriculum-personal data for every user of a site. So i would like that in frontend everyuser had a item menu to access his own data, just as the joomla profile. Then from backend manage them all and maybe another additional view on frontend to show also them all. But the point is the access to the own data to modify and create automatically if doesn't exist the first time.

Thanks in advance
The administrator has disabled public write access.

Re: User related data 26 Feb 2013 19:03 #6841

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
It is not possible to import an app, but you can create everything with cook ;-)
The administrator has disabled public write access.

Re: User related data 26 Feb 2013 22:04 #6843

Hi
I know i have to create again from scratch!!!

My question is how to make a form available to every user and only one form, just like a personal profile.
The administrator has disabled public write access.

Re: User related data 26 Feb 2013 22:24 #6844

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
I believe the "author" wizard will come handy.
I think we already discussed many times "profile extension" apps on this forum
The administrator has disabled public write access.

Re: User related data 03 Mar 2013 15:33 #6897

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Well, if you want to do this in cook, just add a user data type field and click the unique property. That will ensure that each user can only add 1 entry. Furthermore, use the author wizard to auto insert the currently logged in user.

I wouldn't do it this way though. If it is in fact a user profile that you are creating, you should do it the proper way - a user profile plugin. Being a user plugin, you have immediate access to login/logout, register and more core events. This makes tasks like bailing out of authentication, registration and login etc, really simple since you are hooking your component-specific checks/routines into the standard joomla user flow. Also, setting custom session data from here is real easy.

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: User related data 03 Mar 2013 16:59 #6899

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
I also pointed out the fact that it would be so cool that cook could use the values of the native userprofile plugin of Joomla... But so much to do ...
The administrator has disabled public write access.

Re: User related data 03 Mar 2013 17:35 #6900

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Hey V,

It would be cool however, it would be a very tricky thing to accomplish since the number and type of fields/data vary so drastically between plugins. In all honesty though, they are so easy to write and the real work in a plugin is in coding the functionality - the routines, methods and so on - that I think for the time & energy it would take admin to develop a Cook plugin to work with any profile plugin in the sandbox would far exceed the real benefits of having it.

Also, the sandbox would have to be pretty strict in the sense that only installed plugins could be utilised as there's no way users would ever be allowed to deploy their own custom plugins in the sandbox... Unless of course, at some point cook evolves to encompass the production of plugins - something that has been mentioned previously by @admin - I'm sure that the way cook is evolving that this is a very real possibility too. But again, the only thing that the builder would be able to save you time with as far as a plugin (or module for that matter) is the XML file and a view for the form. You'd still have to write the plugin's logic/methods 'offline'.

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: User related data 03 Mar 2013 20:03 #6903

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
I really was just talking about the regular userprofile plugin that comes with Joomla, nothing else.
I coded my own routine to access it, just thought it would be cool to use it inside of cook directly. Many people don't even know about the userprofile plugin that is included in Joomla.
More info :
docs.joomla.org/Creating_a_profile_plugin
www.compassdesigns.net/joomla-17-expanded-user-profiles/
Last Edit: 03 Mar 2013 20:05 by VeCrea.
The administrator has disabled public write access.
Time to create page: 0.069 seconds

Get Started