DragnSoul Posted November 7, 2006 Posted November 7, 2006 I'm trying to figure out how to change the title that appears on the internet title bars of browsers. I am banging my head with this... I have tried meta tags, HTML headers and still no luck. All it shows when I load up my store is "Untitled Document" which I find unprofessional for my shop. I have done all the above changes in my header.php file but that could be why it's not working... Maybe it's supposed to be done on another file which I am not aware of. I appreciate all and any help that you all may have! Thanks!
Andrew Yuen Posted November 7, 2006 Posted November 7, 2006 Have you tried to edit your english.php file in catalog/includes/languages/english.php Andrew Yuen osCommerce, Community Team
bill110 Posted November 7, 2006 Posted November 7, 2006 I'm trying to figure out how to change the title that appears on the internet title bars of browsers. I am banging my head with this... I have tried meta tags, HTML headers and still no luck. All it shows when I load up my store is "Untitled Document" which I find unprofessional for my shop. I have done all the above changes in my header.php file but that could be why it's not working... Maybe it's supposed to be done on another file which I am not aware of. I appreciate all and any help that you all may have! Thanks! in the admin section go to configuration-my store and check out the store name My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
DragnSoul Posted November 7, 2006 Author Posted November 7, 2006 Thanks for the help but I checked my store name in the admin panel and that's exactly what it should be, and as for the English.php file, I believe it's right because of this code snippet: // page title define('TITLE', STORE_NAME); I still don't know where to look... On the bright side, I do have the name appearing on some pages, but not all. Basically, in the index and products, it doesn't show up, the rest seems fine. Hopefully this will help you help me a bit more. :)
DragnSoul Posted November 10, 2006 Author Posted November 10, 2006 Here's an update of what's going on: If I'm a guest the title doesn't come up, but if I go to the login page, or create account page, that's when it starts to show up. I have SSL running for those portions. Could it be the SSL creating a problem?
tapuahk Posted November 10, 2006 Posted November 10, 2006 Here's an update of what's going on: If I'm a guest the title doesn't come up, but if I go to the login page, or create account page, that's when it starts to show up. I have SSL running for those portions. Could it be the SSL creating a problem? How are you putting the headers on your pages? Are you using Search Friendly Urls? Tag control? or are you doing something else? When you say after SSL title starts to show, do all pages show titles then? I can't see your site listed in your profile... is it live? I t might help if we can see the actual problem... I use HTC tag control contrib and it works great. see www.emonstore.com
DragnSoul Posted November 10, 2006 Author Posted November 10, 2006 Sorry, you're right I should list the site url: DreamyScraps You will notice that when you go to the site it just says Untitled document, but if you enter the account creation process or you hve an account it shows "DreamyScraps". More than likely I got nothing that you mentioned (which could very well be my problem). I will look into the HTC tag control contrib though also. I'm hoping someone can help me since I'm going bald lol! Thanks! How are you putting the headers on your pages? Are you using Search Friendly Urls? Tag control? or are you doing something else? When you say after SSL title starts to show, do all pages show titles then? I can't see your site listed in your profile... is it live? I t might help if we can see the actual problem... I use HTC tag control contrib and it works great. see www.emonstore.com
tapuahk Posted November 10, 2006 Posted November 10, 2006 I'm hoping someone can help me since I'm going bald lol! Thanks! No problem you have a <title> tag twice in the index.php in fact it looks like you inserted whole html docs infront of your store page below needs to be removed for your problem to go away... You are probably putting html tags in include files only your main pages need html; index, product, new_product, review, contact_us, etc... not header, application top, etc.... <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta HTTP-EQUIV="imagetoolbar" CONTENT="no"> </head> <body> <script language=JavaScript> <!-- var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script> </body> </html> <!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>DreamyScraps</title> <base href="http://dreamyscraps.com/store/catalog/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta HTTP-EQUIV="imagetoolbar" CONTENT="no"> </head> <body> <script language=JavaScript> <!-- var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script> </body> </html>
DragnSoul Posted November 10, 2006 Author Posted November 10, 2006 Oh my god!!! Thanks for pointing this out to me... I figured out where the second tag was coming from! I added the mod to disallow right click, and in the disable.php file, the title was set to "Untitled Document". I did change it and now everything comes in like it should... Basically it was an idiot mistake lol. Now that you pointed it out to me I will be looking for another way to code the disabling of right click to something more robust. Thanks for the help, your comments pointed me to the right place!
Guest Posted November 10, 2006 Posted November 10, 2006 There is no 'robust' way to disable right click - it takes two seconds to disable javascript in my browser and then I can happily right click all I want..... everybody knows this (almost). Sonia
crash3903 Posted November 10, 2006 Posted November 10, 2006 There is no 'robust' way to disable right click - it takes two seconds to disable javascript in my browser and then I can happily right click all I want..... everybody knows this (almost).Sonia or just drag the images to your graphics program...you need to watermark the images if they are that precious Regards Mark A Reynolds
Recommended Posts
Archived
This topic is now archived and is closed to further replies.