test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • priori Friend
    #149725

    Hello, I wonder if there is any way to remove the formatting of the text of the articles to be displayed in modules janews2 and janews_fp. The user wants to use great source articles, and they are very bad.

    Saguaros Moderator
    #337352

    Dear priori!

    pls use the strip_tags function to remove html formatting.

    http://php.net/manual/en/function.strip-tags.php

    pls open the file: modulesmod_janews_fptmpltelineiii_fp.php and find codes:
    [PHP] <?php echo $bigmaxchar?$news->introtext1:$news->introtext;?>[/PHP]
    replace:
    [PHP]<?php echo strip_tags($bigmaxchar?$news->introtext1:$news->introtext);?>[/PHP]

    And find codes:
    [PHP]<?php echo $smallmaxchar?$news->introtext1:$news->introtext;?>[/PHP]
    and replace:
    [PHP]<?php echo strip_tags($smallmaxchar?$news->introtext1:$news->introtext);?>[/PHP]

    2) open the file: modulesmod_janews2tmplblog_item.php and find codes:
    [PHP]
    <?php
    if($maxchars > strlen($row->introtext1)) {
    echo $row->introtext;
    } else {
    echo $row->introtext1;
    }
    ?>
    [/PHP]
    and replace:
    [PHP]
    <?php
    if($maxchars > strlen($row->introtext1)) {
    echo strip_tags($row->introtext);
    } else {
    echo strip_tags($row->introtext1);
    }
    ?>
    [/PHP]

    Good luck

    priori Friend
    #337390

    Thank Tienhc,

    was exactly what I needed was very good now.

    walkysss Friend
    #340404

    how can I GET the heading smaller ,cause my site the heading loks like too big in the JA FP?

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

This topic contains 4 replies, has 3 voices, and was last updated by  walkysss 14 years, 7 months ago.

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