• Hello,

    This is a great plug-in and is working fine on our site.
    Here is my set-up – I have 25 subscribers, each with their own private page and I simply use TML to direct them to their own area after log-in, which is just the website URL and page combination. https://www.mysite.com/username..
    Since this is a dynamic URL, my question is – how might I provide a link to each subscriber’s own page from somewhere else on the website please, rather than just the redirection after a successful log-in.

    Thanks for any guidance – I am not a developer
    Regards
    Iain

Viewing 5 replies - 1 through 5 (of 5 total)
  • This is not really a TML issue IMHO.

    I use a plugin that enables me to process PHP on the page (Insert PHP), which among other things enables me to concatenate complex links to my diary site to save subscribers filling in forms with their contact details.

    This is how I would do what you are trying to do. The text ‘Go to your page’ can be replaced with a button image, or anything else you choose.

    I’m assuming ‘user-login’, returns the value for your ‘username’. If not, you might need to do a little concatenation or processing to give you the exact value you need for your links.

    [insert_php]
    $current_user = wp_get_current_user();
    
    echo '<a href="https://www.mysite.com/'. $current_user->user_login;
    echo '/">Go to your page</a>';
    
    [/insert_php]

    Hope this works for you (not a developer either!)

    Malcolm

    • This reply was modified 7 years, 1 month ago by Malcolm12boxes. Reason: code
    • This reply was modified 7 years, 1 month ago by Malcolm12boxes.
    Thread Starter iainb

    (@iainb)

    Malcolm,
    Thank you for taking an interest in this and for suggesting the plug-in “insert PHP”..

    You are quite correct to say this is not a TML issue, although an extension to the plug-in would be the best solution to my problem at least. That said I’ve downloaded the “ultimate member” plug-in with its “private member” plug-in as a workable solution.
    Your suggestion is likely to work as well and I’ve downloaded the plug-in you suggested to evaluate, but in this instance, I would prefer a tidier workaround.

    Thank you again for your input
    Iain

    I take your point about a tidier workaround.

    We have a closed membership site with sixty or so members with varying degrees of participation and need to have ‘if, else’ ways of directing people to different content and so forth, so the investment in additional plugins and some expert assistance has been worthwhile.

    In the pursuit of tidiness, in addition to TML, I have found another plugin called “Reusable Content & Text Blocks by Loomisoft” very helpful. It means that I only need to enter something like the PHP code I suggested once.

    Creating or editing a single content block means that all the instances of the generated shortcode are simultaneously updated. So an ‘intelligent’ redirection button can be created with one entry, and then you can drop the shortcode where you like. I even use it for fiddly inline typographical effects like the symbol at the RH end of a line that says you have come to the end of an article.

    It cuts down on the clutter, and encourages personalisation because you don’t feel that you are making tons of maintenance work for yourself with every innovation.

    M

    Thread Starter iainb

    (@iainb)

    I like the sound of your other find, the “reusable content and text blocks” and I use something similar, which is made for the Genesis framework.

    It’s a plug-in called “Blox-lite” and allows you to hook content or code anywhere on a single page or a collection of pages.

    You sound like the type of guy that also could benefit from using Genesis and I would urge to check it out

    Iain

    Thanks Iain.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Extended use of TML’ is closed to new replies.