Login
New User

Welcome to TowerBoy.com
Saturday, September 04 2010 @ 03:40 PM PDT

IRLP Status Script (PHP Embed)

Ham Radio

 I now have another version of the status script available. This version is intended to be called from inside of a PHP page and rendered there. You are still able to define the requested node in the query of the url. An example on how you call the script is below:

include 'http://www.towerboy.com/irlp/script_embed.php?node=3808';

 


 Anywhere you stick that code in your PHP webpage, the status of the node will be rendered. Change the node number and the node will change. You can also have as many nodes displayed as you want on a page. Just make sure that the code above is pasted as many times and where you want them to show up. Also, don't forget to change the node number or you will have a bunch of status scripts showing the same node.

 

I did not include the capability to set the color of the text in this script for the following reason. Since the text is embeded into the page just like native text, you will be able to define the text color and style just like all the other text on your page. 

 

If you have HTML content on a PHP saved page, for example, your page is all HTML but the name of it is "index.php" then embeding the code is a little bit different. Here is an example:

<? include 'http://www.towerboy.com/irlp/script_embed.php?node=3808'; ?>

 

Now, defining the color of the text is really easy here. If you want the text to be a light blue, then you will need to wrap the above code like this:

<span style="color: #723CFF;"><? include 'http://www.towerboy.com/irlp/script_embed.php?node=3808'; ?></span>

 

That's about it. If you have any questions or need help, send me an email. If you really think the ability to change the color of the text in the query of the url (like the IFRAME script) would be better, let me know and I will add that to the script. Email me here: ns7r  at  towerboy  dot   com

Trackback

Trackback URL for this entry: http://www.towerboy.com/trackback.php?id=20091209095305397

No trackback comments for this entry.

0 comments

The following comments are owned by whomever posted them. This site is not responsible for what they say.

My Account





Sign up as a New User
Lost your password?