Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2009
    Posts
    137
    Plugin Contributions
    0

    Default Greeting Strings "Welcome Guest" on some pages on others its "TEXT_GREETING_GUEST"

    Hello,

    The URL is http://murugan.in/

    On the home page and Category and Product Listing Pages the Greeting String for the Guest User appears as:
    Welcome Guest

    On Pages like About us / Contact us etc. it is the constant:
    TEXT_GREETING_GUEST

    Same happens with the registered user as well.

    I could not find the reason why its happening so here I am again :-)

    Please help.

    Regards

  2. #2
    Join Date
    Aug 2009
    Posts
    137
    Plugin Contributions
    0

    Default Re: Greeting Strings "Welcome Guest" on some pages on others its "TEXT_GREETING_GUEST

    I found the problem but not the fix yet.

    The problem is that the includes/languages/english/index.php and includes/languages/english/my_template/index.php files are not included on the pages where the greetings string constant appears.

    I checked it by including the following at the bottom on my main template file.
    includes\templates\murugan\common\tpl_main_page.php

    PHP Code:
    print_r(get_included_files()); 
    Any idea why this file is being skipped?

    Regards

  3. #3
    Join Date
    Aug 2009
    Posts
    137
    Plugin Contributions
    0

    Default Re: Greeting Strings "Welcome Guest" on some pages on others its "TEXT_GREETING_GUEST

    Ah! sorry about the file name, its english.php. I was somehow got confused.

    The file english.php is being included, not sure why the constant appears instead of a proper greeting string.

    Regards

  4. #4
    Join Date
    Aug 2009
    Posts
    137
    Plugin Contributions
    0

    Default Re: Greeting Strings "Welcome Guest" on some pages on others its "TEXT_GREETING_GUEST

    To many iterations of debugging messed up everything. I wrote correct initially, the index.php language file has the following, so when it is not included, the constant appears instead of the formatted greetings string.

    To fix it, I moved it to the english.php of my template:

    PHP Code:
    define('TEXT_GREETING_GUEST''Welcome <span class="greetUser">Guest</span>');
    define('TEXT_GREETING_PERSONAL''Welcome <span class="greetUser">%s</span>'); 
    Its working now.

    Regards

 

 

Similar Threads

  1. v151 why do some items say "more info" and others have a "buy now" graphic?
    By Nick Robinson in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jul 2016, 05:09 PM
  2. v1.2.x Some products "buy now" others "more info" can you help?
    By luke_pickering in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Sep 2014, 05:47 PM
  3. Replies: 7
    Last Post: 28 Mar 2008, 05:42 PM
  4. Deleting "Congratulations!" and "Welcome Guest!" Lines
    By Drewster in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 22 Jan 2008, 05:47 AM
  5. Need help changing text size for: "Congratulations" & "Welcome Guest" on main page
    By STFlats in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 16 Apr 2007, 04:32 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