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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

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