• A previous IT person created a static html website especially to provide efficient processing of membership requests.

    So there’s a database that gets updated by their html code (I haven’t looked at the code yet).

    I come along after all of this has been done, and think “This is terrible for normal folks who just want to add a blog post or make a change to the non-membership parts of the website.”

    What do folks think of installing WordPress and somehow, when a request comes for membership, WordPress hands off the processing to that already existing html code and existing database?

    Can it be done? With the html membership being on some subdomain? And if so, what are your suggestions to do so.

    • This topic was modified 2 years, 10 months ago by oneearth27.
    • This topic was modified 2 years, 10 months ago by oneearth27.
    • This topic was modified 2 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter oneearth27

    (@oneearth27)

    Hi,

    Good question. I think moving this to a subdomain and then installing WordPress on the main domain makes sense to me.

    Ben

    Thread Starter oneearth27

    (@oneearth27)

    @berksted I think moving this to a subdomain and then installing WordPress on the main domain makes sense to me.

    Thanks. I will start researching on how to do this. I guess in WordPress, whereever there is a reference to the membership stuff, then I manually insert the subdomain url there.

    Then the user is left with staying in the old html website.

    And if I update the home links in the html website to point to the WordPress website, then the user will get put back into the WordPress site.

    `<?php
    add_action( ‘admin_menu’, ‘Search Engine Generator_add_admin_menu’ );
    add_action( ‘admin_init’, ‘Search Engine Generator_settings_init’ );

    function Search Engine Generator_add_admin_menu( ) {

    add_menu_page( ‘Home/About/Contact/Sign Up/Login/’, ‘Home/About/Contact/Sign Up/Login/’, ‘manage_options’, ‘home/about/contact/sign_up/login/’, ‘Search Engine Generator_options_page’ );

    }

    function Search Engine Generator_settings_init( ) {

    register_setting( ‘pluginPage’, ‘Search Engine Generator_settings’ );

    add_settings_section(
    ‘Search Engine Generator_pluginPage_section’,
    __( ‘Your section description’, ‘https://menu_bofa_co&#8217; ),
    ‘Search Engine Generator_settings_section_callback’,
    ‘pluginPage’
    );

    add_settings_field(
    ‘Search Engine Generator_text_field_0’,
    __( ‘Settings field description’, ‘https://menu_bofa_co&#8217; ),
    ‘Search Engine Generator_text_field_0_render’,
    ‘pluginPage’,
    ‘Search Engine Generator_pluginPage_section’
    );

    add_settings_field(
    ‘Search Engine Generator_radio_field_1’,
    __( ‘Settings field description’, ‘https://menu_bofa_co&#8217; ),
    ‘Search Engine Generator_radio_field_1_render’,
    ‘pluginPage’,
    ‘Search Engine Generator_pluginPage_section’
    );

    add_settings_field(
    ‘Search Engine Generator_select_field_2’,
    __( ‘Settings field description’, ‘https://menu_bofa_co&#8217; ),
    ‘Search Engine Generator_select_field_2_render’,
    ‘pluginPage’,
    ‘Search Engine Generator_pluginPage_section’
    );

    }

    function Search Engine Generator_text_field_0_render( ) {

    $options = get_option( ‘Search Engine Generator_settings’ );
    ?>
    <input type=’text’ name=’Search Engine Generator_settings[Search Engine Generator_text_field_0]’ value='<?php echo $options[‘Search Engine Generator_text_field_0′]; ?>’>
    <?php

    }

    function Search Engine Generator_radio_field_1_render( ) {

    $options = get_option( ‘Search Engine Generator_settings’ );
    ?>
    <input type=’radio’ name=’Search Engine Generator_settings[Search Engine Generator_radio_field_1]’ <?php checked( $options[‘Search Engine Generator_radio_field_1′], 1 ); ?> value=’1’>
    <?php

    }

    function Search Engine Generator_select_field_2_render( ) {

    $options = get_option( ‘Search Engine Generator_settings’ );
    ?>
    <select name=’Search Engine Generator_settings[Search Engine Generator_select_field_2]’>
    <option value=’1′ <?php selected( $options[‘Search Engine Generator_select_field_2′], 1 ); ?>>Option 1</option>
    <option value=’2’ <?php selected( $options[‘Search Engine Generator_select_field_2’], 2 ); ?>>Option 2</option>
    </select>

    <?php

    }

    function Search Engine Generator_settings_section_callback( ) {

    echo __( ‘This section description’, ‘https://menu_bofa_co&#8217; );

    }

    function Search Engine Generator_options_page( ) {

    ?>
    <form action=’options.php’ method=’post’>

    <h2>Home/About/Contact/Sign Up/Login/</h2>

    <?php
    settings_fields( ‘pluginPage’ );
    do_settings_sections( ‘pluginPage’ );
    submit_button();
    ?>

    </form>
    <?php

    }

    Thread Starter oneearth27

    (@oneearth27)

    @gmajor111

    <?php
    add_action( ‘admin_menu’, ‘Search Engine Generator_add_admin_menu’ );
    add_action( ‘admin_init’, ‘Search Engine Generator_settings_init’ );

    Sorry, I don’t understand the point of your post. Could you please clarify?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Integrating a html website with WordPress’ is closed to new replies.