Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Page Title


da8iwr

Recommended Posts

Posted

I have just set up a site, and really don't want it to say Oscommerce in the site title in the admin section. I have changed the site title on the main site, by changing the details in the English language file, but every time i try and do the same in the English file in the admin section, the site crashes and just displays a browser error.

 

Its the only thing left to do on the site, and then it is finished, can anybody help please.

Posted

Well when i go into the filemanager and find

 

/admin/includes/languages/english.php

 

and then open it in the editor

 

i then change

define('TITLE', 'osCommerce');

to

define('TITLE', 'Site Name');

 

Parse error: parse error, unexpected T_STRING in E:\Domains\sitename.co.uk\wwwroot\shop\admin\includes\languages\english.php on line 108

 

Am i modififying the wrong file??

 

any help will be greatfull

Posted

Unless you have installed the security update, you shouldn't be using the file manager since it will introduce errors into your site. That said, the error you are getting means there is a mistake in that file. The line you display is not wrong so it must be something else.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Well not sure what i did to fix it, but when i went into the same page through dreamweaver and changed the file in the same way, it worked perfectly, so im not sure if its just the Admins filemanager that is a peice of junk, or i have just done something different, but it works perfect now. Cheers guys

Posted
Unless you have installed the security update, you shouldn't be using the file manager since it will introduce errors into your site. That said, the error you are getting means there is a mistake in that file. The line you display is not wrong so it must be something else.

 

Jack

 

Jack,

 

When you edit the file, using the file manager, it removes all the \' and makes them ' (apostrophies). With, say wordpad, all the apostrophies have backslashes precceding them, allowing them to be displayed properly. without the backslashes (which the file manager always seems to remove) you get errors. The only thing you can do is replace all the backslashes every time you edit, or much easier is edit the files using something else, then upload and replace the old file by FTP.

 

PS. the title in the bar, is edited in the "configiration>my store>store name" part of the admin. The store name field is displayed in the browser bar automatically.

 

I hope I have understood the question right, and this is of some help.

 

Craig :thumbsup:

Posted

Hey cheers for that mate, it makes sense that fault, as it was the same file i was editing in the file manager, that i did through dreamweaver, and it worked fine there. Well it was made for a client as a free-bee to say thanks for some other work, so wasn't to important, but its turned out as i wanted now.

 

Also the site title thing doesn't work from the area you showed me. A few months ago i was playing with osc so i could get used to it before offering it out as a service, and i posted a question asking how you change the site title

 

http://www.oscommerce.com/forums/index.php?showtopic=179588&hl=

 

It was you jack that said there is no way of changing the site title in the admin <_<

 

I soon found that there was no way of changing the site title from the admin, which i thought was madness and not very good at all. but I'm sure there must be a good reason for that.

 

But thanks again for your help guys, it has made my life so much easier.

Posted

Where did I say that? What I said was

There isn't any setting in admin for the site title that I know of. To change the title you need to edit the includes/languages/english.php file or install a meta tags program like Header Tags.
and those statements are true. There isn't a setting in admin to change the title. Please point it out to me if I am incorrect. Also, please share the methods you found as to how to change the title in admin. I'm always ready to learn.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Sorry Jack i didn't mean that to sound like an insult, i really didn't.

 

I found that if i opened the language/english.php file in both the root and admin root directories, then it was under

 

define('TITLE', 'osCommerce');

to

define('TITLE', 'Site new Name');

 

it was the only way to change the site title that i could find. I always though this was madness, and there should be a way when you change the site title in the main admin, it should change the site title in the site its self. But i have actually found it to change anything in the site at all yet. just a simple field that does nothing at all.

 

There is quite a few things that bug me about this system, for example, why is there a great easy to use interface when you first go into the admin, and then all of a sudden wen you click on anything, you get an admin panel that looks 100% different and also very difficult to navigate when your not used to it. I was always taught that design in print and web should be uniformed all the way through, and also if it says it will do something it should do it.

 

Don't get me wrong, i know it is a free open-source system that is there as an alternative to "Bought" systems. But its not the actual system that should be modified, as it is amazing, its the interface between the human and computer that really needs changing. It is not aesthetically pleasing, and is not easy to use until you have used it for a while. My client has absolutely no idea how to use it, and is struggling really badly with it, and i have to say even when I'm sat with him, i struggle to show him how to use it.

Archived

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

×
×
  • Create New...