Need help adding and removing code for auction script

Discussion in 'HTML & Website Design' started by bbrian017, Oct 18, 2007.

  1. #1
    I would like to remove and add the following to an auction script I own and I was hoping somoen or a bunch of people could possibly help me do this. I feel this information isn't need for what I'm trying to do with the script.

    Alright I was looking at the register page and here what I want taken out from this process.

    Birthdate
    Address
    State/Province
    ZIP Code
    Telephone


    Also when posting a new auction I would like the following also taken out,


    Country
    ZIP Code
    Shipping conditions
    Shipping terms
    Suggest a category


    Things I would like added to creating an auction

    Forum name
    Posts
    Posts per day
    User name
    Custom forum title
    Length of forum membership
    Profile link
    How many ads will be running at the same time (Max)
    Positioning of sigsell right, left, top, bottom,
    Duration of sigsell
    Limitations or restrictions


    What do you think is this possible? Please get back to me.


    P.S. Even tho I'm trying to get it done for free you can pm me regarding this job if you feel it should be a paid job I only have 50 Canadian dollars sorry :(

    P.S. maybe this should have went into the php forums Sorry :(
     
    bbrian017, Oct 18, 2007 IP
  2. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    maybe you should post your code?

    we could do the first few, and you can most likely do the rest, it's all the same in the end, just different variable names
     
    Lordy, Oct 18, 2007 IP
  3. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Alright that's a great place to start. I have only found one file with this information but it's the easiest to find. When I take the code lines out it still says you have to enter that information to proceed but the fields are no longer there as you mentions the database is still looking for that info, or at least something is. so I have to somehow stop the script from making sure that information is included.

    I have a little knowledge when coding php as I have played with phpbb forums a lot and even created my one pre modded board. The only thing is I never written php and I really have no clue how to do this.

    So lets look at the template_register_php

    here's the code that I would like removed. I have removed this code with no page errors but like I said the database still wants the information :(

    
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_252;?>
                    </B> </TD>
                  <TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_birthdate SIZE=10 MAXLENGTH=10 VALUE="<? echo $TPL_birthdate; ?>">
                    <?
                if($SETTINGS[datesformat] == "USA") {
                   print $std_font.$MSG_382;
                } else {
                   print $std_font.$MSG_383;
                }
                ?>
                  </TD>
                </TR>
                <TR>
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_009;?>
                    </B> </TD>
                  <TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_address SIZE=40 MAXLENGTH=255 VALUE="<? echo $TPL_address; ?>">
                  </TD>
                </TR>
                <TR>
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_010;?>
                    </B> </TD>
                  <TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_city SIZE=25 MAXLENGTH=25 VALUE="<? echo $TPL_city; ?>">
                  </TD>
                </TR>
                <TR>
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_011;?>
                    </B> </TD>
                  <TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_prov SIZE=10 MAXLENGTH=10 VALUE="<? echo $TPL_prov; ?>">
                  </TD>
                </TR>
                <TR>
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_014;?>
                    </B> </TD>
                  <TD WIDTH="60%"><SELECT NAME=TPL_country>
                         <? echo $country; ?>
                    </SELECT>
                  </TD>
                </TR>
                <TR>
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_012;?>
                    </B> </TD>
                  <TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_zip SIZE=8 VALUE="<? echo $TPL_zip; ?>">
                  </TD>
                </TR>
                <TR>
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?=$std_font.$MSG_013;?>
                    </B> </TD>
                  <TD WIDTH="60%"><INPUT TYPE=text NAME=TPL_phone SIZE=40 MAXLENGTH=40 VALUE="<? echo $TPL_phone; ?>">
                  </TD>
                </TR>
    Code (markup):
    And here is a general idea of what I would like gone from the template_sell_php


                <!------------------------------------ country -------------------------------->
                <TR>
                  <TD WIDTH="40%"  VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_023;?>
                    </B> </TD>
                  <TD WIDTH="60%"><? print $TPL_countries_list; ?> </TD>
                </TR>
                <!------------------------------------ zip code -------------------------------->
                <TR>
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_024;?>
                    </B> </TD>
                  <TD WIDTH="60%"><INPUT TYPE=text SIZE=8 NAME=location_zip VALUE="<? print $location_zip; ?>">
                  </TD>
                </TR>
                <!--------------------------------- shipping --------------------------------------->
                <TR>
                  <TD WIDTH="40%" VALIGN="top" ALIGN="right"><B>
                    <?print $std_font.$MSG_025;?>
                    </B> </TD>
                  <TD WIDTH="60%" valign="top"><INPUT TYPE=radio NAME=shipping VALUE="1" <? print $TPL_shipping1_value; ?>>
                    <? print $std_font.$MSG_031; ?> <BR>
                    <INPUT TYPE=radio NAME=shipping VALUE="2" <? print $TPL_shipping2_value; ?>>
                    <? print $std_font.$MSG_032; ?> <BR>
                    <INPUT TYPE=checkbox NAME=international VALUE="1" <? print $TPL_international_value; ?>>
                  <? print $std_font.$MSG_033; ?></TD>
                </TR>
    Code (markup):
    Now as you mentions there is other files that will be affected and here are some of the files I'm thinking,

    template_sell_preview_php
    template_registered_php
    template_profile_php
    template_item_php
    template_sell_result_php

    and maybe even more! I'm just assuming these files can be affected and I might be wrong but it would make sense if there were affected.

    I can't add the files because there is too many characters for the post...
     
    bbrian017, Oct 18, 2007 IP
  4. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    please check the database, and see if it says NOT NULL default '';
    if not, its not setting a default and cannot be entered as null.

    also, please check somewhere in your script if there is an
    if(isset($variable) as you have not posted most of that.

    also, please tag it with instead of php tags instead of code tags

    edit: i dont particularly care for what you want gone, that doesn't give me any information on the rest of the script which is the important part
     
    Lordy, Oct 18, 2007 IP
  5. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #5
    Am I looking for a specific table?

    Am I looking in a specific file or should I search the whole script?


    EDIT:
    I did find a table that was called php_auction_users and inside this table is had all these fields City, Counrty, phone number etc... and it states that it's Null under the Item_watch


    Sorry if this makes noe sense I'm not too sure what I'm even looking at :)
     
    bbrian017, Oct 18, 2007 IP
  6. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #6
    it's hard to say, i don't know how your database is structured.

    i would assume some are under the users table, and some under an auction_list table?

    for the second part, when looking for the isset($variable) you should check to see where your form sends action to
    <form action="whatever here" method="whatever">
    from there, you should look for where your form action sends it to (whatever file it is) and using that you should try to see if it checks to see if these variables are set
    Code (markup):
     
    Lordy, Oct 18, 2007 IP
  7. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #7
    This is beyond my skills so I can't do much I'm kind of lost here
     
    bbrian017, Oct 18, 2007 IP
  8. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #8
    that doesn't help, your not providing enough information.

    if you want, pm me your ftp/mysql passwords and i'll look into it
     
    Lordy, Oct 18, 2007 IP
  9. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #9
    I'd rather just give you a copy of the script :)

    You can install and look into these questions
     
    bbrian017, Oct 18, 2007 IP
  10. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #10
    can you set up a fresh install then? i am too lazy to install my own copy :)
     
    Lordy, Oct 18, 2007 IP
  11. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #11
    Alright what do you need username password to this database?
     
    bbrian017, Oct 18, 2007 IP
  12. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #12
    yup, and ftp or files
     
    Lordy, Oct 19, 2007 IP
  13. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #13
    everything has been set up I have sent you a pm with the login information database and ftp

    Thanks
     
    bbrian017, Oct 19, 2007 IP