Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Specifying unique favicon for admin

    I have two Zencart shops on the same domain. We sell chemicals (adhesive remover). We have to provide a different product line for California customers due to state regulations. A separate Zencart is needed in order to prevent the wrong chemical formula from being shipped to California customers.

    I set up the Zencart for regular products in the webserver root, and the California VOC products in a Zencart located in a subdirectory of the root. That subdirectory is named voc/.

    Different favicons are used for each cart.
    The favicon for regular products is located a /favicon.ico
    /includes/languages/english/[MY TEMPLATE]/meta.tags has this definition: define('FAVICON','/favicon.ico');

    The favicon for California VOC products is located at /voc/favicon.ico
    /includes/languages/english/[MY TEMPLATE]/meta.tags has this definition: define('FAVICON','voc/favicon.ico');

    The favicon for regular products is correctly displayed for all pages associated with that cart including the admin pages.

    However, the favicons associated with the cart located in the /voc subdirectory are only correct for the customer pages. The VOC admin area pages display the favicon installed in the webserver root (wrong). The favicon installed at /voc/favicon.ico is ignored throughout the voc admin area.

    I also tried uploading the custom VOC favicon at /voc/admin/favicon.ico but that didn't fix the problem either.

    Any ideas on how to display a custom favicon for the admin pages located in the voc subdirectory?

    Both shops are Zencart Version 1.3.8a

    Ron
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Specifying unique favicon for admin

    The favicon for California VOC products is located at /voc/favicon.ico
    /includes/languages/english/[MY TEMPLATE]/meta.tags has this definition: define('FAVICON','voc/favicon.ico');

    Include the missing forward slash in your 'meta.tags' file

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Specifying unique favicon for admin

    Why are you worrying about favicons for admin areas? The public does not go near these areas.
    20 years a Zencart User

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Specifying unique favicon for admin

    Something to visually distinguish which admin you are in would be useful in such a case, whether a favicon, unique tab title or admin page logo.

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Specifying unique favicon for admin

    I just change the basic colors of the admin area in the stylesheet and upload a different logo.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Specifying unique favicon for admin

    Yes, that would be the most visible reminder of which admin you are in.

  7. #7
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Specifying unique favicon for admin

    Quote Originally Posted by gjh42 View Post
    Something to visually distinguish which admin you are in would be useful in such a case, whether a favicon, unique tab title or admin page logo.
    According to: docs/important_site_security_recommendations.html (in a download of the software), having additional tabs open while working in admin may pose a security issue:

    It is wise to observe caution while working in your admin area:

    use only one browser tab to access your admin area
    do NOT visit other sites when your browser has an active admin login session enabled even in another tab
    always log out of your admin when not using it
    Would this advice still apply when logged into two separate admin areas?

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Specifying unique favicon for admin

    I suppose so, but even if only one is open, a reminder of which one it is would be good.

  9. #9
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Specifying unique favicon for admin

    Quote Originally Posted by fairestcape View Post
    According to: docs/important_site_security_recommendations.html (in a download of the software), having additional tabs open while working in admin may pose a security issue:



    Would this advice still apply when logged into two separate admin areas?
    First, thanks to everyone who responded.

    Regarding the security issue, I wonder if that still applies if both carts are on the same server and domain. I routinely left all my site admins (4 carts) open on separate tabs. Discontinuing that practice. I appreciate that advice.

    Ron
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  10. #10
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: Specifying unique favicon for admin

    Quote Originally Posted by Website Rob View Post
    The favicon for California VOC products is located at /voc/favicon.ico
    /includes/languages/english/[MY TEMPLATE]/meta.tags has this definition: define('FAVICON','voc/favicon.ico');

    Include the missing forward slash in your 'meta.tags' file
    Thanks Website Rob for the response:

    I failed to put the slash in the post. It is actually there in the file. I checked the original install files and they come without the leading slash. I removed the leading slash but it didn't make any difference.

    Then it dawned on me that the admin area does not support custom template overrides, so I made the change directly in the meta.tags file at /voc/includes/languages/english, but again, the admin area pages continue to pickup the favicon.ico from the root directory. I even tried putting in the full path (http://www..../voc/favicon.ico.) in the metatags.php file but it did not change the result.

    The problem is limited to the admin area pages. It does not appear in catalog pages.

    And for the other contributors, yes my reason for this is to avoid confusion as to which similar looking shop I am working in at the moment. I do use use a green motif on the admin pages for the voc products, but when selecting browser tabs, that motif is not visible until the tab has been selected. A different favicon helps to distinquish which tab to select.

    I think the reason it works for the catalog pages is because the custom template overrides the default metatags.php definitions. I need a way for the admin pages to do likewise, but that might have to wait until/if a templates override feature is established for admin pages in a future version of Zencart.
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Alternate Favicon for the Admin?
    By Feznizzle in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Jun 2015, 06:27 PM
  2. Need a mod for specifying product on contact us page
    By r1formetoo in forum General Questions
    Replies: 13
    Last Post: 28 Oct 2011, 02:59 PM
  3. Replies: 2
    Last Post: 8 Sep 2010, 01:28 AM
  4. specifying internal link for ez-page cause it to not show on TOC
    By chuender in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Jun 2007, 03:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg