Solved

Create module in joomla

Posted on 2010-09-16
14
1,011 Views
Last Modified: 2012-05-10
Hi, I just need to create a module that inserts a new row in a table by submitting a form.

ex: visitors enter email address in an input field, then it will be stored in db

I'm new to joomla, however I know how a module works (template, helper, etc...)

Thanks!
0
Comment
Question by:blueshaolin
  • 9
  • 5
14 Comments
 
LVL 5

Accepted Solution

by:
lazysheepmedia earned 500 total points
ID: 33694031
Hi Blueshaolin

Would it be easier to use a form component and link to your menu?

http://extensions.joomla.org/extensions/contacts-and-feedback/forms

Chronoforms is free and has been used by me. I really like it for simple forms like yours.

Regards

Mark
0
 

Author Comment

by:blueshaolin
ID: 33694169
Thanks for replying lazysheepmedia, however I don't get the idea.

The form must be visible in every page, that's why I think I should use a module, and what do you mean with 'link to your menu' ?

0
 
LVL 5

Expert Comment

by:lazysheepmedia
ID: 33694208
Hi blueshaolin

Give me 10 minutes and I'll knock up a demo

Regards

Mark
0
 
LVL 5

Expert Comment

by:lazysheepmedia
ID: 33694598
sorry i have been distracted

what i am suggesting is that you use a form component and add the form to a custom module?

regards

Mark
0
 
LVL 5

Expert Comment

by:lazysheepmedia
ID: 33694896
0
 
LVL 5

Expert Comment

by:lazysheepmedia
ID: 33695065
here are your results that are saved to your database in admin to view

Regards

Mark
email.png
0
 
LVL 5

Expert Comment

by:lazysheepmedia
ID: 33695073
A clearer view
email.png
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 5

Expert Comment

by:lazysheepmedia
ID: 33695095
I need to turn the demo off so let me know if it is useful and if i can turn it off

thanks

mark
0
 

Author Comment

by:blueshaolin
ID: 33695231
Ok you can turn it off, That's not what I need and maybe it was my mistake since I didn't explain it very well.

Finally I created the module on my own and now it works great, so I'm going to give you C because that's also a possible solution, is that ok ?

Thanks a lot for your help and your time!

0
 
LVL 5

Expert Comment

by:lazysheepmedia
ID: 33695272
yes no problem

can i see what you have done so i can see what you wanted?

regards

mark
0
 

Author Comment

by:blueshaolin
ID: 33700788
Just one more question to give you A (if you don't mind):

Can I change the target table to store the form fields with ck forms/chronoforms ?
0
 
LVL 5

Expert Comment

by:lazysheepmedia
ID: 33701294
yes you can but it will require some coding as i believe it uses its own tables - just curious..why would you want to change the table it uses?
0
 

Author Comment

by:blueshaolin
ID: 33701380
because i'm like 'adapting' a form that comes in a plugin for an specific component.

Basically I want to do the same but in a module since I'm not going to show the plugin in its original position/pages/etc, I already tried plugin in module but it didn't work so I found it easier to create a form that inserts the data straight to the table.
0
 

Author Closing Comment

by:blueshaolin
ID: 33702479
The provided solution is a good alternative, however that's not exactly what I needed. Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mcrypt_create_iv() is deprecated 4 70
MySQL Grouping 2 23
Problem sending file attachments 8 23
Automated testing suggestions? 2 26
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now