v3r50r
Forum Replies Created
-
Forum: Plugins
In reply to: [Global Content Blocks] phpmyadmin "corrupts" blocksHello,
This is quite strange behaviour, as the update should only be triggered by changes done in the field.
Also, it is not directly related to the plugin, since it looks like more of a phpMyAdmin issue.
I use the phpMyAdmin tool as well and tested this and cannot replicate the mentioned behaviour.
Could you maybe get a list of difference between the strings before and after the update ?
The string itself is a serialized form of a standard object (StdClass) and that means that breaking the string itself might lead to the plugin inability to read the data back again.
Good luck!Forum: Plugins
In reply to: [Global Content Blocks] edit links redirect from https to httpthose links should be using ‘get_option(“siteurl)’ so they should work of the site is in SSL. but maybe you are using it in a different way, could you tell me what is your process to replicate this issue ?
Forum: Plugins
In reply to: [Global Content Blocks] ability to work on bbpress forums?Hi!
Looks like BBpress does not allow most shortcodes, so I suggest using a plugin like:
https://www.ads-software.com/plugins/bbpress2-shortcode-whitelist/
and add ‘contentblock’ as an allowed shortcode. I tested this and it works, but since that plugin is quite old, you might want look for another one that does the same thing.Cheers
Forum: Plugins
In reply to: [Global Content Blocks] Limted number of GCB?glad to hear everything worked out!
Forum: Plugins
In reply to: [Global Content Blocks] Limted number of GCB?Thank you for posting that. For starters, your PHP code (at least in block 8) looks a bit off, I think it should look like:
$xml=simplexml_load_file("wxdata.xml"); echo $xml->rainfall24h_mm;
And i noticed all your echo statements have string join (via the full stop operator), which I do not think is needed and may introduce issues with whitespace, in your case at least.
Please try my above code and let me know if it works.
Forum: Plugins
In reply to: [Global Content Blocks] Limted number of GCB?Hello,
Could you post your XML file contents here, and also the contents of blocks 7 and 8 (the ones that do not work) ?
it does not sound like a block related issue, so I would like to take a look at your data.Thank you
Forum: Plugins
In reply to: [Global Content Blocks] feature req: allow variables in php codeHello,
I don’t see why this would not work. Attributes are processed before the PHP code is evaluated, so this should work as intended. I am not able to test this at the moment, but will look into it in a few hours.Forum: Plugins
In reply to: [Global Content Blocks] Queries and updatesHello,
This plugin uses the Options API of WordPress.
That should mean that this plugin is future proof, unless WordPress itself drops that API, or changes the interface (both things are unlikely at this point)Forum: Plugins
In reply to: [Global Content Blocks] Fetch Data from Web Service into The Block (PHP Code)Hello,
This plugin can run PHP code, so you can fetch data from external services, as you would normally do. I might be able o help you more if you post some code here, in case it does end up not working out for you.Forum: Plugins
In reply to: [Global Content Blocks] Error on PHP snippetThe issue is that hosting does not allow
allow_url_include
which means they cannot include external (or over internet) files. That is one security breach anyways. You can talk to their hosting to allow this, or try to use fopen, file_get_contents or cURL, and then eval the code (those options might be blocked by the hoster as well).
If it is your own server, you need to edit the php.ini file (normally under /etc/php.ini) and add a line at the end saying:
allow_url_include = 1
This issue has nothing to do with the GCB plugin, either way.
Forum: Plugins
In reply to: [Global Content Blocks] Block in widgetthis could also be done by just using the shortcode itself in the text.
Eg:[contentblock id=xx]
inside a text widget. The text widget evaluates shortcodes. If you have another widget, then you need to make sure it evaluates shortcodes in its content processing function.If you provide an example, I could assist you further