akirak
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Global Variables] output without code tagHi @knighthawk ,
You should be able to decode it with html_entity_code function and display it without escaped tags.
Forum: Plugins
In reply to: [Custom Global Variables] Update not reflectedHi @eeecarus ,
Thank you for this request.
There is no cache layer in CGV and this is happening because of other cache layers.
I think it’s best for this plugin to provide an action upon saving the settings page.
Then what you can do is to implement the action to call a function to clear LSCache.
I’m not sure when I have time to do this but I will plan working on this.
AkiraHi @aethon ,
Cookies and this work in different cases as this will be the same value for all visitors globally.
Glad you were able to implement it.
Thanks,
AkiraForum: Plugins
In reply to: [Custom Global Variables] Setting Variable value?That is not a proper usage for this plugin.
User specific temporary data should be stored in a session or cookie.
Thanks,
AkiraForum: Plugins
In reply to: [Custom Global Variables] Variables in backendAs you see in the readme, this plugin provides shortcodes.
Also if you want to use it in plugin or template file, you will need to access to the global variable, that is also written in the readme.
If you still have any issue, please provide detailed steps to replicate the issue.
Thanks,
AkiraForum: Plugins
In reply to: [Custom Global Variables] All variables lostHello,
This plugin stores configuration in a file rather than database.
You might want to monitor the file under /wp-content/custom-global-variables folder.
It might be removed somehow or even not being written because of some permission issue.
Thanks,
AkiraForum: Plugins
In reply to: [Custom Global Variables] Setting Variable value?Hello,
The value won’t change per user and it will pull from globally configured value whenever you refer to it through either shortcode or the PHP code below.
shortcode
[cgv variable-name]PHP code
<?php echo $GLOBALS[‘cgv’][‘variable-name’] ?>If you want variables per user basis, those variables should be added to user entity as field via ACF or any custom fields.
Forum: Plugins
In reply to: [Custom Global Variables] Multisite supportThanks for the code, @tfr79 .
I am thinking of providing a set of variables for all sites and sets for individual sites.
The current implementation will stay as is, to cover a set for all sites.
This way, we can make sure not to cause any regressions for existing installation and individual site can override base value for certain key.
I will let you know when this is available but it will take some time.Forum: Plugins
In reply to: [Custom Global Variables] Multisite supportThank you for sharing your use cases, @tfr79 .
I agree it’s better to provide multisite functionality which can override a value for any single multisite.
It’s not a quick development so I’m not sure I can give you timeline.
Or if you can contribute code, that would be good starting point for me..One thing I want to emphasize is that you shouldn’t put any secret info in this plugin’s config.
As you see the code, the variables are not stored in DB and it can be viewed if the hash name is guessed properly.Forum: Plugins
In reply to: [Custom Global Variables] Multisite supportHi @tfr79 ,
Thanks for the idea!
Though I was wondering what exactly you would like to accomplish by this or what problem you are having now.
Using different values for the same key between sites is a use case that I can think of.
Hearing your use cases will give me better idea for the requirements.Akira
Forum: Plugins
In reply to: [Custom Global Variables] Security Release@sanderdm ,
The version 1.1.2 has been released.
Please update and let me know if you see any issues.
Thanks,
AkiraForum: Plugins
In reply to: [Custom Global Variables] Security ReleaseHi @sanderdm ,
Thanks for the issue report.
I didn’t consider that use case. Will work on that and release it.
Thanks,
AkiraForum: Plugins
In reply to: [Custom Global Variables] Security ReleaseHi @sanderdm ,
This plugin has been re-listed and you can download the new version!
Thanks,
AkiraForum: Plugins
In reply to: [Custom Global Variables] Security ReleaseHi Sander,
I’m communicating with WordPress team about the transition as I can’t reach out to original author.
There are rigorous steps ahead so it might take time for this to happen.
Thanks,
Akira