ZeroGravity
Forum Replies Created
-
Forum: Plugins
In reply to: [Gallery by FooGallery] Album is opening galleries in new tabThanks!
Great. Thanks!
Forum: Plugins
In reply to: [Gallery by FooGallery] Album is opening galleries in new tabHi @bradvin,
Thanks for the quick reply!! I am baffled as well why this started happening but it is across all browsers I have tested, not just one. As mentioned I have about 20 galleries so it will be a pain to go through and change every one and I want to make sure it is foolproof in case a user adds another gallery.
I don’t believe target=”default” is valid HTML. I’ve looked at many resources and it isn’t mentioned on any of them. If anything target=”default” should open in the same tab as the default for the target attribute is “_self”. Not sure how the browsers handle and invalid value.
I would have assumed that leaving the custom target setting as default wouldn’t have saved anything to the database and as a result not output the target attribute, leaving everything to be handled by default for the browser. I deleted a couple of the “custom_target” rows from postmeta table and the code outputs target=”_self”.
It might be nice if there was a setting under FooGallery -> Settings -> Albums that would define what the default should be. Especially as target=”default” doesn’t seem to be valid HTTML.
I tracked down another filter that solves the problem but outputs target=”” instead of target=”_self”. I’m not sure if I am using it correctly.
add_filter('foogallery_album_build_gallery_link_target', 'zgwd_fg_override_album_target', 10, 1); function foogallery_override_target( $target ) { if ( $target == "default" ) $target = "_self"; return $target; }Thanks again for your quick reply! I love your gallery plugin! I would like to see the “custom target” setting handled a little differently. 🙂
Forum: Plugins
In reply to: [WP-Members Membership Plugin] Generate username on registration formThanks for the reply @xbootenk with your experience. I am in a situation where I need usernames that will not identify the user and I can’t trust users to do that. 🙂 Users will be able to login with either their username or email address so hopefully they won’t forget that.
There won’t be a lot of members and the site may only be active for up to 12 months. Because of this I shouldn’t have too many issues maintaining user accounts.
I found a way using wpmem_register_form and str_replace but doing it this way makes me cringe. I’m hoping there maybe a way that is less prone to error.
I just resolved this in my case. If under Settings > WP-Members > Content > Show Registration Form – on Pages is selected the link doesn’t show but because the registration shortcode isn’t present the registration form doesn’t diaplay.
I just unchecked both pages and posts under Show Registration Form and there is the link. 🙂
I am having a similar issue as the OP but on a login page with the [wpmem_form login] shortcode. I have created a registration page that has the [wpmem_form register] shortcode. I went to Settings > WP-Members > Pages > Register Page and selected the registration page.
I also have the user profile page set.
The login page shows the Forgot password link but it doesn’t show the link to the registration page.
- This reply was modified 6 years, 2 months ago by ZeroGravity.
- This reply was modified 6 years, 2 months ago by ZeroGravity.
Forum: Plugins
In reply to: [Restricted Site Access] Exclude registration pageI added this code so that access was enabled access to password reset and forgot username as well.
edit: just realized I should have qualified the profile links I added access to are for the WP-Members Membership Plugin. I have been bouncing back and forward between them testing are realized I was confusing functionality between the two. 🙂
add_filter( 'restricted_site_access_is_restricted', 'zgwd_login_override', 10, 2 ); function zgwd_login_override( $is_restricted, $wp ) { // check if page allowed if ( 'registration' === $wp->request || 'profile?a=pwdreset' === add_query_arg(array($_GET), $wp->request) || 'profile?a=getusername' === add_query_arg(array($_GET), $wp->request) ) { return false; } return $is_restricted; }- This reply was modified 6 years, 2 months ago by ZeroGravity.
- This reply was modified 6 years, 2 months ago by ZeroGravity.
Ok. It’s just confusing seeing them there when they have been unset. Maybe a note added indicating that all WP image sizes are shown even if they are unset might help. 🙂
I know this is probably being pedantic but I assume you mean “these are the sizes that will be compressed it they already exist for an image.” The way you worded it indicates if they don’t exist they will be created. 🙂 Just want to make 100% it’s only optimizing images that already exist and not creating other sizes on the list.
Thanks for you quick response!
Forum: Fixing WordPress
In reply to: “-scaled.jpg” innecesary sufix and added 2 image sizesAfter testing is seems the filter only fixes the scaled image creation.
add_filter( ‘big_image_size_threshold’, ‘__return_false’ );I also needed to unset the 2x medium-large and 2x large sizes to prevent them from being created.
function filter_image_sizes( $sizes) { unset( $sizes['1536x1536']); // disable 2x medium-large size unset( $sizes['2048x2048']); // disable 2x large size return $sizes; } add_filter('intermediate_image_sizes_advanced', 'filter_image_sizes');I haven’t tested it yet but I was pointed to this code snippet.
http://library.easydigitaldownloads.com/misc/require-login-to-download-files.htmlForum: Fixing WordPress
In reply to: Editors not workingDid you find a solution to this? I am having the same error where the cmsmasters content composer is not working. Only the shortcodes are showing. Clicking the editor button “content composer” doesn’t do anything.
Forum: Plugins
In reply to: [Email Users] Show on frontendThanks Mike. We are putting a system together for someone and we are trying to stay away from the WP dashboard to keep logged in members on the frontend.
Thank you!
Thanks for the suggestions.
I understand there is no option at the moment that is why I asked for it as a feature request in my previous post. 🙂
Thanks @pratik-jain. I saw all those options and have set them. Sadly it looks like there is no option to force someone to be logged in before downloading a file.
If the “Download Link Expiration” time or the “File Download Limit” have not expired anyone who has the link can download the file.
A feature request would be to force login to download a file when accessing by the link.
1) Click on the link
2) When the link opens in a browser if the user isn’t logged into the website show the login screen.
3) after login file downloads. 🙂Thanks.