Forum Replies Created
-
AuthorPosts
-
alexg
KeymasterThe issue with icon filters not being applied is now fixed in version
3.9.3
which was released just now.alexg
KeymasterIn the latest version
3.9.3
the “No currencies” message is only shown if there are actually no currencies enabled. It is no longer shown while the data is still being loaded from the server.alexg
KeymasterHello,
Are you still experiencing the issue of not being able to add a market to the Exchange?
If you are interested, there are two things you can check:
1. Install the latest version of the parent plugin,
3.9.3
, released just now. You will now be able to check the setting “Disable transients (debug)” in a multisite install. Does this make a difference? Do you see the markets in the frontend when this is checked? If not, then uncheck the option again as it will make your plugin somewhat slower when checked.2. Could you please check to make sure that both the parent plugin and the exchange extension are network-activated? If one of the plugins is activated on a single site then it might not work. I would therefore recommend that you go to network admin settings and deactivate both plugins, then check that they are deactivated in your site where you do your tests, then finally network activate both plugins again.
with regards
alexg
KeymasterYou have no access to the premium downloads because you are on a tax exempt membership plan and your VAT number does not check out on VIES. Could you please check the VATIN you entered in your profile? You can access your profile at https://www.dashed-slug.net/membership-login/membership-profile/
Let me know if you think this is in error.
with regards
alexg
KeymasterIs it possible that your database runs on another server than your PHP/web server?
Other transactions use the PHP time as reported by WordPress, but this extension uses the MySQL time because it is implemented as a pure SQL solution. I could change this but it is faster if you make sure the DB server has the correct time.
with regards
alexg
KeymasterOK I understand now.
The plugin inserts the current date as it is set on your server.
It uses the MySQL function
<a href="https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_current-time">current_time()</a>
.If you adjust the clock on your server, your new airdrops will be assigned the correct time.
To update the airdrop that you created already, use the code I posted above.
with regards
alexg
KeymasterHello,
You would need to enter the code exactly as I posted it, but without the
<?php
opening tag if it already exists. Plase the code at the bottom of the file after all other text.The error you reported means that the curly braces are not balanced. If you can check your code again, please let me know what you find.
with regards
alexg
KeymasterHello,
Thank you and happy new year to you too.
Unfortunately this is not possible at the moment.
If you are interested in making the airdrop appear as if it occurred at some point in time, you can update the
created_time
andupdated_time
columns in the DB manually. For example, imagine you just performed an airdrop with a tag ofad-5be9b4ca31a06
and you would like it to appear as if it happened on the change of the new year. You would do the following:1. Back up your database.
2. In your MySQL console, do this:
UPDATE wp_wallets_txs SET created_time='2018-01-01 00:00:00', updated_time='2018-01-01 00:00:00' WHERE tags LIKE '%ad-5be9b4ca31a06%'. (Replace
wp_` with your actual table prefix if needed).Were you interested in actually performing the airdrop on a schedule? This is not currently possible.
with regards
alexg
KeymasterHello,
The information is passed into get_user_by(). “slug” corresponds to the
user_nicename
column in the DB. It is a sanitized form of theuser_login
string.All users have slugs. In fact, if you use dashes instead of spaces, it can be a dashed-slug!
with regards
alexg
KeymasterHello,
Again thank you for your feedback. This is indeed a bug. The status of the transaction is updated in the database, but the action receives the state of the transaction before the update. I will fix this in the upcoming
3.9.3
release. You can assume that any internal transactions you receive withwallets_move_receive
have been executed.with regards
alexg
KeymasterHello,
I have moved your post to a new thread, as it is unrelated to the other thread.
Thank you for reporting this, you are correct. The coin icon filter is not applied in the menu item and in some other places, while it is applied correctly to the JSON API results. I have already fixed this issue and will release it as part of the upcoming
3.9.3
release which should be out today.with regards
alexg
KeymasterSure, here’s an example. I have omitted most of the rows for clarity, hopefully you get the idea:
function wallets_multiadapter_coins_filter( $coins ) { $coins['ABC'] = array( // Coin symbol 'symbol' => 'ABC', // Coin name 'name' => 'ABC coin', // several rows omitted here // URL to an 64x64 icon for the coin. Or leave empty to pull the icon from 'assets/sprites/SYMBOL.png'. 'icon url' => 'http://www.example.com/abc-coin-icon-64x64.png', ); $coins['XYZ'] = array( // Coin symbol 'symbol' => 'XYZ', // Coin name 'name' => 'XYZ coin', // several rows omitted here // URL to an 64x64 icon for the coin. Or leave empty to pull the icon from 'assets/sprites/SYMBOL.png'. 'icon url' => 'http://www.example.com/xyz-coin-icon-64x64.png', ); return $coins; } add_filter( 'wallets_multiadapter_coins', 'wallets_multiadapter_coins_filter' );
alexg
KeymasterHello,
I am not always online. Here’s some tips about your issue:
First, to regain control of your site, you can delete the plugin directory. In this case it would be
wp-content/plugins/wallets-cp
. After deleting this directory you should regain control of your site. If you need to delete the parent plugin as well, it is inwp-content/plugins/wallets
. You will not lose any data related to the plugin.If you like to try again, you can try the following:
1. Switch to a standard theme. Install the CoinPayments adapter again. Does it work this time? Some themes improperly enqueue the TGMPA library, causing issues with other plugins that use the same library. If installation works with the other theme, then delete the file
wp-content/plugins/wallets-cp/includes/third-party/class-tgm-plugin-activation.php
and try your original theme again.2. If the above fails, I would recommend that you enable WordPress debugging. Then, once the 500 error is caused, the error will be written out to
wp-content/debug.log
. Please send me the error message if you find it.3. Also, which version of PHP are you using?
Hope this helps. Let me know if it doesn’t.
with regards
alexg
KeymasterHello,
As you saw, the notification API accepts TXIDs from anyone (but not confirmation counts). Then, the plugin queries the wallet about these transactions by their ID. The plugin will only insert a transaction to the DB if it concerns a user on the system and if it is valid according to the wallet. The API endpoint is very simple and secure. It does not need to trust the caller.
The same is true with blocks but blocks are not currently being used in anything. The hook is available for future use.
with regards
alexg
KeymasterI see. Could you please provide an example on how I could add both coins using the same function? do I just simply copy & paste the code below the first adapter?
-
AuthorPosts