![]() |
Need help - custom ping script!
Using this mod I want to imbed a custom Ping script into the page.
The script works fine, it pings a web address or IP fine however, the results are outputted to the very top of the web page, above the logo. I want the results to output right underneath the field that you type the web address/IP into. Here is the ping script: Code:
<?php Here is my template: Code:
$stylevar[htmldoctype] What do I need to do to get this working correctly? I've tried many different things to get this working - currently this seems to be the most 'functional' for lack of a better word. Any help would be greatly appreciated. Thanks! :) |
Create a template for it instead of using 'echo'.
Regular echo is only suitable for debug with vBulletin. |
Sorry, I'm going to need a bit more detail. I don't understand! :(
|
All your display should be in your templates. The PHP code should not print any output into the browser (except for the final print_output), but instead assign all the data into variables for use in the template.
|
Hmmm! Not having much luck with this. I even tried dynamic AJAX inclusions using a script from dynamic drive and I still couldn't get it to work properly.
Unfortunately, I'm not the most talented coder out there. :( |
Use this PHP instead of yours. The template doesn't need to be changed (keep the one you posted above).
PHP Code:
|
I had something similar to what you have posted but I there were a few errors in mine when I tried to run it.
There are no errors in yours but check it out now (http://www.itresource.com.au/page_ping.php). I wont bother explaining, you will see the results yourself. |
PHP Code:
|
Now no results appear, just a 0 under the form.
|
PHP Code:
|
All times are GMT. The time now is 07:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|