Support » Plugin: Client Portal - Private user pages and login » Private Page Shortcode

  • Resolved successcoachalicia

    (@successcoachalicia)


    Users are not able to see the content on their private page. Is there a shortcode that should be inserted on the private page?

    The default field content also is not displaying.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Gabriel Berzescu

    (@gabrielberzescu)

    Hi there,

    So when users are viewing their private page, what shows up? Absolutely nothing? Or are you getting an error? If you edit the page and write something there like “foobar” does this not show on the front end?

    The default page content is only used when creating the page. So if you are changing it, it will only have effect on newly created pages. It does not change the content of already existing pages.

    With the best of regards,
    Gabriel @ Cozmoslabs

    Thread Starter successcoachalicia

    (@successcoachalicia)

    http://ezcashrotator.com/dashboard/

    It is not showing anything. It is not even showing the person’s username at the end of the url. I think there should be a shortcode placed on the page that I have created for private user page. Page Name is dashboard and I have added this slug to the client portal settings.

    Please tell me what the shortcode is?

    Ben

    (@creatureweb)

    [client-portal] is the shortcode I think you are after.

    However, if you want a page instead of a post you’ll have to add a page template file named “single-private-page.php” to your theme folder. ( and it still won’t work like the rest of your pages) but it’s an improvement over posts.

    Their support (loose term) informed me this morning they will be reworking the plugin to be more in line with the client expectations. I believe the word “bug” was used… solid product, solid work. (don’t hold your breath for their help)

    Thread Starter successcoachalicia

    (@successcoachalicia)

    I am trying to generate a private page for each user so for this I will need to add a file?

    Thread Starter successcoachalicia

    (@successcoachalicia)

    I thought that the shortcode itself would allow private pages.

    Ben

    (@creatureweb)

    Yes, you can. It does that very well but it will be in post format and show as if it lives in your blog unless you add the file I mentioned.

    Ben

    (@creatureweb)

    Creating the [client-portal] shortcode

    This is probably the most important functionality of the entire plugin. Once the user is logged in he needs to be able to access his client portal. By default, there’s no way the user or the administrator to create a menu for each individual user.

    So instead we’re simply redirecting the user to his individual private page with the use of the [client-portal] shortcode.

    Since the shortcode executes in the middle of the page, we can’t really do a PHP redirect without some sort of workaround. So instead we’ve opted for a simple Javascript redirect that should work just fine for the majority of use cases.

    via: https://www.cozmoslabs.com/55726-how-to-wordpress-client-portal-plugin/

    Hope it helps!

    Thread Starter successcoachalicia

    (@successcoachalicia)

    Okay Thanks. It is working now with the shortcode. But which page builder can I use to edit the default page? Elementor will not open with this shortcode within the page. I need to design this page and then I would like to add the page html to client portal default page field box. Can you make a suggestion for this please.

    Ben

    (@creatureweb)

    That would be none sir. I couldn’t get it to work with Elementor or VC (even tried using a VC specific page template as my single-private-page.php file still no options to edit via VC.

    You’ll also notice that some of your headers aren’t filtering through either. I spent a few hours working with it and trying to just hand input my styles into the template-page file but who has time for that? I just ditched the plugin and wrote a workaround from scratch because my goal for using the plugin was to save time not invest the same amount of time in a plugin that I would have creating it functions.

    I am glad you spoke up though! These Cozmos characters definitely seem to have it together as far as their knowledge goes.. they create some great things but I don’t think they realize that they are a bit out of touch with their customer base or the fact that their description of some of their products is a bit misleading.

    I’m not saying its intentional.. it just happens sometimes. But I think it will go a long way if they see I’m not alone in the same complaints I’ve been going back and forth with them on for the past few days.

    Thread Starter successcoachalicia

    (@successcoachalicia)

    What would be a good html page editor to use to create page content and allow the copying of the html code so that I can input this into my wordpress page and in the client portal default page settings?

    Ben

    (@creatureweb)

    I’m not very familiar with what that field will or will not accept so I can’t really help you there I moved on from it before I got that far.

    As far as editors.. I use Sublime Text and Visual Studio Code. Both are strong editors.

    Thread Starter successcoachalicia

    (@successcoachalicia)

    It seems as if the Live Composer Plugin may be the solution. I am editing the page now. Will update shortly.

    Thread Starter successcoachalicia

    (@successcoachalicia)

    No it is not working as I thought for the private page. I will need to find a html page editor source to build a page and add the html code back to the page within my site.

    Ben

    (@creatureweb)

    Well, by all means, update this thread when you find a workable solution because many will find it useful.

    Plugin Author Gabriel Berzescu

    (@gabrielberzescu)

    Hello there,

    Thanks Ben for helping.

    The Client Portal plugin has not been tested with any page builders, but you may add to the content of private pages any valid HTML that you can add to regular pages, and it should work fine.

    If you add some HTML to the private page that is not working (but works on regular pages), please let us know.

    Cheers,

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Private Page Shortcode’ is closed to new replies.