I have a few basic installations of Drupal running for friends and I try to find new things to add to their websites so I can learn Drupal a bit better.
I've been playing around with CCK the last few days and now I wanted to make something for one of those friends : to show information about a few servers of him, he has a php script that returns an image, something like : ![]()
But the IP's of those servers change sometimes, or there could be an extra server, stuff like that.
So I want him to be able to manage it easily, by just entering/editing the IP. So I would like to make a server content type, but how do I automatically generate that
tag with the reference to the right script around it? I'm a bit lost there, can anyone point me in the right direction?
I hope my explanation is clear enough for people to understand it.
Comments
Nobody has an idea?
Nobody has an idea?
CCK IP Address
If the script isn't too large you could add it to your template.php file, if it is you might want to check out how to create a drupal module.
For either, you might want to check out the cck IP Address module, if you haven't already: http://drupal.org/project/cck_ipaddr
If you add the script to your template.php file, it's probably as simple as editing your content-type template (check out the themes folder in cck for documentation how to do this).
If you need to create a module, the IP Address module might be a good starting point.