Forums / Bug Reports / [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

[Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Locked

Started by swguy on 29 Jul 2006, 2:45 PM · Views: 17,798

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
29 Jul 2006, 2:45 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

[Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Issue:
Customizing the file
includes/languages/english/meta_tags.php

and modifying the TITLE define works fine in the catalog but is not
reflected in the Admin section.

Root Cause:
In admin/includes/languages/english.php, $template_dir not set

This results in the defaults from includes/languages/english being used, rather than any customizations.

The workaround is to change admin/includes/languages/english.php just after

// removed for meta tags
// page title
//define('TITLE', 'Zen Cart');

// include template specific meta tags defines

to include the code

// removed for meta tags
// page title
//define('TITLE', 'Zen Cart');

// include template specific meta tags defines
$template_query = $db->Execute("select template_dir
from " . TABLE_TEMPLATE_SELECT .
" where template_language = '0'");
$template_dir = $template_query->fields['template_dir'];

This is just a workaround; I'm sure the final fix will be quite different.
Be sure to back up admin/includes/english/english.php so you can restore it
when a proper fix is provided.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Sep 2006, 5:29 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

It has not yet been fixed in core code. It has behaved this way for a long time, and it's always aggravated me because I'm the kind of dork who likes to have 27 windows open, so the title is very important to me.

Here's a nicer presentation of this tip for those who want it:

http://www.thatsoftwareguy.com/zencart_admin_title.html

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Sep 2006, 1:25 AM
#3
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

swguy:

It has behaved this way for a long time, and it's always aggravated me because I'm the kind of dork who likes to have 27 windows open, so the title is very important to me.

Here's a nicer presentation of this tip for those who want it:
http://www.thatsoftwareguy.com/zencart_admin_title.html

Scott I'm with you on this ;-) Can you confirm if your fixes above work well in 1.35x?

16 Sep 2006, 1:36 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Works like a champ! In fact, I just updated my page to indicate that this fix is required in 1.3.0-1.3.5.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

30 Oct 2006, 1:05 AM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

My fix is still required in 1.3.6. I have updated my documentation to reflect this.

http://www.thatsoftwareguy.com/zencart_admin_title.html

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Nov 2006, 6:21 PM
#6
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

I found that in v1.3.6 I was able to change the Admin Title with just one change.

admin/includes/languages/english.php

line 40
// removed for meta tags
// page title
define('TITLE', 'Admin - Name of Site);

The learning is in the doing.

Potent Products

15 Nov 2006, 6:47 PM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

This works but it could be confusing if you have overriden this file. Other changes you make in the core file (but not your override) would not be picked up.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Nov 2006, 6:55 PM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Template overrides are being used so not sure what you mean by "if you have overriden this file"?

The learning is in the doing.

Potent Products

15 Nov 2006, 7:09 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

You're editing admin/includes/languages/english.php, which is not an override - it's a core file. You may have overridden it and have a bunch of other things in the override, but if you want to change the title again, you have to remember to edit the core file, not the override. Now you're probably not as forgetful as I am, but for me, this would cause a lot of wailing and gnashing of teeth because I would immediately head for the override and forget that I had changed the core file.

Your method works but it doesn't fix the root cause. When I wrote up my approach, I wanted to do it in such a way that it could be incorporated into the product.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Nov 2006, 7:20 PM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Understand now what you are saying and how it applies.

I have to wonder though, how many times one would need or want to change the Admin Title of their site and why it was originally commented out by the developers? Although I cannot see how modifying the core file in this instance would cause a problem, the developers would know better than anyone why it was commented out to begin with.

The learning is in the doing.

Potent Products

15 Nov 2006, 7:28 PM
#11
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

My suspicion is that it was simply forgotten when the meta stuff was moved around, but you'd have to ask a person on the core team for an authoritative answer. At any rate, people now have two ways of fixing this problem. :)

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Nov 2006, 7:31 PM
#12
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Perhaps the developers will take a tip from you, Scott, and apply your fix in the next release. Hint Hint :wink2:

The learning is in the doing.

Potent Products

15 Nov 2006, 7:57 PM
#13
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Dunno. Like everything else, it has to be triaged, prioritized, tested, regressed, etc. etc. Every little bit counts in software. :)

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Nov 2006, 2:23 PM
#14
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Website Rob:

Understand now what you are saying and how it applies.

I have to wonder though, how many times one would need or want to change the Admin Title of their site ...

I meant to respond to this earlier.

I have a bunch of different copies of ZenCart installed on my test system that I use for trying different configurations, software, etc. and it's nice to at a glance be able to tell which of the oodles of windows I have open is the correct admin page for which zencart system. This is why it was important to me to get this problem resolved.

Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Dec 2006, 4:29 PM
#15
llamagod avatar

llamagod

New Zenner

Join Date:
Aug 2006
Posts:
34
Plugin Contributions:
0

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

i'm in the same boat - i have a couple different stores that i work on (different sites) and having the admin title changed is a definite bonus. true there is no need for a meta_tags file in the admin for most purposes... but having the ability to use the override system for the admin panel should be available.

of course, i might be overlooking the fact that the override system is in place for the admin panel - it's just not used very often??

15 Dec 2006, 5:14 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Website Rob:

I found that in v1.3.6 I was able to change the Admin Title with just one change.

admin/includes/languages/english.php

line 40
// removed for meta tags
// page title
define('TITLE', 'Admin - Name of Site);

This is the approach I recommend at the present time.

While swguy's suggestion works, I've found that many folks get confused about which browser session is the right one when both their storefront and their admin are called the same thing.

The final solution will likely be to have a separate define for the admin vs the store. That will be addressed during the admin rewrite.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Dec 2006, 5:49 PM
#17
llamagod avatar

llamagod

New Zenner

Join Date:
Aug 2006
Posts:
34
Plugin Contributions:
0

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

that's the approach i've taken - change the line 40 stuff in admin/includes/languages/english.php

i'm just voicing my support for the admin re-write :)

23 Sep 2009, 1:38 PM
#18
dudeshane01 avatar

dudeshane01

New Zenner

Join Date:
Aug 2009
Posts:
17
Plugin Contributions:
0

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

Thanks buddy fantastic description .
I just changed mine to my desired name : lustrejewel.com .
I will appreciate if anyone could provide me with some reviews for my site for selling designer silver jewelry .

21 Apr 2010, 11:49 PM
#19
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,746
Plugin Contributions:
56

Re: [Done v1.3.9a] Customized Title not shown on Admin Home page (ignores tpl override)

This bug is fixed in 1.3.9! Thank you, Zen Cart team.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.