Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please Help....Change Browser text?


emailanj

Recommended Posts

I hope I explain this right....I had no search results when I tried to search this on the form.

 

What I would like to do is change the Browser text from OScommerce to my own name. (the place where if you were to - out the browser you can still see the window title, Blind people use this etc.)

 

I am using some files from a free temlate I found on the web so its different than the original. And I have looked every where.

 

I have looked at my Source Code and this is the only place I have seen it referanced It looks like this:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>osCommerce</title>

<base href="http://proshowequipment.com/store/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<div style="height:21px; "></div>

<table width="715" border="0" cellspacing="0" cellpadding="0" align="center">

<tr>

<td class="outline">

 

The Place I am thinking it should be catolog/includes/header.php, Its not that I can see here is the code

[/code]

<?php

/*

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

} elseif (!is_writeable(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

}

}

}

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

<div style="height:21px; "></div>

<table width="715" border="0" cellspacing="0" cellpadding="0" align="center">

<tr>

<td class="outline">

<td width="6%"><a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><img src="<?php echo DIR_WS_IMAGES ?>Pictures/mylogo.jpg" width="177" height="100" border="0"></a></td>

<td width="94%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td align="right"><img src="<?php echo DIR_WS_IMAGES ?>Pictures/pic6.jpg" width="184" height="75"></td>

</tr>

<tr>

<td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?php echo DIR_WS_IMAGES ?>Pictures/pic1.jpg">

<tr>

<td width="26%"><em><img src="<?php echo DIR_WS_IMAGES ?>theme/ui.jpg" width="1" height="24"></em></td>

<td width="74%"><span class="style1"><a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" class="top" style="color:#FFFFFF;text-decoration:none">home</a>  |  <a href="<?php echo tep_href_link(FILENAME_DEFAULT,'cPath=1'); ?>" class="top" style="color:#FFFFFF;text-decoration:none">Pro Show Carts</a>  |  <a href="<?php echo tep_href_link(FILENAME_DEFAULT,'cPath=2'); ?>" class="top" style="color:#FFFFFF;text-decoration:none">Power Pro</a>   |   <a href="<?php echo tep_href_link(FILENAME_DEFAULT,'cPath=3'); ?>" class="top" style="color:#FFFFFF;text-decoration:none"></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="top" style="color:#FFFFFF;text-decoration:none">your cart</a>  |  <a href="<?php echo tep_href_link(FILENAME_SHIPPING); ?>" class="top" style="color:#FFFFFF;text-decoration:none">shipping</a></span></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table>

 

<?php

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerError">

<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

</tr>

</table>

<?php

}

 

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerInfo">

<td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>

</tr>

</table>

<?php

}

?>

 

 

Thanks for any and all help.....

anj

Link to comment
Share on other sites

So.....Just wondering if anyone had any thoughts? Is there more than one place I can look for this? I have looked around but can't seem to find anything...Or is it just in the catolog/includes/header.php? Has anyone else had this problem?

 

Thanks for any reply,

anj

Link to comment
Share on other sites

you will have to modify every .php file with your own title

this is vertually every file in the root folder of your store for example

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 
<META NAME="keywords" CONTENT="pc game, shop, educational toy, toy, console game, ink cartridge, printer ink, nursery, cheap, pc accessories, pc, xbox, ps2, ps1, playstation, computer, wholesale, dropshiper, hardware">
<META NAME="description" CONTENT="the one stop shop for all your needs">
<META NAME="revisit-after" CONTENT="7 days">
<META NAME="robots" CONTENT="FOLLOW,INDEX">
<title>KAPBargins your bargin basement store with quality products</title>

Link to comment
Share on other sites

Thank you so very much for your response..

 

I am a little confused....Do I add this to each page? I looked at quite a few of the PHP files and did not see where to motify. Sorry I am new.

 

Thanks again for giving me direction!

anj

 

you will have to modify every .php file with your own title

this is vertually every file in the root folder of your store for example

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 
<META NAME="keywords" CONTENT="pc game, shop, educational toy, toy, console game, ink cartridge, printer ink, nursery, cheap, pc accessories, pc, xbox, ps2, ps1, playstation, computer, wholesale, dropshiper, hardware">
<META NAME="description" CONTENT="the one stop shop for all your needs">
<META NAME="revisit-after" CONTENT="7 days">
<META NAME="robots" CONTENT="FOLLOW,INDEX">
<title>KAPBargins your bargin basement store with quality products</title>

Link to comment
Share on other sites

I don't understand why no one has anwsered? :'( Usually there is someone who will give some imput...Did I do something? Is this topic not within the form rules? If it is I am sorry, but could someone please let me know...Or is this so simple or too complex? Please someone....tell me what is wrong with my post...I feel like I am getting the silent treatment..(except for r35id3nt did give me a hint and I thank them very very much..but I still don't get it) :blink:

 

Anj

 

Pretty Please......., :'(  :'(

Link to comment
Share on other sites

Anj, to change the "osCommerce" text that shows up you'll have to go to each page and change what's between the <title> and </title> tags, right where you highlighted in blue in your post. If you change this to <title>mywebsite.com</title> then "mywebsite.com" will come up in the browser's title bar. Hope this helps! :thumbsup:

 

dean

 

 

I have looked at my Source Code and this is the only place I have seen it referanced It looks like this:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>osCommerce</title>

<base href="http://proshowequipment.com/store/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<div style="height:21px; "></div>

<table width="715"  border="0" cellspacing="0" cellpadding="0" align="center">

        <tr>

          <td class="outline">

 

Link to comment
Share on other sites

Ignore all those previous posts .. you do NOT have to edit every file.

 

Go to includes/language/english.php .. find this line near the top

 

define('TITLE', 'osCommerce');

 

and change it to your name .. make sure to keep the ' ' on either side of the name.

 

:rolleyes:

Link to comment
Share on other sites

Ignore all those previous posts .. you do NOT have to edit every file.

 

Go to includes/language/english.php .. find this line near the top

 

define('TITLE', 'osCommerce');

 

and change it to your name .. make sure to keep the '  '  on either side of the name.

 

:rolleyes:

 

Oh right.. Sorry to give you bad info Anj, I was giving a HTML answer not an osCommerce answer.

 

Dean

Link to comment
Share on other sites

hey i tryed what Eart Bizz sugested and it doesn't work - the site doesn't open at all it says:

Parse error: parse error, unexpected T_STRING in /var/www/html/oscommerce/includes/languages/english.php on line 79

 

any idea?

Link to comment
Share on other sites

Thank You soooooooooooooo Much!!!! That did the trick :D

 

Anj

 

 

Ignore all those previous posts .. you do NOT have to edit every file.

 

Go to includes/language/english.php .. find this line near the top

 

define('TITLE', 'osCommerce');

 

and change it to your name .. make sure to keep the '  '  on either side of the name.

 

:rolleyes:

Link to comment
Share on other sites

hey i tryed what Eart Bizz sugested and it doesn't work - the site doesn't open at all it says:

Parse error: parse error, unexpected T_STRING in /var/www/html/oscommerce/includes/languages/english.php on line 79

 

any idea?

 

It didn't work because probably the administrator edit tool makes some error. i opened the file with text editor, changed it and then uploaded the new file and it worked !

 

Thanx !!!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...