borisv
Forum Replies Created
-
Place this at the top of your theme style.css, preferably in your child-theme’s if you have one:
.um-um_account_id.um a.um-link { display: none; }Remember that it could be removed if you update your theme.
If what you are saying that you can’t change the ‘Pending Review Email’ in the UM Email settings then you probably have the HTML button on.
You can ignore the code above.
You don’t know what you are talking about, the difference in speed is negligible.
Try adding this code also in your wp-config:
define('FORCE_SSL_ADMIN', true);- This reply was modified 9 years, 6 months ago by borisv.
Have you checked Admin Menu > Appearance > Menus and do exactly what you are describing (add a page menu with controlled access by user role). Otherwise, I don’t get it.
Best to my knowledge Ultimate Member doesn’t have that.
I am talking about the php syntax code that a header would need to execute the type of function you want to have for your site. Your thoughts before were correct (e.g. <?php if ( is_user_logged_in() && IF_IT_IS_A_UM_RESTRICTED_PAGE) {//then do something;})
The last post is not.
I don’t understand why it seems so difficult to do a simple test in php to kwow wether a page is um private or not.
Not difficult, just totally impractical. What is the point of “checking if a page is restricted”?
If you are logged out and can’t see it, then it is. No need for a “PHP test”. Am I missing something?This isn’t a support board for UM customization. However, I’ll give you this code this time so that you can modify it or make your own conclusions:
<?php global $user_login, $current_user; if (is_user_logged_in()) { get_currentuserinfo(); $user_info = get_userdata($current_user->ID); if (in_array('admin', $user_info->roles)) { ?> your button code goes here <?php } } ?>If you can’t make heads or tails of it, then take it to http://stackoverflow.com/ to ask how to modify it to suit your needs.
Then post your findings back here so others might benefit with the information.
Good luck,
Please stop. That’s not PHP language. You can’t add shortcodes on php headers. I urge you to hire a web developer instead before you destroy your web site and come back crying.
We are not supposed to discuss modifications such as what you are suggesting on this support board anyway.
OK, one more try. So are you saying it doesn’t suit you because it is a shortcode and needs to be manually inserted? Or, is it the function that doesn’t suit your needs?
If you just want to see when a page is restricted, just wrap this shortcode [um_loggedin show_lock=yes] some content in the middle here [/um_loggedin] inside a page. Update the page. Log out.
Go to that page and now you should see a message instead: “This content has been restricted to logged in users only. Please login to view this content.”
Profiles are made automatically either when a user signs up or are added in the Admin panel.
To change a user role go to admin panel > users > select a user, then pull down the menu to select a role. You can view a user profile by clicking on the ‘View Profile’ link under the user name.
Customization questions are for the most part not discussed on this free UM support board. Please hire a developer to help you with your customization needs.
The URL argument to pushState should be relative to the current page, or an absolute URL in your own domain. You can’t push state between secured and unsecured domains. It would be a major security error.
The new URL must be of the same origin as the current URL; otherwise, pushState() will throw an exception. You said your DB states an unsecured sockets layer and that’s why you get that error.
What you can try is to go to admin => settings => Current URL Method => change to url method HTTP_HOST and see if that helps, but there is no guarantee it will work.
The best solution would be to use secure encrypted connections site wide.
- This reply was modified 9 years, 6 months ago by borisv.
No problem. Check out its key features though:
https://ultimatemember.com/extensions/social-activity/I think it’s pretty cut and dried.