charmed-imsure Posted December 15, 2008 Share Posted December 15, 2008 On my front page I have the Welcome guest would you like to log yourself in bit. I've made 3 buttons now, 1 for log in, 1 for create account & 1 for log out. How do I get those images to display & hyperlink them to the log in/log out/create account respectively? I'm guessing I need to write script to make the images display which will be written as a hyperlink, but how do I hyperlink that hyperlink? Confused much? Me too!!! Link to comment Share on other sites More sharing options...
♥FWR Media Posted December 15, 2008 Share Posted December 15, 2008 On my front page I have the Welcome guest would you like to log yourself in bit. I've made 3 buttons now, 1 for log in, 1 for create account & 1 for log out. How do I get those images to display & hyperlink them to the log in/log out/create account respectively? I'm guessing I need to write script to make the images display which will be written as a hyperlink, but how do I hyperlink that hyperlink? Confused much? Me too!!! Standard oscommerce does exactly this in includes/header.php about line 58. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 15, 2008 Author Share Posted December 15, 2008 Standard oscommerce does exactly this in includes/header.php about line 58. I see, I paid someone to set this site up for me but they completely trashed it & so I had to start again. Loads of things got removed that I didn't want removing so I can't see that line 58. I just want to add my own little button that links to the respective php file. I don't actually want it in the header, I want it on the main page includes/languages/english/index.php Just need to know how to write it! Link to comment Share on other sites More sharing options...
bning Posted December 15, 2008 Share Posted December 15, 2008 <?php echo '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'login.gif') . '</a>'; ?> Should get you started. Link to comment Share on other sites More sharing options...
FIMBLE Posted December 15, 2008 Share Posted December 15, 2008 Here is the full code <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 15, 2008 Author Share Posted December 15, 2008 Here is the full code <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> Not sure that's the right thing... that's all my account & cart contents. I have the standard "Welcome guest, would you like to log yourself in or create an account?" displaying. I've actually made 3 buttons, one to log in, one to create account, one to log out. So instead of dislaying that text above, it shows 3 buttons & you can click on them to point to it's respective title. They'd also need to be central & an equal distance apart (just to make it more fussy!!!). Link to comment Share on other sites More sharing options...
FIMBLE Posted December 15, 2008 Share Posted December 15, 2008 OH right i missunderstood in this case you can use Bens example and go from there Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
charmed-imsure Posted December 15, 2008 Author Share Posted December 15, 2008 OH right i missunderstood in this case you can use Bens example and go from there Cool, I love doing this! It's great having a play around until I go mess something up!!! I always keep a copy of an original file though :blush: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.