Results 1 to 7 of 7

Thread: http://

  1. #1
    Join Date
    Apr 2003
    Location
    NY
    Posts
    331

    Default http://

    how do i have this not show up everytime in the add_forum?
    i can not seam to find where it is located, i just want a blank feild.
    and at the same time i want to make the state feild to say NY all the time

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    edit the add html file and change the "value" tags
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Apr 2003
    Location
    NY
    Posts
    331

    Default

    the value is <%url%>....

  4. #4
    Join Date
    Apr 2003
    Location
    NY
    Posts
    331

    Default

    Code:
    <tr class=tbl_normal>
    		<td align="left" valign="top" width="30%"><b>Web Site</b></td>
    														<td align="left" valign="top" width="70%"><input class=text3 type=text name=url size=40 value="<%url%>"></td>
    													</tr>
    any ideas?

  5. #5
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by persut
    the value is <%url%>....
    I am not sure why dody coded it this way but he used <%variables%> in the add_form.html page as follows:
    Code:
            <tr class="tbl_normal">
              <td>Url</td>
              <td><input class=text3 type=text name=url size=40 value="<%url%>"></td>
            </tr>
    I would have used the following:
    Code:
            <tr class="tbl_normal">
              <td>Url</td>
              <td><input class=text3 type=text name=url size=40 value="http://"></td>
            </tr>
    He actually put it in the add.php at about line 74:
    Code:
        if(empty($url)) $url = "http://";
    It just doesn't make sense to add it there.

    For your state you could use:
    Code:
            <tr class="tbl_normal">
              <td>state</td>
              <td><input class=text3 type=text name=state size=2 value="NJ"></td>
            </tr>
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  6. #6
    Join Date
    Apr 2003
    Location
    NY
    Posts
    331

    Default

    update on the thread i got it to work a while ago, i guess the value feilds dont mean anything in the add forms.
    just courious y dody put them in if its not needed???

  7. #7
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    actually, the value field does work and is quite valuable as a way to populate common information in the add_form file. However, most of them will be blank. which does not hurt anything and allows you to use the same html by a simple copy and paste into the modify_form ( or most of it, anyway ).
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. Adding no http:// links
    By Che Guevara in forum v5.x
    Replies: 7
    Last Post: 04-26-2002, 12:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •