keijom Posted November 25, 2013 Posted November 25, 2013 Hi. I must add link. Where i put osCsid code and how? <a href="(filenams_something)">this is link </a>
Praful Kamble Posted November 25, 2013 Posted November 25, 2013 @@keijom Provide all details about what exactly you want and where you want to put link? Like post..hit LIKE button. osCommerce | Joomla | WordPress | Magento | SEO | CakePHP | CI Guaranteed Website Speed Optimization!!
keijom Posted November 25, 2013 Author Posted November 25, 2013 index.php <h1><?php echo HEADING_TITLE; ?></h1> <div class="contentContainer"> <div class="contentText"> <?php echo tep_customer_greeting(); ?> </div> <?php if (tep_not_null(TEXT_MAIN)) { ?> <div class="contentText"> <?php echo TEXT_MAIN; ?> </div> <p> <?php } ?> </p> <table width="600" border="1"> <tr> <td><a href="(filenams_something)">this is link </a></td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table>
Guest Posted November 25, 2013 Posted November 25, 2013 Are you asking about file name or just about "osCsid" Example for osCsid: ?osCsid=5130e6640e467f496beddd29dfaa746e If you are talking about just osCsid, this is created automatically by the osCommerce system, you don`t need to worry about them. If you want to create a link then it might look something like this: <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?>
keijom Posted November 25, 2013 Author Posted November 25, 2013 Are you asking about file name or just about "osCsid" Example for osCsid: ?osCsid=5130e6640e467f496beddd29dfaa746e If you are talking about just osCsid, this is created automatically by the osCommerce system, you don`t need to worry about them. If you want to create a link then it might look something like this: <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?> That is correct. I want create link. That code working fine. Thanks @@imop!
keijom Posted November 26, 2013 Author Posted November 26, 2013 What should I do if I want to put a link to "text file"? I mean for exsample: english.php or conditions.php etc. I want oscsid-code works
Guest Posted November 26, 2013 Posted November 26, 2013 Do not worry about "oscsid" Link to text file: <?php echo '<a href="' . tep_href_link('my_text_file.txt', '', 'SSL') . '">' . TEXT_FILE_NAME . '</a>'; ?> Something like this.
keijom Posted November 26, 2013 Author Posted November 26, 2013 That is my own test.php I put html text and link in here (for exsample advance_search_result&keywords etx...) define('TEXT_INFORMATION', ' html text '); That code is not working <?php echo '<a href="' . tep_href_link('my_text_file.txt', '', 'SSL') . '">' . TEXT_FILE_NAME . '</a>'; ?>
burt Posted November 26, 2013 Posted November 26, 2013 define('TEXT_INFORMATION', 'lorem ipsum <a href="' . tep_href_link('my_text_file.txt', '', 'SSL') . '">Blah blah</a> ipsum lorem');
keijom Posted November 27, 2013 Author Posted November 27, 2013 define('TEXT_INFORMATION', 'lorem ipsum <a href="' . tep_href_link('my_text_file.txt', '', 'SSL') . '">Blah blah</a> ipsum lorem'); Thanks @@burt. That working fine, but.... <a href="' . tep_href_link('advanced_search_result.php?keywords="nordic+3"&search_in_description=1&"', '', 'SSL') . '"><strong>This is nice Tyre</strong> What I have to do, if I have "" - double-quotes?
keijom Posted November 27, 2013 Author Posted November 27, 2013 Hi, Why you are using double quotes? I get the wrong results. It would be fine to use double quotes in order to get the right result.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.