re-purpose telephone number field

Help
2011-09-02
2013-05-09
  • Kerry Channing

    Kerry Channing - 2011-09-02

    How easy would it be to re-purpose the telephone number field to be a "configuration URL" field. I would like to be able to see it as a link on displaysubnet.php and to be able to edit it on modifyip.php form.

    Would it be easy to do and if so which other files should I change? I can see I would need to increase the size of the database field telno in ipaddr, and modify the two php pages mentioned, but other than that are there any tricky bits to watch out for?

    IPPlan is great on it's own but this feature would allow me to use IPplan to store configuration addresses for each resource, and click them from one page. It just seems to make sense for my needs.

    Thanks

     
  • Kerry Channing

    Kerry Channing - 2011-09-04

    Here's the patch that's working for me so far (as well as increasing the size of the telno field in mysql):-

    #diff IPplan/user/displaysubnet.php.orig IPplan/user/displaysubnet.php
    559c559
    <     insert($c,text(my_("Telephone Number")));
    --
    >     insert($c,text(my_("Config URL/MAC")));
    747c747
    <     if (TELNO) {
    --
    >     if (TELNO and !empty($row)) {
    748a749
    >         insert($c,block("<a href='"));
    749a751
    >         insert($c,block("' target='_blank'>config url</a>"));

    #diff IPplan/user/modifyipform.php.orig IPplan/user/modifyipform.php
    565c565
    < insert($con,textbrbr(my_("Telephone number")));
    --
    > insert($con,textbrbr(my_("Config URL")));
    568,569c568,569
    <                            "size"=>"15",
    <                            "maxlength"=>"15")));
    --
    >                            "size"=>"100",
    >                            "maxlength"=>"400")));

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks