Dan Griffiths
Forum Replies Created
-
Forum: Plugins
In reply to: [Minecraft Validator] [Plugin: Minecraft Validator] ContributorsI would… but clicking ‘contact us’ doesn’t seem to do anything… You could always try the contact form on my site ??
Forum: Plugins
In reply to: [Username Changer] [Plugin: Username Changer] not worked for me!Not 100% sure what you mean… Can you elaborate?
MCV has been updated to v1.3! This update fixes all known issues, as well as cleans up a LOT of unnecessary code and removes the dependency on URL File-Access!
Forum: Plugins
In reply to: [Minecraft Validator] [Plugin: Minecraft Validator] Never postsMarking as resolved.
Forum: Plugins
In reply to: [Minecraft Validator] [Plugin: Minecraft Validator] ContributorsWhat do you have in mind?
Marking as resolved.
Forum: Plugins
In reply to: [Minecraft Validator] [Plugin: Minecraft Validator] Chane user name?MCV has been updated to v1.3! This update fixes the aforementioned issue, as well as cleans up a LOT of unnecessary code and removes the dependency on URL File-Access!
MCV has been updated to v1.3! This update fixes the aforementioned issue, as well as cleans up a LOT of unnecessary code and better handles rewriting the login page!
This file worked for me!
Quick fix… edit minecraft-validator.php and find the following code:
$mcacct = file_get_contents( 'https://www.minecraft.net/haspaid.jsp?user=' . rawurlencode( $login ) );
Replace it with the following:
$curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_URL, 'https://www.minecraft.net/haspaid.jsp?user='.rawurlencode($login)); $mcacct = curl_exec($curl); curl_close($curl);
This is due to the way your server has PHP configured. I’ve got an update almost ready which will resolve this issue (taking url-file-access out of the loop completely).
Forum: Plugins
In reply to: [Minecraft Validator] [Plugin: Minecraft Validator] Chane user name?It’s actually supposed to. I didn’t realize that wordpress changed something which broke it until now. I’m working on fixing it.
Forum: Plugins
In reply to: [Debogger] Debogging Debogger… fixing a minor glitchGlad I could be of help. ??
Forum: Plugins
In reply to: Third party update notificationsFound my own solution ??
In case anyone else wants it, here’s the server-side code:
checkver.php
<?php if(empty($_GET)) { echo "You forgot to tell me what you're looking for!"; } else { if(isset($_GET['app']) && isset($_GET['option'])) { $app = $_GET['app']; $option = $_GET['option']; $ini_array = parse_ini_file("checkver.ini", true); if($ini_array[$app]) { if($ini_array[$app][$option]) { echo $ini_array[$app][$option]; } else { echo 'Invalid option!'; } } else { echo "$app not found!"; } } elseif(isset($_GET['app']) && !isset($_GET['option'])) { echo "Option not specified for " . $_GET['app'] . "!"; } elseif(!isset($_GET['app']) && isset($_GET['option'])) { echo "Get option " . $_GET['option'] . " for what?"; } else { echo "Uh-oh... you're really lost aren't you?"; } } ?>
Here’s the ini file:
checkver.ini
[Plugin Name] ver=1.0
Here’s the client side code:
// Define some variables $app='Plugin Name'; $ver='1.0'; // Check for updates function update_check() { $latest = file_get_contents('https://path.to/checkver.php?app=' . rawurlencode($GLOBALS[app]) . '&option=ver'); if($latest) { if(version_compare($GLOBALS[ver], $latest, '<')) { ?> <div class="updated"><p>An update for <?php echo $GLOBALS[app]; ?> is available! You are running version <?php echo $GLOBALS[ver]; ?>, the latest is version <?php echo $latest; ?>!</p></div> <?php } } } add_action('admin_notices', 'update_check');
Forum: Fixing WordPress
In reply to: Links showing up in random places on my WP site.Different theme, no plugins… still happening.