Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Ninja Lead Moderator
    #994505

    Hi,

    About the problem event page, it looks like you have changed it from templates/ja_charity/html/layouts/joomla/content/item/event.php file and you need to rollback it with original file

    About the problem on Home event. I fixed it directly on your site and you can see it from templates/ja_charity/acm/news-featured/tmpl/event-slider.php file

    find and change

    <?php
        $max_length = 80;
        $s = $item->introtext;
        if (strlen($s) > $max_length) {
        $offset = ($max_length - 3) - strlen($s);
        $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...';
        } 
        echo $s;
    ?>

    to

    <?php 
      $max_length = 80;
      $s = $item->introtext;
      // Allow <p> and <a>
      $s = strip_tags($item->introtext,'<p><a>');
      if (strlen($s) > $max_length) {
        $offset = ($max_length - 3) - strlen($s);
        $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...';
      } 
      echo $s;
    ?>

    Regards

    goldfinder Friend
    #994622

    About the problem on Home event. I fixed it directly on your site and you can see it from templates/ja_charity/acm/news-featured/tmpl/event-slider.php file

    Thank you, you rock 😀

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  goldfinder 7 years, 11 months ago.

The topic ‘Problems with events’ is closed to new replies.