Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • Adam M Moderator
    #565270

    Hi @paoloci,

    I couldn’t connect to your site via FTP so I tried to install com_mijoftp to modify the code. Unfortunately there was a problem while I’m updating the file and now it end up with PHP error.

    Please check attachment file, replace your current file public_html/templates/ja_wall/template_tools.php with the new one and uninstall com_mijoftp.

    Please accept my apology for this inconvenient.


    1. template_tools.zip
    paoloci Friend
    #565316

    Hello
    Adam
    I have done all the operations that you suggest.
    Seems solved the problem of the color of the intro text.
    Is it possible to conserve the cursive? What i must do on template_tools.php?
    Also i could use this file php on other JaWall template to obtain this effect?
    If you need the data ftp again I can send it.
    Thanks

    Adam M Moderator
    #565429

    Hi @paoloci,

    Please have a look at my previous reply (#13), the solution is to look for that block of code, then update as below instead :

    static $regex = '#<div[^>]*>(.*)</div>#i';
    static $allowtag = '<a><b><strong><span><br><p>';

    paoloci Friend
    #565540

    Thanks for answer.
    Also if I change this code nothing change
    I have put also

    static $regex = '#<div[^>]*>(.*)</div>#i';
    static $allowtag = '<a><b><strong><span><br><p><i>';

    with <i>
    no change..:((

    Adam M Moderator
    #565677

    Hi @paoloci,

    I checked your site and see that current code look like this :

    public static function extractFirstParagraph($text){
    static $regex = '#<p[^>]*>(.*)</p>#i';
    static $allowtag = '<a><b><strong><br>';

    so please update it as I suggested in previous reply.

    paoloci Friend
    #565750

    Hi Adam
    thanks for answer and Happy Easter.

    No, the code in
    public_html/templates/ja_wall/template_tools.php
    is like the image below
    please check

    What Am I in wrong?

    Thanks


    1. 2015-04-04_171512
    Adam M Moderator
    #565836

    Hi @paoloci,

    I recheck again but still see the original code in this site http://catechesi.diocesifrosinone.it/, please make sure that you’re modifying correct file in correct domain.

    paoloci Friend
    #565952

    Hi Adam
    I understand the misunderstanding
    the site is not catechesi.diocesifrosinone.it
    but
    http://www.orientecristiano.it
    here is

    static $regex = '#<div[^>]*>(.*)</div>#i';
    static $allowtag = '<a><b><strong><span><br><p><i>';

    but the cursive is not present only <b> and color.
    Please see here
    http://www.orientecristiano.it/all-news/medio-oriente/9150-pasqua-in-siria-mons-zenari-il-paese-vive-ancora-la-via-crucis.html
    and the same article in blog view
    http://www.orientecristiano.it/all-news/rassegna-stampa-view.html
    cursive is not present.
    I can send data in pm is necessary.

    Thanks

    Adam M Moderator
    #566029

    Hi @paoloci,

    Thanks for your clarification, I checked your site http://www.orientecristiano.it/ and look like you managed to sort it out, could you please confirm your status ?


    1. s1
    paoloci Friend
    #566071

    Yes.
    The homepage, as you see, with your template, is similar at the single article.
    When I use JaWall in blogview the cursive is not present. Only the color, <b>..
    for example
    this article
    http://www.orientecristiano.it/all-news/ecumene/9138-molto-da-fare-insieme.html

    in home is correct
    http://www.orientecristiano.it

    not in blog view with JaWall
    http://www.orientecristiano.it/all-news/rassegna-stampa-view.html
    (scroll a little to the bottom to see the article in preview without <i>)

    Thanks


    1. article-1
    2. home
    3. blog-view-error-cursive
    Adam M Moderator
    #566288

    Hi @paoloci,

    Thanks for your clarification, actually it’s an <em> tag, not <i> tag, please update the PHP code accordingly and recheck.

    paoloci Friend
    #566331

    Perfect!
    The problem is solved.
    Thanks Adam.

Viewing 12 posts - 16 through 27 (of 27 total)

This topic contains 27 replies, has 2 voices, and was last updated by  paoloci 9 years, 7 months ago.

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