http://www.oscommerce.com/community/contributions,4822
Edited by GemRock, 22 January 2007, 17:42.
Posted 22 January 2007, 17:41
Edited by GemRock, 22 January 2007, 17:42.
Posted 23 January 2007, 06:12
GemRock, on Jan 22 2007, 06:41 PM, said:
Quote
Posted 23 January 2007, 11:33
The dutch dude, on Jan 23 2007, 06:12 AM, said:
Posted 23 January 2007, 12:06
define('FILENAME_HEADER_TAGS_EDIT', 'header_tags_edit.php');
define('BOX_CATALOG_PRODUCTS_EXPECTED', 'Products Expected');
define('BOX_CATALOG_HEADER_TAGS_EDIT', 'Edit Header Tags');
$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_HEADER_TAGS_EDIT, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_HEADER_TAGS_EDIT . '</a><br>' .
Posted 23 January 2007, 14:44
The dutch dude, on Jan 23 2007, 06:12 AM, said:
<form name="update" method="POST" action="<?php echo "$PHP_SELF?action=update&page=$page&sort_by=$sort_by&cPath=$current_category_id&row_by_page=$row_by_page&manufacturer=$manufacturer"; ?>">where the $PHP_SELF variable is defined in application_top.php (the one on the admin side):
$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);You can check the 'PHP_SELF' param from the server info link under admin - Tools - Server Info, where you can find the path to 'PHP_SELF' under the PHP Variables section, and the path to 'SCRIPT_NAME' under the Environment section. Make sure they are not pointed to any where outside your site. I know this may be a bit of over the top for a noob, but I suppose you could raise the issue with your host.
Posted 23 January 2007, 21:30
Posted 23 January 2007, 22:44
<meta name="description" content="<?php echo (strlen($categories['categories_name']) > 1) || (strlen($manufacturers['manufacturers_name']) > 1) ? strip_tags($breadcrumb_tags->trail_tags(' ')) : 'default description'; ?>">
<meta name="keywords" content="<?php echo (strlen($categories['categories_name']) > 1) || (strlen($manufacturers['manufacturers_name']) > 1) ? strip_tags($breadcrumb_tags->trail_tags(' ')) : 'default keywords'; ?>">
Replace 'dafault description' and 'default keywords' with your choosen description & keywords for your home page.Edited by GemRock, 23 January 2007, 22:45.
Posted 25 January 2007, 18:32
GemRock, on Jan 22 2007, 10:41 AM, said:
Posted 25 January 2007, 19:56
hhoward, on Jan 25 2007, 06:32 PM, said:
Posted 27 January 2007, 15:26
Edited by GemRock, 27 January 2007, 15:26.
Posted 27 January 2007, 22:46
PHP Notice: Use of undefined constant FILENAME_HEADER_TAGS_EDIT - assumed 'FILENAME_HEADER_TAGS_EDIT' in C:\Webs\LocalUser\yoursite.com\catalog\admin\header_tags_edit.php on line 14
define(FILENAME_HEADER_TAGS_EDIT, 'header_tags_edit.php');
Posted 27 January 2007, 23:15
Posted 27 January 2007, 23:31
define('FILENAME_HEADER_TAGS_EDIT', 'header_tags_edit.php');
It works for me without the quotes (by accident I forgot the quotes but as it worked so I leaved it what it was).Edited by GemRock, 27 January 2007, 23:32.
Posted 27 January 2007, 23:59
Edited by wheeloftime, 28 January 2007, 16:01.
Posted 28 January 2007, 10:56
Talle, on Jan 27 2007, 11:59 PM, said:
echo tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' ';
echo '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_EDIT,"row_by_page=$row_by_page") . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
Insert this line just above it and below the <?phpecho '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog') . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a> ';
Save the file and that's it. Now, next to the Update button, there will be the Back button, which will take you back to the catalog page. Be careful though don't click Back when you mean to click Update! Posted 28 January 2007, 15:22
Posted 28 January 2007, 16:29
define('TITLE', STORE_NAME);
The STORE_NAME is defined in admin -> Configuration -> My Store - Store NameEdited by GemRock, 28 January 2007, 16:31.
Posted 28 January 2007, 16:47
define('TITLE', 'Type in the Title you want here');
Of course, you could use my contribution to define the title for different pages.Posted 28 January 2007, 17:15
Posted 28 January 2007, 18:51
<u><b>category</u></b> Subcategory - mydomain.se - Windows internet explorer
<u><b></u></b>I´d like to remove these from the top of the page, but these are as far as I know nessecery to get bold font in the categories... or am I wrong?
Edited by Talle, 28 January 2007, 18:53.