Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Code problem!


markchiu

Recommended Posts

Posted

Hello, I would like to ask a code question....I am very stupid don't know how to put the code in....

 

 

I would like to put this line

 

require(DIR_WS_BOXES . 'loginbox.php');

 

between my

 

 

Please select an option:

Exist member?

 

and

 

 

Forgotten your password?

click here

 

 

 

I was doing like this(hope you won't laugh me out loud....)

 

 

<table width="609" border="0" cellpadding="0" cellspacing="0">

  <!--DWLayoutTable-->

  <tr>

    <td width="30" rowspan="5" valign="top"><img src="images/indexdeco.gif" width="30" height="445">

    <td width="1" height="27"> 

    <td width="244" valign="top"><img src="images/indexdecoup.gif" width="244" height="27">

    <td width="30" rowspan="5" valign="top"><img src="images/indexdecoright.gif" width="30" height="445">

    <td width="30" rowspan="5" valign="top"><img src="images/indexdeco.gif" width="30" height="445"></td>

    <td width="244" valign="top"><img src="images/indexdecoup.gif" width="244" height="27"></td>

    <td width="30" rowspan="5" valign="top"><img src="images/indexdecoright.gif" width="30" height="445"></td>

  </tr>

  <tr>

    <td height="32">

    <td rowspan="3" valign="top"><div align="center">

        <p align="left"><font size="2">Dear customers:</font></p>

        <p> <font size="2"><br>

          Thank you for visiting YadyShop. We have many great gift selections,

          such as, classical chinese umbrellas, fans, mini bamboo decorations,

          etc. Our shop will always be updated with general information or added

          with new items. If you have any questions regarding the shop, please,

          you can always find quick answers from TOS/FAQ or Shipping/Returns.

          However, if you still have any questions regarding the site, we are

          always ready for you to contact us.</font></p>

        <p><font size="2">Thank you<br>

          Enjoy your shopping with us<br>

          Have a great day</font></div>

    <td valign="top"><font size="2">Please select an option:<br>

      Exist member?</font></td>

  </tr>

  <tr>

    <td height="157">

    <td valign="top"><? php require(DIR_WS_BOXES . 'loginbox.php'); ?>

      <p> </p><p align="center"><font size="2">Forgotten your password?<br>

        <a href="https://host86.ipowerweb.com/%7Eyadyshop/catalog/password_forgotten.php">Click

        here</a></font></p>

      </td>

  </tr>

  <tr>

    <td height="212">

    <td valign="top"><p><font size="2">New member?</font></p>

      <p align="center"> </p>

      <p align="center"><font size="2"><a href="https://host86.ipowerweb.com/%7Eyadyshop/catalog/create_account.php">Would

        you like to open a free account with us?</a></font></p></td>

  </tr>

  <tr>

    <td height="22">

    <td valign="top"><img src="images/indexdecodown.gif" width="244" height="22">

    <td valign="top"><img src="images/indexdecodown.gif" width="244" height="22"></td>

  </tr>

</table>

 

 

:P ...please tell me what should i change .........thanks a lot!!

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Posted

It appears that you have an extra space after the first question mark -- the code should look like this:

<?php require(DIR_WS_BOXES . 'loginbox.php'); ?>

Anything else is just a matter of using HTML to format the page.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Hi, kymation, thank you so much......yes, i fixed the problem.......but then when i put it on....it still doesn't work...tho......sorry about to ask this, but what do you mean by the

 

Anything else is just a matter of using HTML to format the page.

 

Thank you again... :unsure:

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Posted

you have a lot of invalid </td> tags such as here

 

<tr>

<td height="22"></td> <td valign="top"><img src="images/indexdecodown.gif" width="244" height="22"></td>

<td valign="top"><img src="images/indexdecodown.gif" width="244" height="22"></td>

</tr>

 

this is all throughout the code posted

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

The missing </td> tags would probably not change much on the displayed page, unless your browser is really picky. It is still a good idea to put them in. I suggest running your page through an HTML validator to check for errors.

 

As to your page formatting, I'm not certain what you want it to look like. If you want the box to be separated a bit, try this:

 

  <td valign="top"><font size="2">Please select an option:<br>
     Exist member?</font></td>
 </tr>
 <tr>
   <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 </tr>
 <tr>
   <td height="157"></td>
   <td valign="top"><?php require(DIR_WS_BOXES . 'loginbox.php'); ?>
   </td>
 </tr>
 <tr>
   <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
 </tr>
 <tr>
   <td height="157"></td>
   <td valign="top"><p align="center"><font size="2">Forgotten your password?<br>
       <a href="https://host86.ipowerweb.com/%7Eyadyshop/catalog/password_forgotten.php">Click
       here</a></font></p>
     </td>
 </tr>

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

I still can't figure it out.....PLS!!!PLS!!! PLS!!! HELP!!!

 

<table width="699" border="0" cellpadding="0" cellspacing="0">

  <!--DWLayoutTable-->

  <tr>

    <td width="30" rowspan="5" valign="top"><img src="images/indexdeco.gif" width="30" height="378">

    <td height="27" colspan="2" valign="top"><img src="images/indexdecoup.gif" width="245" height="27">

    <td width="30" rowspan="5" valign="top"><img src="images/indexdecoright.gif" width="30" height="378">

    <td width="90">

    <td width="30" rowspan="5" valign="top"><img src="images/indexdeco.gif" width="30" height="378">

    <td width="244" valign="top"><img src="images/indexdecoup.gif" width="244" height="27">

    <td width="30" rowspan="5" valign="top"><img src="images/indexdecoright.gif" width="30" height="378"></td>

  </tr>

  <tr>

    <td width="1" height="64">

    <td width="244" rowspan="3" valign="top"><div align="center">

        <p align="left"><font size="2">Dear customers:</font></p>

        <p><font size="2"><br>

          Thank you for visiting YadyShop. We have many great gift selections,

          such as, classical chinese umbrellas, fans, mini bamboo decorations,

          etc. Our shop will always be updated with general information or added

          with new items. If you have any questions regarding the shop, please,

          you can always find quick answers from TOS/FAQ or Shipping/Returns.

          However, if you still have any questions regarding the site, we are

          always ready for you to contact us.</font></p>

        <p><font size="2">Thank you<br>

          Enjoy your shopping with us<br>

          Have a great day</font></div>

    <td>

    <td valign="top"><p><font size="2">Please select an option:<br>

        <br>

        <br>

        </font><font size="2">Exist member?</font></p></td>

  </tr>

    <tr>

    <td height="125">

    <td>

    <td valign="top"><?php require(DIR_WS_BOXES . 'loginbox.php'); ?><br><br><p align="center"><font size="2">Forgotten your

        password?<br>

        <a href="https://host86.ipowerweb.com/~yadyshop/catalog/password_forgotten.php">Click

        here</a></font></p></td>

  </tr>

  <tr>

    <td height="137">

    <td>

    <td valign="top"><font size="2">New visitor?</font><br> <br> <p align="center"><font size="2"><a href="https://host86.ipowerweb.com/~yadyshop/catalog/create_account.php">Would

        you like to open a free account with us?</a></font></p></td>

  </tr>

  <tr>

    <td height="25">

    <td valign="top"><img src="images/indexdecodown.gif" width="244" height="25">

    <td>

    <td valign="top"><img src="images/indexdecodown.gif" width="244" height="25"></td>

  </tr>

</table>

 

 

and when i take out this

<?php require(DIR_WS_BOXES . 'loginbox.php'); ?>

 

the whole html works!!!

 

So please someone if you can tell me how to put that line with the html that i have...please teach me!!

 

thank you so much!

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Posted

Hi, kymation...sorry when i post i didn't see yours .....however, after i tried what you wrote, still can't quite make it working.......do you know that some websites that have the login box in the middle of the index.php?? I would like to make the login box between:

 

Please select an option:

Exist member?

 

and

 

 

Forgotten your password?

click here

 

Please click my url and you would have more idea on how i want...

 

Thank you! :unsure:

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Posted

....no one can probably help me with this...is this question too stupid...if it is, please teach me, otherwiese I'll always be stupid, I am very bad at code... :unsure:

 

 

 

thank you guys in advance

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Posted

do you have a url for one of these sites that I can look at

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

I'm not sure if this would help or even which contribution you are using but (i think in general) the inclusion of the loginbox.php uses

 

<tr>

<td>

SOME_BOX

</td>

</tr>

 

So I would sugest in your code using for example:

 

<table>

<?php require(DIR_WS_BOXES.'loginbox.php') ?>

</table>

 

So that it doesn't break the surrounding html.

 

HTH.

"Any fool can know. The point is to understand." -- Albert Einstein

Posted

http://www.yadyshop.com

 

 

sorry241...my fault...hope you can still help me... :unsure:

 

 

i just changed the layout (text.....the text that i want the login box to be between had been replaced)of my index....because i sort of giving it up :P .....

 

thanks again :rolleyes:

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Posted

Do you have a url of a site that has the login box in the middle of the screen as you would like it?

 

 

Is your intention to do away with the login box on the right?

 

have you tried replacing

 

<?php require(DIR_WS_BOXES.'loginbox.php') ?>

 

with this

 

<form name="login" method="post" action="https://host86.ipowerweb.com/~yadyshop/catalog/login.php?action=process&osCsid=5be7f04290a97543bf529884463f068f"><input type="hidden" name="osCsid" value="5be7f04290a97543bf529884463f068f" />
? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ?<td align="left" class="main">
? ? ? ? ? ? ? ? ?E-Mail address:
? ? ? ? ? ? ? ?</td>
? ? ? ? ? ? ?</tr>
? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ?<td align="left" class="main">
? ? ? ? ? ? ? ? ?<input type="text" name="email_address" maxlength="96" size="20" value="">
? ? ? ? ? ? ? ?</td>
? ? ? ? ? ? ?</tr>
? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ?<td align="left" class="main">
? ? ? ? ? ? ? ? ?Password:
? ? ? ? ? ? ? ?</td>
? ? ? ? ? ? ?</tr>
? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ?<td align="left" class="main">
? ? ? ? ? ? ? ? ?<input type="password" name="password" maxlength="40" size="20" value="">
? ? ? ? ? ? ? ?</td>
? ? ? ? ? ? ?</tr>
? ? ? ? ? ? ?<tr>
? ? ? ? ? ? ? ?<td class="main" align="center">
? ? ? ? ? ? ? ? ?<input type="image" src="includes/languages/english/images/buttons/button_login.gif?osCsid=5be7f04290a97543bf529884463f068f" border="0" alt="Login" title=" Login ">
? ? ? ? ? ? ? ?</td>
? ? ? ? ? ? ?</tr>
? ? ? ? ? ?</form>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

my last post requires a <table> before <form> and a </table> after </form>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

hi, 241, thank you and really thank you so much....you have no idea how much i appreciated.....

 

 

so far i have used and modified a little bit so it can be fit into my design, however, I since modified it, but then when i clicked the login, it doesn't let me login, it seems that it just stays and not doing anything.....so I wonder if you could help me with this code one more time??

 

 

<table width="699" border="0" cellpadding="0" cellspacing="0">

  <!--DWLayoutTable-->

  <tr>

    <td width="30" rowspan="6" valign="top"><img src="images/indexdeco.gif" width="30" height="350"></td>

    <td height="27" colspan="2" valign="top"><img src="images/indexdecoup.gif" width="288" height="27"></td>

    <td width="30" rowspan="6" valign="top"><img src="images/indexdecoright.gif" width="30" height="350"></td>

    <td width="30" rowspan="6" valign="top"><img src="images/indexdeco.gif" width="30" height="350"></td>

    <td width="290" valign="top"><img src="images/indexdecoup.gif" width="290" height="27"></td>

    <td width="30" rowspan="6" valign="top"><img src="images/indexdecoright.gif" width="30" height="350"></td>

  </tr>

  <tr>

    <td width="1" height="64"></td>

    <td width="288" rowspan="4" valign="top"><div align="center">

        <p align="left"><font size="2">Dear customers:</font></p>

        <p><font size="2"><br>

          Thank you for visiting YadyShop. We have many great gift selections,

          such as, classical chinese umbrellas, fans, mini bamboo decorations,

          etc. Our shop will always be updated with general information or added

          with new items. If you have any questions regarding the shop, please,

          you can always find quick answers from TOS/FAQ or Shipping/Returns.

          However, if you still have any questions regarding the site, we are

          always ready for you to contact us.</font></p>

        <p><font size="2">Thank you<br>

          Enjoy your shopping with us<br>

          Have a great day</font></div></td>

    <td valign="top"><p><font size="2">Please select an option:<br>

        <br>

        <br>

        Exist member?</font><font size="2"><br>

        </font></p></td>

  </tr>

  <tr>

    <td height="136"></td>

    <td valign="top" name="login" method="post" action="https://host86.ipowerweb.com/~yadyshop/catalog/login.php?action=process&osCsid=5be7f04290a97543bf529884463f068f">

      <input type="hidden" name="osCsid" value="5be7f04290a97543bf529884463f068f" />

      <br>

      E-Mail address:<br> <input type="text" name="email_address" maxlength="96" size="20" value="">

      <br>

      Password:<br> <input type="password" name="password" maxlength="40" size="20" value="">

      <br> <input type="image" src="includes/languages/english/images/buttons/button_login.gif?osCsid=5be7f04290a97543bf529884463f068f" border="0" alt="Login" title="Member Login ">

    </td>

  </tr>

  <tr>

    <td height="32"></td>

    <td valign="top"><p align="center"><font size="2">Forgotten your password?<br>

        <a href="https://host86.ipowerweb.com/~yadyshop/catalog/password_forgotten.php">Click

        here</a></font></p></td>

  </tr>

  <tr>

    <td height="66"></td>

    <td valign="top"><div align="center"><font size="2"><br>

        If you are a new visitor to YadyShop, you can always open a free account

        with us by<br>

        <a href="https://host86.ipowerweb.com/~yadyshop/catalog/create_account.php">clicking

        here</a></font></div></td>

  </tr>

  <tr>

    <td height="25"></td>

    <td valign="top"><img src="images/indexdecodown.gif" width="288" height="25"></td>

    <td valign="top"><img src="images/indexdecodown.gif" width="290" height="25"></td>

  </tr>

</table>

 

 

Thank you so much, thank you anyone in advance as well :rolleyes: :rolleyes:

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Posted

HA....Ha....HA :lol: :lol: :P .........nevermind....i just got it....here is my working code

 

 

<table width="699" border="0" cellpadding="0" cellspacing="0">

  <!--DWLayoutTable-->

  <tr>

    <td width="30" rowspan="6" valign="top"><img src="images/indexdeco.gif" width="30" height="350"></td>

    <td height="27" colspan="2" valign="top"><img src="images/indexdecoup.gif" width="288" height="27"></td>

    <td width="30" rowspan="6" valign="top"><img src="images/indexdecoright.gif" width="30" height="350"></td>

    <td width="30" rowspan="6" valign="top"><img src="images/indexdeco.gif" width="30" height="350"></td>

    <td width="290" valign="top"><img src="images/indexdecoup.gif" width="290" height="27"></td>

    <td width="30" rowspan="6" valign="top"><img src="images/indexdecoright.gif" width="30" height="350"></td>

  </tr>

  <tr>

    <td width="1" height="64"></td>

    <td width="288" rowspan="4" valign="top"><div align="center">

        <p align="left"><font size="2">Dear customers:</font></p>

        <p><font size="2"><br>

          Thank you for visiting YadyShop. We have many great gift selections,

          such as, classical chinese umbrellas, fans, mini bamboo decorations,

          etc. Our shop will always be updated with general information or added

          with new items. If you have any questions regarding the shop, please,

          you can always find quick answers from TOS/FAQ or Shipping/Returns.

          However, if you still have any questions regarding the site, we are

          always ready for you to contact us.</font></p>

        <p><font size="2">Thank you<br>

          Enjoy your shopping with us<br>

          Have a great day</font></div></td>

    <td valign="top"><p><font size="2">Please select an option:<br>

        <br>

        <br>

        Exist member?</font><font size="2"><br>

        </font></p></td>

  </tr>

  <tr>

    <td height="136"></td>

    <td valign="top"><form name="login" method="post" action="https://host86.ipowerweb.com/~yadyshop/catalog/login.php?action=process&osCsid=5be7f04290a97543bf529884463f068f">

      <input type="hidden" name="osCsid" value="5be7f04290a97543bf529884463f068f" />

      <br>

      E-Mail address:<br> <input type="text" name="email_address" maxlength="96" size="20" value="">

      <br>

      Password:<br> <input type="password" name="password" maxlength="40" size="20" value="">

      <br> <input type="image" src="includes/languages/english/images/buttons/button_login.gif?osCsid=5be7f04290a97543bf529884463f068f" border="0" alt="Login" title="Member Login ">

    </form></td>

  </tr>

  <tr>

    <td height="32"></td>

    <td valign="top"><p align="center"><font size="2">Forgotten your password?<br>

        <a href="https://host86.ipowerweb.com/~yadyshop/catalog/password_forgotten.php">Click

        here</a></font></p></td>

  </tr>

  <tr>

    <td height="66"></td>

    <td valign="top"><div align="center"><font size="2"><br>

        If you are a new visitor to YadyShop, you can always open a free account

        with us by<br>

        <a href="https://host86.ipowerweb.com/~yadyshop/catalog/create_account.php">clicking

        here</a></font></div></td>

  </tr>

  <tr>

    <td height="25"></td>

    <td valign="top"><img src="images/indexdecodown.gif" width="288" height="25"></td>

    <td valign="top"><img src="images/indexdecodown.gif" width="290" height="25"></td>

  </tr>

</table>

 

 

Guess i was stupid....... :P thanks 241!!! also if this can be a contribution called the loginbox in middle indexpage.......I would be happly to share with people...well if i can help :D :rolleyes:

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...