Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HectorBasora

Members
  • Content count

    5
  • Joined

  • Last visited

About HectorBasora

  • Birthday 12/18/1986

Profile Information

  1. HectorBasora

    Supplier Admin Area Contribution

    It works the same as mine but with much more code :P, what we really need is how to erase the session, I think is becouse anytime it checks if the user is logged it makes the variable =1, the If should be ==1, thats why I think anytime you go -1 back it shows the pages logged in. Ill try to fix it now and i will let you know if I get someting.
  2. HectorBasora

    Supplier Admin Area Contribution

    I just woke up and realized that the login thing is working it just takes some time to end the session, so what we need is to find that function in order to make the session end :P It has a time.
  3. HectorBasora

    Supplier Admin Area Contribution

    I also have to say that the logoff is giving me trouble but I manage it to make it logout when you click on it but if you go back it will show the previous supplier that was logged, well a good solution for this will be to change the session, im not a good php programmer the only thing u need is to know what you want. In order to Logout do this ::> In Find this..> <?php echo '<a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> Add after that ..> | <a href="../supplier/" class="headerLink">LogOut(Salir)</a>'; ?> in supplier_area_top.php change..> if (!tep_session_is_registered('l.ogin')) tep_session_register('login'); for this ..> if (!tep_session_is_registered('l.ogin')) tep_session_register('whatever'); -------------------------------------------------------------------------------------------------------------- The supplier Image and name Stuff> after..> $login = $suppliers_result['suppliers_id']; put this..> $suplidor = $suppliers_result['suppliers_group_name']; $imagen = $suppliers_result['suppliers_image']; In supplier_area.php after the require thing put this ..> $image_location = "../images/" . $imagen; Find..> 'image' => , this thing here i dont remember but change it to this ..> $image_location, Find this..> $cn = ($i >= 4 ? 2 : 1); ${'c' . $cn}.= ' <table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td align="center" valign="middle">' And add this ...> . tep_image(DIR_WS_CATALOG . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], 250,250 ) . '</p> <p>Welcome <strong>' . $suplidor .'</strong></p></td>' . "\n" . THAT PART MUST LOOK LIKE THIS...> $cn = ($i >= 4 ? 2 : 1); ${'c' . $cn}.= ' <table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td align="center" valign="middle">' . tep_image(DIR_WS_CATALOG . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], 250,250 ) . '</p> <p>Bienvenid@ <strong>' . $suplidor .'</strong></p></td>' . "\n" . ' <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td class="main"></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="menusub">'; -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- That's All by now, Ill see if I catch more time and when I fix it Ill bring my answers here, I wish someone else could help me with this becouse is a great contribution. See ya. Héctor Basora Arriaga Stairus.com
  4. HectorBasora

    Supplier Admin Area Contribution

    Well I got It :P :thumbsup: I think I fixed almost all the bad stuffs and also I added the suppliers image a greetin with the name of the supplier after you login, Im sorry but my website suppliers area is in spanish wich means i will have to work on that part to see if languages works better Here are my screenshots: THIS IS THE LOGIN AFTER YOU LOGIN THIS IS THE MAIN SUPPLIERS
  5. HectorBasora

    Supplier Admin Area Contribution

    Hello, Im new on this but i explore this contribution so much that i´m letting you know some issues i´ve solve: ------------------------------------------------------------- The login problem, in supplier_area_top.php if (!isset($_SESSION['login'])){ But if this string is replaced with: if (!tep_session_is_registered('login')){ Supplier can log in... -------------------------------------------------------------
×