jonoman1
Forum Replies Created
-
Forum: Plugins
In reply to: [Social Sharing Plugin - Social Warfare] Fatal Error with new versionFatal error after every published post. Is Social Warfare listening to all this? Would be great to hear something from them to know they are at least aware and trying to fix the problem.
I’d also like to know a solution for this and am surprised it’s not built in since UM has a directory and bookmarking feature, it just won’t allow you to bookmark user profiles. If there’s something on git or another workaround please post it here.
I had to hire a developer to fix this issue and it’s resolved now. I wish I had more to offer others who are having this same problem.
Great support! That works perfectly! Thank you so much for your time and expertise.
Thank you! That seems to work in the profile area. It’s not showing up in the member directory on the profile card for fields with “0” so I wonder if this pulls from the metakey differently. If I wanted to put a “%” after the number would I put it into this code as well?
- This reply was modified 2 years, 3 months ago by jonoman1.
Thanks, I tried this and it does save the “0” entry on the edit side now, but it still doesn’t show that field at all when viewing the profile page. Is there something else missing from the code?
Ah ok, yes you’re right. That fixed the syntax error. How now do I add last names to that?
Also, I noticed that this conflicts with another snippet I’m using to show how many members are in the directory. Because of this the results actually show twice. So if I search for “Tim” I see 2 results and then I scroll down and see 2 more results with the same 2 users.
When I take out the below code it works fine for just first names though.Code I use for showing # of users in directory:
add_action("um_members_directory_before_head","um_021422_show_total_members"); function um_021422_show_total_members(){ ?> <script type="text/javascript"> jQuery(document).on("ready",function(){ wp.hooks.addAction( 'um_member_directory_loaded', "um", function(directory, data) { jQuery(".um-directory-total-members").remove(); if( data.is_search == false ){ jQuery(".um-member-directory-header").append("<div class='um-members-wrapper'><div class='um-directory-total-members um-members-intro'><div class='um-members-total'>Total Members: " + data.pagination.total_users + "</div></div></div>"); } }); }); </script> <?php }
I just get this generic error in Code Snippets: “We encountered an error activating your snippet, please check the syntax and try again.”
But when I run it through a syntax checker I get this message:
“Parse error: Unclosed ‘{‘ on line 3 in your code on line 16”I have read through it and tried all the codes listed, but I keep getting syntax errors in Code Snippets. Mind you, I’m not a programmer and have very little coding knowledge. I’m also trying to get searches to work for first and last names so I’m not sure how to modify the code to accept that.
Ah perfect! I should have caught that. Thanks so much, that fixed it and it’s working perfectly now.
Yes, I have read through that and have set a minimum and maximum word/or character count for each field. But they simply are not showing for the extra tabs. They only show up in the main profile.
That code worked perfectly, thanks! I’m trying to put the uploads into one heading on the profile page using shortcode though. I used the shortcode for grabbing the metakey of the file upload but it just grabs the text (not clickable). Is there anyway for the proper shortcode to grab the PDF link and filename? I have 3 different file upload fields and I want to use shortcode to put all of them under one field label on the profile pages.
Great! Thanks so much for helping out with this.
Thanks for the tip. The WP Memory Limit was set to 40MB and I changed it to 128MB. It didn’t fix the problem though, as the dropdowns in the form are still not clickable in popup while they ARE working when the form is used on a page.
Ok sounds good. I already submitted a ticket but thought getting some insight and advice from the community on this would help as well.