WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
Help creating custom page, link log-in page, to show backend content within site (6 posts)

  1. hepbone
    Member
    Posted 1 year ago #

    I hope I can explain this correctly, and I feel like I'm just missing something very simple. I have a page that displays on the backend for users, under the CubePoints plugin. The page just displays how users have used their points. Kind of like a transaction log. This page is called 'my_points.php' in the plugin's modules folder.

    Is there a way to to create a new page under Theme My Login > Pages and have it display the 'my_points.php' on the front end of the site? I tried looking at the shortcode on the website, but nothing seemed to do the trick for me.

    I believe the section I should be following is the below, but I guess I'm missing where to put that last bit of php.

    Using your own template

    Let's say you created a specific registration form named my-register-form.php. In order to use that template, you would just define the register_template attribute within the Theme My Login instance.

    Using shortcode

    [theme-my-login register_template="my-register-form.php"]

    Using template tag

    <?php theme_my_login( array( 'register_form' => 'my-register-form.php' ) ); ?>

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

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    I'm not familiar with the plugin so I'm not sure if it would be so simple.

  3. hepbone
    Member
    Posted 1 year ago #

    Thanks for the quick reply!

    That's alright, I'm willing to try just about anything. If I was using a new registration form, where would I put that last bit of php? Does that go in the new registration form at the top? I'm thinking the same logic will apply with this plugin module/page. There's not much to the page, it just displays a table, which is a list of their transactions.

    I can paste the code in here, if you'd like.

    Thank you!

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    If it were me, I'd just add it to the profile template. Perhaps even using jQuery UI Tabs to separate/pretty it up.

  5. ptpublic
    Member
    Posted 11 months ago #

    I would like to change the registration link on the login page to a different url. What file do I need to edit? I can't quite follow the instructions for changing an action link or defining the register_template attribute.

  6. ptpublic
    Member
    Posted 11 months ago #

    I found my answer after hours of searching and banging my head against the wall. Jeff had answered this here:

    --snip--
    http://wordpress.org/support/topic/plugin-theme-my-login-use-different-form-for-registration?replies=3

    Create the file wp-content/plugins/theme-my-login-custom.php if you haven't already. Then, add the following to it:

    <?php function tml_action_url_filter( $url, $action, $instance ) {
    if ( 'register' == $action )
    return 'http://www.wordpress.org';
    }
    add_filter( 'tml_action_url', 'tml_action_url_filter', 10, 3 ); ?>
    Of course, replace http://www.wordpress.org with your new URL.
    --snip--

    This bit about creating this custom file would be useful to add to the example on this page:

    http://www.jfarthing.com/development/theme-my-login/changing-action-links/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic