Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Include .htm or .php into news.php

Asked Modified Viewed 3,384 times
B
bebriuxs
B
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

How can I include .html or .php into news item?
I tryd this code:

<?php
include "blabla.php"
?>

it doesnt work,any ideas?
0 replies

6 posts

W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

You can use html directly in news. Use ' instead of ".

php is not allowed in news for security reasons. You can make a link to a custom page where php is allowed.
0 replies
B
bebriuxs
B
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

What do you mean? Maybe you have some example?
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

<table border='1' width='100%'>
   <tr>
      <td> </td>
      <td> </td>
   </tr>
   <tr>
      <td> </td>
      <td> </td>
   </tr>
</table>
<p><a href='link%20to%20custom%20page'>link to custom page</a></p>
0 replies
B
bebriuxs
B
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

I need to see the page inside news.php! like inline frame,but full size!

Can you help me with these topics?
http://php-fusion.co.uk/forum/viewthr...d_id=14004
http://php-fusion.co.uk/forum/viewthr...d_id=13919
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

You cannot use php code or iframes in news for security reasons.

News and articles are sanitised in maincore.php:

Quote

// This function sanitises news & article submissions
0 replies
B
bebriuxs
B
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
answered
Junior Member

ok,nevermind ...
but thx for the help :)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 6 posts
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet