hrsms
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple User Avatar] Select button does nothingIt works for me now also. Thanks for the fix.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Where field = Current userFeeling pretty sheepish right now. I admit that I’ve seen the information about PODS_SHORTCODE_ALLOW_EVALUATE_TAGS before, but I did not bother to check my config file because I was SO VERY confident that I was already using other magic tags (other than {@user}) elsewhere on my site. Well I must be mistaken, because it was not defined, and now that it is, {@user} is working as expected. So sorry to have wasted your time again.
- This reply was modified 5 years, 4 months ago by hrsms.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Where field = Current userWhere are you using this shortcode exactly
Thanks for taking the time to reply. Unfortunately, I’m not sure how to answer. Do you want the url, or a better explanation of what I initially wrote?
Since I am currently hard-coding the value to my own ID, I did not include a url to begin with. It is https://www.hrsms.org/Content/your-library-detailed-listing/.
This explains my case more fully:
- Pod “user” extends the WordPress users.
- Pod “reference_titles” refers to reference materials for the subject of our site (ship models)
- Pod “reference_editions” refers to specific editions of “reference_titles”. There is a relationship field to “reference_titles”. The relationship is two-ways – “reference_titles” links back to the editions. You can see it on this page that lists all the titles and the known editions for each. Look at “Built-Up Ship Models” to see the only current example with more than one edition. It is a work in progress, so only a handful of items are entered so far, and I do not have a front end for this yet.
- Pod “reference_collection” is for “reference_editions” owned by one individual. “reference_editions” is for all items owned by all users. “reference_collection” has 2 relation fields, one to “reference_editions” and one to a “user”
I want to have a page that displays the collection for the currently logged in user.
I tried the following, but it did not work.
[pods name=”reference_collection” where=”member.ID={@user.id}” pagination=”true” template=”Individual Collection Template”]
If I replace {@user.id} with 2, as shown below, then I successfully get my own listing. This is what is currently on the previous link.
[pods name=”reference_collection” where=”member.ID=2″ pagination=”true” template=”Individual Collection Template”]
If you need more information, please let me know. I know your time for free support is limited and I appreciate your help very much.
Regards,
Greg
- This reply was modified 5 years, 4 months ago by hrsms.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Where field = Current userI have to admit I do not understand the meta fields. From the documentation:
{@user.any} is equivalent to getting the ‘any’ field from the currently logged in user, whether it’s a meta field or a core field like user_login.
In the example given, they are querying the pod that extends users. Does it only work in that case? Can I not use it in a pod that has a User field?
[pods name=”user” where=”id = {@user.id}”]Hello! {@display_name}[/pods]
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Printing ancestors of tagRereading my previous reply, I notice that I did not explicitly state that I replaced the use of a built-in taxonomy with a field related to the same taxonomy, though it is implied by the mention of
Display Format = Customer Separator (without “and”)
and
Display Format Separator = “→”Just thought I’d clear that up for the sake of any other users that happen upon this thread.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Printing ancestors of tagI had made this a built-in taxonomy and was looping in the template using [each].
I’ve discovered that I can use
Display Format = Customer Separator (without “and”)
and
Display Format Separator = “→”and it lists them in the proper order
Fruit→Citrus→Orange
I will set this topic to “Resolved”
Forum: Fixing WordPress
In reply to: Gutenberg YouTube Block Not Displaying in Posts OnlyUsing the alternate link (ttps://www.youtube.com/watch?v=*****) did not work for me.
This embed was fine when I looked at the page a few months ago, and now it is no good.
I have not been able to work around the problem.Forum: Plugins
In reply to: [Search & Filter] Broken on Pods, order dependentI looked at all the tickets with replies, and the most recent one from the plugin author is from 4 months ago. The rest are from the original poster or someone with the same problem.
I could hope for more attention for the users of the free version of the plugin, but I understand that “you get what you pay for” in many cases. So this is not so much a complaint as a statement that I cannot leave my site in a broken state for 4+ months. Fortunately, I have a workaround. As stated, I have accidentally found that my problem can be fixed by changing the order of the fields. The order is not the one I would choose, but it works.
If I change the order so that it works, the problem will not be there to demonstrate itself. If the plugin author ever finds the time to reply to this topic, I will be happy to revert the order to one that exhibits the error for the sake of debugging the problem.
BTW – I also tried setting hide_empty for each field instead of just one (hide_empty=”1,1,1,1,1,1,1,1,1″). That made no difference.
Thank you.
Forum: Plugins
In reply to: [CM Tooltip Glossary] Conflicts with MetaSliderI’ve found the solution.
Your last reply mentioned the possibility of interference from a plugin other than MetaSlider or CM Tooltip Glossary. At the beginning, I had disabled all the plugins I could and used the standard WordPress theme. Yet I still saw the issue.
I think the only plugin other than MetaSlider and CM Tooltip Glossary that I left enabled was Pods. I did not disable Pods since the failure occurs on a custom post-type created using Pods, and I didn’t see how I could test it otherwise. As simple as it is, it had not occurred to me to create a test page that does not use Pods in order to rule it out as the culprit. I’ve just done so, and you are correct – there is no problem when not using Pods.
Actually, it also works with Pods when the post is not rendered using a Pods Template. When I disabled the template I was using the problem went away. So now the problem is narrowed down to the template.
The template can replace the content or be displayed before or after the content.
I was replacing the content, which means that in order to get the content displayed the template had to end with {@post_content}. So one solution was to change to displaying the template before the content and eliminate this line.That resolved the problem but the solution prevents me from having template content both before and after the post content:
This is template content
This is more template content
{@post_content}
Conclude with more template contentAfter a little searching I stumbled upon the better solution.
Jory Hogeveen (@keraweb)
9 months, 1 week ago
I did some more digging and found a possible solution with Pods Templates.{@post_content} always returns the raw content from the object. This isn’t parsed by any filters or functions.
However, the function get_the_content() properly filters and parsed the content of an object and only required an object ID as the parameter.
So instead of {@post_content} you could do this: {@ID,get_the_content}
So I can continue to replace the content and instead have the template end with {@ID,get_the_content} and everything is working fine, without using [glossary_exclude]. The MetaSlider block is also working.
I appreciate they time you took to help me.
Regards,
Greg
Forum: Plugins
In reply to: [CM Tooltip Glossary] Conflicts with MetaSliderEmail sent. Thanks.
Forum: Plugins
In reply to: [CM Tooltip Glossary] Conflicts with MetaSliderI enabled debug mode and saw two errors, one of which I cannot replicate.
The first was:
WP_User->id was called with an argument that is deprecated since version 2.1.0! UseWP_User->IDinstead. in /home3/hrsmsorg/public_html/Content/wp-includes/functions.php on line 5057But it is not related to either plugin (yours or MetaSlider) and appears whether or not your plugin is enabled.
The second was related to register_rest_route being used incorrectly. I searched all of the files, and MetaSlider is the only plugin I am using that calls it. But this error no longer appears whether or not your plugin is enabled. Whether or not I am using the glossary_exclude workaround also makes no difference with regard to this error.
When I did see the error, I cannot recall whether your plugin was enabled. I presume it was not – that MetaSlider only executes this code and causes the error when your plugin is disabled.
It appears to me that your parsing of the page must be the source of the problem. Can you add the MetaSlider plugin to a test site and step through the execution of your code?
Thanks,
Greg
Forum: Plugins
In reply to: [CM Tooltip Glossary] Conflicts with MetaSliderThank you for continuing to look at this.
CM Tooltip is active now.
The example page
https://www.hrsms.org/Content/model/cule-and-chata/
does not have the glossary_exclude shortcode added, and is broken.For an example of the glossary_exclude shortcode included as a successful workaround, see https://www.hrsms.org/Content/model/balao-uss-ss-285/
Let me know if including URLs in these messages is forbidden and I’ll edit the reply.
Forum: Plugins
In reply to: [CM Tooltip Glossary] Conflicts with MetaSliderThat is a good workaround, and I’m ashamed it did not occur to me, as I’m using glossary_exclude elsewhere.
When you say “wrap the metaslider code”, where you referring to shortcodes (e.g. [glossary_exclude][metaslider id=”####”][/glossary_exclude] ), or where you suggesting that I customize the MetaSlider PHP and/or Java code?
If the latter, I am avoiding any code changes whatsoever on my site. Though I am a programmer by profession, I am not a WordPress programmer, and I work with C++ and C#, not PHP or Java. It might be fun to learn WordPress programming, but it is not near the top of my to-do list at the moment 😉
More importantly, my site is just for a club, and at some point it will be handed off to someone else to manage, and that person will likely not be a programmer at all.If you just meant the shortcodes, I can certainly do that. But your persistence in this matter would be appreciated. MetaSlider has their own block, and I would prefer to use that in place of the Shortcode block, which is required for this workaround. It is not a critical issue, but it would make for more straightforward page creation, for myself or whoever eventually takes over from me. Perhaps you can work with the folks at MetaSlider?
Thanks.
Forum: Plugins
In reply to: [CM Tooltip Glossary] Conflicts with MetaSliderI did the test you suggested and two others.
I also tried using the WordPress 2020 theme instead of Sydney. That did not change anything.=======================
Test 1 / State A – CM Tooltips Off, MetaSlider Off
Test 1 / State B – CM Tooltips Off, MetaSlider OnThere are two additional warnings for MetaSlider
Warning: The type attribute is unnecessary for JavaScript resources.
From line 682, column 1; to line 682, column 189
</script>↩<script type=’text/javascript’ src=’https://www.hrsms.org/Content/wp-content/plugins/ml-slider/assets/sliders/flexslider/jquery.flexslider.min.js?ver=3.18.0′ id=’metaslider-flex-slider-js’></scriWarning: The type attribute is unnecessary for JavaScript resources.
From line 683, column 1; to line 683, column 68
</script>↩<script type=’text/javascript’ id=’metaslider-flex-slider-js-after’>↩var m=======================
Test 2 / State A – CM Tooltips Off, MetaSlider On
Test 2 / State B – CM Tooltips On, MetaSlider OnThere are two additional warnings for CM Tooltips
Warning: The type attribute is unnecessary for JavaScript resources.
From line 127, column 1; to line 127, column 56
</script>↩<script type=’text/javascript’ id=’tooltip-js-js-extra’>↩/* <!Warning: The type attribute is unnecessary for JavaScript resources.
From line 132, column 1; to line 132, column 170
</script>↩<script type=’text/javascript’ src=’https://www.hrsms.org/Content/wp-content/plugins/enhanced-tooltipglossary/frontend/assets/js/tooltip.js?ver=5.5.1′ id=’tooltip-js-js’></scri=======================
Test 3 / State A – CM Tooltips Off, MetaSlider Off
Test 3 / State B – CM Tooltips On, MetaSlider OffThere are two additional warnings for CM Tooltips (same as when both are on)
Warning: The type attribute is unnecessary for JavaScript resources.
From line 127, column 1; to line 127, column 56
</script>↩<script type=’text/javascript’ id=’tooltip-js-js-extra’>↩/* <!Warning: The type attribute is unnecessary for JavaScript resources.
From line 132, column 1; to line 132, column 170
</script>↩<script type=’text/javascript’ src=’https://www.hrsms.org/Content/wp-content/plugins/enhanced-tooltipglossary/frontend/assets/js/tooltip.js?ver=5.5.1′ id=’tooltip-js-js’></scriForum: Plugins
In reply to: [CM Tooltip Glossary] Conflicts with MetaSliderIt only affects pages using MetaSlider, and those pages render exactly as expected except that the MetaSlider is not displayed. For example, on the example page, you would see the Featured Image, some text rendered by a Pods template (who built the model and a bunch of categories) and then a series of headers and paragraphs (‘About the Vessel’, ‘Culé’, ‘Chata’, ‘About the Model’, ‘Model Images’). After ‘Model Images’ you see the MetaSlider. But when your plugin is activated this does not appear. Everything else stays the same – only the MetaSlider is missing.