Jump to content
  • 0
shivsingh7150

i am want to change intodns.com to other

Question

Hello,

As intodns.com is good free provider to check DNS health but it take time to response and also provide caching result so we have developed our own dns testing application.

 

Now i am want to change url from into dns to my url.

Please check below screenshot to better understand.

Screenshot_5.png.f6da643536571f839ebb64364386ece2.png

 

 

Please help me.

Thanks

 

 

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 1

You can use the following:

<?php

add_hook('AdminAreaFooterOutput', 1, function($vars) {
    echo '<pre>';
    print_r($vars);
    echo '</pre>';
    if ($vars['filename'] == "clientsdomains" || $vars['filename'] == "clientsservices"){
    return <<<HTML
    <script type="text/javascript">
        //Javascript to change links
    </script>
HTML;
}
});

You just have to create the JavaScript, that will replace the links.

Share this post


Link to post
Share on other sites
  • 1

Today someone else asked the same question. I provided the answer here. The script is the following:

<?php

add_hook('AdminAreaHeaderOutput', 1, function($vars)
{
    if ($vars['filename'] == 'clientsservices')
    {
        $output .= <<<HTML
        <script type="text/javascript">
        $(document).ready(function(){
            var url = $('input[name="domain"]').val();
            $('input[name="domain"] + div').children('ul').eq(0).append('<li><a href="https://example.com/hello.php?domain='+ url +'" target="_blank"><img src="https://katamaze.com/templates/kata/img/stuff/nyan-cat.png" style="height: 27px;width: 180px;"></a></li>');
        });
        </script>
HTML;

        return $output;
    }
});

Here's the output:

nyan-cat-2.png.d9a0f83ee66a84889d966b81d

 

Share this post


Link to post
Share on other sites
  • 0

Thanks DennisHermannsen and Kian for help,

 

I have completely replaced to IntoDNS as:

$('input[name="domain"] + div ul li:last-child').html('<a href="https://www.xxxxxx.com/xxx.php?for='+ url +'" target="_blank">DNS</a>');

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated