Stop being the product.
Become the owner.
or
sign uplog in
Ok so i got some code written for a music player that earn millix. @crank @danny @price @eriksson how do i get this to work in wordpress, does this look right? <?php // Define Millix DAG node endpoints define('MILLIX_NODE_1', 'http://node1.millix.org:8080'); define('MILLIX_NODE_2', 'http://node2.millix.org:8080'); // Define Millix DAG transaction fee define('MILLIX_TX_FEE', 0.0001); // Define your Millix address where you want to receive payments define('15vu8ndbG8okHHUyXsy4T2A8DwHESQxjiB0a015vu8ndbG8okHHUyXsy4T2A8DwHESQxjiB'); // Define the song that you want to play define('SONG_NAME', 'INSERT_SONG_NAME_HERE'); // Define the amount of Millix you want to earn per play define('MILLIX_PER_PLAY', 1000.00); // Connect to a random Millix DAG node $node = (rand(0, 1) == 0) ? MILLIX_NODE_1 : MILLIX_NODE_2; // Create a new Millix transaction for the song play $tx = array( 'inputs' => array( array( 'address' => YOUR_MILLIX_ADDRESS, 'amount' => MILLIX_TX_FEE, ), ), 'outputs' => array( array( 'address' => YOUR_MILLIX_ADDRESS, 'amount' => MILLIX_PER_PLAY, ), ), 'data' => SONG_NAME, ); // Sign the transaction with your Millix private key // (not shown here for security reasons) // Broadcast the transaction to the Millix DAG network $ch = curl_init($node.'/api/transactions'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($tx)); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Check if the transaction was successfully broadcasted if ($response === false) { echo 'Error: Failed to broadcast Millix transaction to DAG network'; } else { $result = json_decode($response, true); if ($result['success']) { echo 'Success: Millix transaction for song play broadcasted to DAG network'; } else { echo 'Error: Failed to broadcast Millix transaction to DAG network: '.$result['error']; } }
earnings
148,000 mlx total
$0  total
engagement
132 views
20 reactions
reaction stream
10 comments
badge
$0 earned3y ago
Create a separate page for songs only.
Or you can use it sidebars by a HTML code plugin.
badge
$0 earned3y ago
So i have to upgrade to use that, right?
badge
$0 earned3y ago
Let me clear that the code is okay for you.
I mean, do you have tested this code?
If so, it will work on any platform by HTML code plugin.
badge
$0 earned3y ago
How do i test a script?
badge
$0 earned3y ago
Oh god! Use plugin if you are familiar on WP.
badge
$0 earned3y ago
im not familiar with either.
badge
$0 earned3y ago
Mate i'm going to bed, its 3am here. will hit you up in the morning.
badge
$0 earned3y ago
Have a great dream. Good night.
badge
$0 earned3y ago
i have no idea what im doing
badge
$0 earned3y ago
I'm gonna get some sleep but i need pointers, like do i add my private key to the brackets like i did address, where on wrodpress do i add this as code aint working.