WordPress.org

Ready to get started?Download WordPress

Forums

How to load a custom php form into a static page? (8 posts)

  1. Grafiksman
    Member
    Posted 1 year ago #

    I'm trying to migrate an existing html website into a custom-built theme. I'm a graphic designer and just learning how to do all this. So far I've been successful in creating the shell (header, footer, sidebars, styled with CSS), but I can't seem to figure out how to migrate a custom user information form into a static page. It's a php/MySQL form that I created in the old site using Dreamweaver that allows users to register and create a profile with their answers to specific preference criteria (mainly a bunch of textareas), and also select specific other users be able to see their information.

    I've looked at various plugins that may fit the bill, but nothing really does, especially in the ability to style the fields using my own CSS.

    Any advice would be appreciated. I had thought that I would be able to just migrate the database table structure from the old site to the WordPress DB and call the form.php from the body of the main content area in page.php, but I can't figure it out. I'm new to PHP too, but learning quickly. Will this even work the way I'm describing?

  2. Timothy Jacobs
    Member
    Posted 1 year ago #

    Why not use the built in profile functionality of wordpress? You can create custom user meta data fields to duplicate the functionality you have now.

  3. Grafiksman
    Member
    Posted 1 year ago #

    Thanks for the response.

    How do you do that? I've seen plugins that have some of the functionality (like User Meta) but are not flexible enough in the styling customization to accomplish what I need. Is there something built in that I'm missing?

  4. Timothy Jacobs
    Member
    Posted 1 year ago #

    There aren't built in tools for customizations, but there are plenty of plugins both free and paid. There are also some that will allow users to login and register on the front end of your website, so you can customize the appearances however you like.

    Check this out: http://wordpress.org/extend/plugins/theme-my-login/

    And there are plenty of tutorial out there for adding additional user meta fields.

  5. Grafiksman
    Member
    Posted 1 year ago #

    Unfortunately, it doesn't look like WordPress is going to work for what I'm trying to do. I need to create permissions interrelationships between users that doesn't seem possible with any plugin I can find. That is, a particular user needs to be able to grant permission to multiple other users to see their extended profile information.

    Thanks for your help, Timothy.

    Steve

  6. Timothy Jacobs
    Member
    Posted 1 year ago #

    If you are willing to get your hands dirty, all of that can be done with wordpress. It wouldn't actually be too difficult.

  7. Grafiksman
    Member
    Posted 1 year ago #

    Haha, I'm trying to figure it out, but. I'm just starting learning PHP/MySQL so it's slow going. It would probably be easier to just do it in a regular PHP website. I decided to use WordPress because someone told me "oh, there's sure to be a plugin that will do all this for you much easier than programming it yourself." Alas, there does not seem to be one.

  8. Timothy Jacobs
    Member
    Posted 1 year ago #

    If the only problem that you have been having with the plugins is there lack of ability to style with css, with just a little editing of the php files you can add a class or an id to whatever elements you are trying to style. If you really just want to paste in the php you have before, there is no guaranteeing it will integrate with wp properly but try this plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.