Skip to Content Skip to Menu

Need consulting for a Calories Count Website

10 years 7 months ago #243708 by kiemthu123
Hi,

Im going to build a calories count website. I have posted some questions in other forums how to do it with Joomla and I received recommendation to use CB.

After reading all the FQA and cannot find the answer. So I decide to post this question here before making any payment.

1/ I need some more fields in registration form like: age, height, birthday, weight… And then, base on these data, there is a tool to calculate the calories per day for that person. When that user change his/her profile, the calories per day is changed also.

2/ I create some acticles to show the detail of calories of each food. Each article will have a form for user to add and store that number (calories) into somewhere of his/her profile. For example: the calories of an apple is 70, so when user chooses the number of apple (for example : 2) and clicks on ADD button, the data " 2 Apple --- 140 calories" will be added into the profile where only he/she can see and edit (edit number, remove…).

3/ The number of calories per day is reset everyday and I need a module to display that number in format of [current added calories] / [calories per day] . For example: I need 2100 calories/day when I add 2 apple with 140 calories, this number will show 140/2100.

I know that there will be some path I need to code myself. So the question is: Can I use Joomla with CB to build that website?

Thanks

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 7 months ago #243762 by nant

kiemthu123 wrote: Hi,

Im going to build a calories count website. I have posted some questions in other forums how to do it with Joomla and I received recommendation to use CB.


Welcome to our forums - nice that other forums recommend CB ;-)

After reading all the FQA and cannot find the answer. So I decide to post this question here before making any payment.


Yup FAQ only have answers to frequently asked questions - not everything :-)
Will try and address as best as possible.

1/ I need some more fields in registration form like: age, height, birthday, weight… And then, base on these data, there is a tool to calculate the calories per day for that person. When that user change his/her profile, the calories per day is changed also.


You can certainly create these CB Fields in the CB Field Manager. We do not have a decimal field, but we do have an integer field. So, you need to decide how to map values into fields.

I am not sure what form this "tool" is in, but you could probably use an AutoAction to execute the tool code and even pass it CB Field values. The CB Auto Action can be triggered for example after a user updates his/her profile.

2/ I create some acticles to show the detail of calories of each food. Each article will have a form for user to add and store that number (calories) into somewhere of his/her profile. For example: the calories of an apple is 70, so when user chooses the number of apple (for example : 2) and clicks on ADD button, the data " 2 Apple --- 140 calories" will be added into the profile where only he/she can see and edit (edit number, remove…).


You would have to use some kind of forms integration (maybe RSForm?) to add a form to an article. The form would then need to pass values to a script that updates a CB Profile field. Not a simple task, but doable.

3/ The number of calories per day is reset everyday and I need a module to display that number in format of [current added calories] / [calories per day] . For example: I need 2100 calories/day when I add 2 apple with 140 calories, this number will show 140/2100.


You would have to code such a module.

I know that there will be some path I need to code myself. So the question is: Can I use Joomla with CB to build that website?

Thanks


Yup you or someone would have to code and integrate to complete this use case.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum