Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • ceeyee Friend
    #167661

    I have some text in a .txt file saved on the server which I want to insert into the Intro Text of an existing article, so that a visitor can see the content of that .txt file in the JA News Pro front page.

    I am able to use the Sourcerer pIugin to use PHP (by adding the code below) in the articles, but the plugin only works with the article’s main content, but not the Intro Texts. .

    When I tried to insert the Sourcerer php codes into the Intro Text, the whole frontpage of the site crashed (only displayed a blank page).

    Is there any other ways to load a txt file through as a part of the Intro Text of an article on the JA News Pro front page? I don’t want to use <iframe> because it’s not SEO friendly.

    Thanks.

    —– the Sourcerer plugin code that works in the main body of an article but not the Intro Text—-
    {source}
    <!– You can place html anywhere within the source tags –>

    <?php
    require($DOCUMENT_ROOT . “/test2.txt”) // You can place PHP like this

    ?>
    {/source}

    Blaine Friend
    #407641

    Hi ceeyee,
    The Sorcerers Code site is very user friendly and they are good about getting back to the client on questions. It is just 1 guy I think so please be patient when asking for help there.
    I really am not familiar with his code, so please inquire there as it appears to do with the plugin, not Joomlart.
    Let me know if the issue remains unsolved AFTER you have contacted him and I will be happy to take a look.
    Thanks!

    ceeyee Friend
    #407972

    I posted a question on their forum and I am waiting for the answer.
    I will let you know how it goes.
    Thank you.

    Blaine Friend
    #407998

    Thanks for the update ceeyee!
    Please do post their answer here as many other users might also have the same questions!

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

This topic contains 4 replies, has 2 voices, and was last updated by  Blaine 13 years, 2 months ago.

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