Questions and Answers

0 Like 0 Dislike

Leigh Noble

How to stop PHP and some HTML from being stripped out of article when saved?

Very new hub here. One of my first tasks was to move a working php form (a questionnaire) from a previous website onto our new hub website. I logged in as a super-administrator and edited one of the articles on the example front page to place the working php form there. However, when I saved the article the PHP open tag was stripped out. Next, I tried to embed a youtube video into an article with the html command, but that command was also stripped when the article was saved.

I tried to change to “no editor”, but that didn’t seem to help. I thought I was trying to do something simple, but I must be doing something really wrong. Can someone put me on the right track?

Report abuse

Chosen Answer

  1. 0 Like 0 Dislike

    Leigh Noble

    I see now that adding the php the way I was trying to do it is not the right way. It seems I need an extension to do this.

    In any rate, my question about the youtube video embedding still stands. How can I embed a youtube video? It seems like the HTML is stripped out when the article is saved. What is the proper way to do this in a hubzero implementation?

    Reply Report abuse

    Please login to answer the question.

1 Responses

  1. 0 Like 0 Dislike

    Shawn Rice

    Joomla has a default blacklist for certain HTML elements.

    If you’re using the HUBzero build on Joomla 2.5 (the latest HUBzero open source release), then:

    • Log in to the admin interface.
    • Go to Site > Global configuration.
    • Select the “Text Filters” sub-menu item.
    • Set the filters based on user group type (typically, “no filtering” is the option preferred for “Super Users”).
    • Hit “Save”.

    Previous version (Joomla 1.5):

    • Log in to the admin interface.
    • Go to Content > Article Manager.
    • Click “Parameters” in the toolbar.
    • Scroll to the bottom of the parameters list. Set the filters based on user group type.
    • Hit “Save”.

    Reply Report abuse

    Please login to answer the question.

  • Copyright © 2022 Hubzero
  • Powered by Hubzero®