WordPress - Contact Form 7 fields save to a different database - wordpress

I know that there will be a database to be created at the initial configuration of CF7. I am wondering whether or not I can use a different database of my own (not the wordpress' database) in PHPMyAdmin, and is there an existing tutorial to do so?
Thank you.

That could have some serious unintended consequences. You'd be better off putting a hook in your submission to ALSO add the data to some other database.
The reason is that plugins are quite integrated and there are many things that it tracks at once including things related to the user who submits the form. If you orphan some of those records, it might be difficult to reconstruct things, build reports, and do other sorts of maintenance later.

Related

Reading/writing to the WordPress database using WordPress and Javascript

I am working with a client who is using WordPress. I am not familiar with WP like I am with other frameworks. In this situation, the client wants to allow users to enter data into a form and I will create pages to display this data so it can be managed. I am thinking I need to get the user entered data saved into a table. I will then read from this table to display in another page. I need to do CRUD stuff within WP with JavaScript.
Are there plugins that will allow me to create tables within the WP database? Can I use JavaScript to read/write to them, or do I need to use PHP? I don't have access to the source code so I am doing everything via the functions.php and JS files.
Because I don't have much experience with WP, I am not sure what can be done. Thanks for any suggestions.
While it's definitely doable programmatically, I don't see much reason in recreating the wheel. Perhaps Contact Form 7 would work for you. If not, Gravity Forms can do what you need, but I believe there is a cost for that.

Best Option for Wordpress Form That Updates External MySQL Database Table?

I have a Wordpress site that I need to place some forms on that when submitted the form data is updated in an external MySql database of an in-house business system.
Obviously you could customize the PHP form handler of whichever form plugin you choose, but I would imagine in most cases this is not plugin 'upgrade safe'
The other option would be do develop the form (and handler) outside Wordpress and include it in an iFrame on a Wordpress page. This is a clunky solution though in my opinion as I think iFrames should be avoided whenever possible.
IDEALLY, there's a really robust form plugin out there that has taken these things into consideration and allows modular update of external databases by specifying database credentials and what form fields you want to map to which tables and fields. Or at the least provide an option of an include file for any custom post processing of the form data that is upgrade safe.
What are the best options?

How to create database and use it in wordpress dashboard

i am newbie to wordpress.I just created a free blog in Wordpress.I want to know how to create Database in it and use it. Any links to good tutorial will be great.Thanks in advance.
WordPress itself uses a MySQL database to store (among other things) post content and meta, users, info about plugins, etc.
In terms of creating a separate database from the one that's in WordPress itself, the question you're asking itself makes me very hesitant to think that you should. You'd be dealing with passwords, permissions, and a whole range of very easy to screw up settings that probably aren't worth playing with if you're new to WordPress.
If you wanted to use the database in WordPress itself and have the ability to write queries or create tables, you could look at any number of SQL plugins (eg http://wordpress.org/plugins/sql-executioner/ or https://wordpress.org/plugins/elisqlreports/) that would allow you to query tables in the WordPress database.... I don't recall if the existing plugins would allow you to create/modify tables, but phpMyAdmin or terminal would be just fine for that if not.
Since you're new, let me ***strongly*** encourage you not to modify/delete the default tables in WordPress, especially not on a live site.
Best of luck

Combine and secure a dual Wordpress installation

I've been assigned to add some features to an existing newspaper. This newspaper is based on Wordpress. They want to add a subscription feature for subscribed users to receive email with the latest news and some other stuff.
They also want a coupon system, which I'm planning to implement using CouponPress (http://www.couponpress.com/) which is a separate Wordpress installation for coupons.
They want to keep the subscribers functionality completely separated from the main blog to avoid opening security holes for attackers to gain admin or editor roles and mess with the newspaper.
What do you recommend for this?
If I keep the subscription feature attached to the second blog, is there a plugin or something to automatically email the subscriptors of the second blog with latest entries, a daily or weekly? I want the second blog to look as part of the first one for users. Maybe replicating the user list somehow in the main blog, but avoiding sign in on it.
What do you think?
Thanks for your help
just throwing an idea for the subscription feature, if you do go the path of subscription to the other blog you can write some quick and dirty function to query the new or even an sql trigger to copy new user recordds to the other db (I don't know if mysql allows for inter db copy triggers)
but - I don't really know what'll you'll achieve that way. if the data isn't secure and sanitized someone could try to run an sql injection. and then copying the record to the other db would contaminate it either.
better use on of wordpress good security plugins, harden server access etc

Problems with LDAP and Drupal

EDIT
(But please read it all if you really wanna help :) )
Since I'm able to view all the profiles with the correct LDAP data (it's fetched when asked for, but never stored), an possible, albeit hackish solution, would be to display all the profiles as a table. Does anyone have an idea how that might be done ? Google hasn't help, understandably since most people never need to use such a feature.
EDIT
I've successfully used the LDAP Integration module to use LDAP authentication with Drupal. Now I'm trying to create an address book with information from LDAP. I've tried the following solution:
Changed the ldap_data.module, the part that states which fields can be mapped between ldap and drupal (e.g. mail => mail). This fails when I try to add more mappings. I believe this maps to the "users" table in drupal, but when I try to add a field to that table and map a LDAP attribute to it, nothing goes into the database. My plan was to then use Table Wizard with views to create the address book. Using Table Wizard and Views I was able to extract everything I wanted from the users table, but the problem of entering data into the table is still not solved.
If you have any ideas, any at all, I'd really appreciate it. I'm a beginner in drupal and LDAP altogether btw. I've already tried to google this to death over the last few days but nothing has helped me solve this problem.
The answer below helped me understand why this didn't work, but the problem is still unsolved.
The LDAP Data module is not intended to work with fields arbitrarily added to the users table. Instead, it works in conjunction with the core Profiles module and can map to its fields.

Resources