Open dbolton opened 2 years ago
Hi dbolton,
first off all, to address the elefant in the room: Yes this plugin is in a very bad condition. But nontheless it should still run. I just tested it some minutes ago against a 3.10.3 on php 7.2.something and 7.4.latest (updated from a 3.7.something on php 7.2.something). It does not work on php 8 but will throw errors.
There are some small things left to check. The popup does not actually save right after clicking the dialog save button. You have to save the plugin explicitly. There is an property/option that allowes/prohibes caching of a module content. That might prevent content from rerendering. Disabling cache is always a great starting point. ...oh and shifting the plugin up or down within the plugin priority might solve problems with other plugins. But other than that I have no actual idea on how to resolve your problem.
Hope I could bring some fresh ideas to the solution.
Cheers, Lars
@echterhoff Thank you for your response and suggestions.
I appreciate you developing this plugin. I don't see any other plugins like it on Joomla.
Okay. This problem is solvable. There is one thing you could check before I would suggest to alter some code to make sure the plugin is actually invoked. The wysiwyg editor might convert the curly braces into their html entities. But I am pretty sure you have already checked that.
So I would actually suggest to check if the plugin is running by stopping the code execution at some distinct points.
First, place a die('Stopped');
right the next line after <?php
and refresh the page. Then, in case it stops your page from beeing executed, move (not copy) it the line above class plgContentGlobalVariables extends JPlugin
row number 78. Check the execution.
In case this works (actually stops your page again), move the line to 250. Right into the function onContentPrepare
after the preceeding {
and bevor the line $this->replace_array($article);
.
I am looking forward to your results.
I wish I had the time to care more about that plugin.
Oh, and I am talking about altering the script globalvariables.php
Here's what I've tried:
I declared a variable:
I checked the extension is enabled:
I included the variable in the article edit window:
On the published page, it just shows {global}currentVersion{/global}:
How do I get it to replace the bracketed text with the value of the variable.
I'm using Joomla! 3.10.3 Stable on Ubuntu