Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • txt007 Friend
    #193250

    Hi,

    a) I have amended to display the created date, month and year, but the year displayed on the frontend is wrong. What is my error? And when clicked on the articles, date displayed in the “pink circle” is weird. Can’t figure out how to correct this.

    b) and if possible, how can I change the display to show published date (instead of by default the created date in JA Methys)?

    c) Breadcrumbs showed duplicated cateogry when click on article. Can’t find where to correct this issue.(see attached file)

    d) all Chinese characters are displayed as ??????, although I installed Chinese simplified language already (see file attached language.png)

    thanks and regards
    txt007


    1. Backend
    2. Default_item.php_
    3. Wrong-year-in-frontend
    4. date-display-weird-and-breadcrumbs-cat-duplicated
    5. language
    Ninja Lead Moderator
    #516541

    a) I have amended to display the created date, month and year, but the year displayed on the frontend is wrong. What is my error? And when clicked on the articles, date displayed in the “pink circle” is weird. Can’t figure out how to correct this.

    You have to fix the problem from php file

    Open templates/ja_methys/html/com_content/category/blog_item.php file

    Change

    <?php
    $createDay = date('d', strtotime($this->item->created));
    $createMonth = JText::_(strtoupper(date('F', strtotime($this->item->created)))."_SHORT");
    $createYear = date('Y', strtotime( $created));
    ?>

    To


    <?php
    $createDay = date('d', strtotime($this->item->created));
    $createMonth = JText::_(strtoupper(date('F', strtotime($this->item->created)))."_SHORT");
    $createYear = date('Y', strtotime( $this->item->created));
    ?>

    b) and if possible, how can I change the display to show published date (instead of by default the created date in JA Methys)?

    Yes, you can do that

    Change


    <?php
    $createDay = date('d', strtotime($this->item->created));
    $createMonth = JText::_(strtoupper(date('F', strtotime($this->item->created)))."_SHORT");
    $createYear = date('Y', strtotime( $this->item->created));
    ?>

    To


    <?php
    $createDay = date('d', strtotime($this->item->publish_up));
    $createMonth = JText::_(strtoupper(date('F', strtotime($this->item->publish_up)))."_SHORT");
    $createYear = date('Y', strtotime( $this->item->publish_up));
    ?>

    c) Breadcrumbs showed duplicated cateogry when click on article. Can’t find where to correct this issue.(see attached file)

    d) all Chinese characters are displayed as ??????, although I installed Chinese simplified language already (see file attached language.png)

    I must check it directly on your site. Please send me URL of your site, admin logins via private message. I will help you to check these problem.

    txt007 Friend
    #516578

    Thanks Ninja Lead
    amended but still display year as 1969…
    thanks and regards,
    txt007

    Ninja Lead Moderator
    #516635

    a) b) You can try to fix it with the similar solution here but in templates/ja_methys/html/com_content/featured/default_item.php file

    c) Breadcrumbs showed duplicated cateogry when click on article. Can’t find where to correct this issue.(see attached file)

    I have disabled it from your back-end, see the screenshot

    d) all Chinese characters are displayed as ??????, although I installed Chinese simplified language already (see file attached language.png)

    I did check from back-end of your site:

    I see it does not support Chinese language. You need to check database of your site if it supports Chinese language and database should be change to utf8-general_ci


    1. ja_methys_breadcrumbs
    2. content_include
    txt007 Friend
    #516709

    Thanks Ninja lead,
    when i said duplicated, i meant the breadcrumbs structure duplicated… for example, it displays Home>News>News>title of article

    The category News is displayed twice in the breadcrumbs.

    I will try to find a way to change the database to utf8-general-ci in goddady…
    thanks and regards,

    the year is still 1969 for every article… the date and month are correct.

    txt007

    Ninja Lead Moderator
    #516854

    If possible you can send me ftp account of your site via private message. I will check and fix the problem directly on your site.

    Ninja Lead Moderator
    #517126

    1. Breadcrumbs showed duplicated cateogry when click on article. Can’t find where to correct this issue.(see attached file)

    Regarding the breadcrumbs, you can create and assign it into your site as seen in my screenshots below:

    + Breakcrumb back-end

    + Show on front-end

    2. The year is still 1969 for every article… the date and month are correct.
    I did help you change directly on your site. Below is my tweak for your reference:

    Open templates/ja_methys/html/com_content/featured/default_item.php file

    Replace:

    $createYear = date('Y', strtotime( $created));

    With:

    $createYear = date('Y', strtotime( $this->item->created));


    1. breakcrumbs
    2. breakcrumbs_front
    txt007 Friend
    #517288

    Thanks Ninja Lead
    However, when I click on the article, it gives another date format display. How to apply Featured date display to Article?
    I tried in /templates/ja_methys/html/com_content/article/default_item.php
    but display is overlapped on title.

    thanks and regards,
    kt


    1. ArticleDateDisplay
    Ninja Lead Moderator
    #517455

    I did have this fixed on your site. It related to CSS style. Below are my fix for your reference:

    Open templates/ja_methys/css/template.css file,

    Replace:

    h2.contentheading, .contentheading {
    font-size: 250%;
    font-weight: normal;
    margin: 0;
    }

    With

    h2.contentheading, .contentheading {
    font-size: 250%;
    font-weight: normal;
    margin: 0;
    margin-left: 70px;
    }

    txt007 Friend
    #517609

    Many thanks Ninja Lead
    however, there is extra space created on the Featured page and the “pink-circled-date” is not well aligned when article is opened.

    see attached file.
    thanks
    txt007


    1. not-aligned
    2. space-created
    Ninja Lead Moderator
    #517719

    I have fixed CSS style directly on your site. Below are changes I have made:

    – In templates/ja_methys/css/template.css file:

    Replace:


    .item h2.contentheading {
    font-size: 150%;
    }

    With:


    .item h2.contentheading {
    font-size: 250%;
    }

    – In …templates/ja_methys/css/layout.css file:

    Replace:

    .item .hascreatedate ,
    .leading .hascreatedate {
    padding-left: 80px;
    padding-right: 0;
    }

    With:

    .item .hascreatedate ,
    .leading .hascreatedate {
    padding-left: 0px;
    padding-right: 0;
    }

    Please check your site again, let me know if it helps.

    txt007 Friend
    #517731

    Thanks a lot Ninja Lead.
    It is good.
    However, on section where I don’t want date to be displayed, there is a space created before the title.

    And ONLY from menu-Events, when clicked on any article, it leads to displaying Home page with “pink-circled-date” overlapping on title.

    thanks and regards,
    txt007


    1. Click-on-any-article-on-Event-menu-lead-to-Home-page-with-Date-overlapping-on-title
    2. Events-menu
    3. Space-b4-title
    Ninja Lead Moderator
    #517861

    I have modified the file ..templates/ja_methys/css/template.css – add CSS style below:

    .blog-featured h2.contentheading {
    margin-left: 0px !important;
    }

    The space and overlaping issue should be fixed now. Please check again.

    txt007 Friend
    #519205

    thanks a lot Ninja Lead
    one more question
    can help me to put a <br> to the author name display in frontend?

    When the title has one line, author name is hidden behind the “pink-circle-date”, when the title takes two lines, it’s ok.

    thanks a lot
    txt007


    1. author-display
    Ninja Lead Moderator
    #519338

    You don’t need to add <br> tag in content, you can change it via CSS instead.

    Open templates/ja_methys/css/template.css file

    Change

    h2.contentheading, .contentheading {
    font-size: 250%;
    font-weight: normal;
    margin: 0;
    margin-left: 70px;
    }

    To

    h2.contentheading, .contentheading {
    font-size: 250%;
    font-weight: normal;
    margin: 0;
    margin-left: 70px;
    min-height: 60px;
    }

    Don’t forget to clear cache from Admin area after making changes

Viewing 15 posts - 1 through 15 (of 16 total)

This topic contains 16 replies, has 2 voices, and was last updated by  txt007 10 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum