Blog Integration

Post Reply
ZippyT
Jr. Bludit
Posts: 4
Joined: Mon Jun 13, 2016 4:19 am

I am trying to have the post.php and the sidebar.php show up in a section of a one-page site.

I have tried:

Code: Select all

<td><iframe src="/blog/bl-themes/blogme/php/post.php"></iframe></td>
<td><iframe src="/blog/bl-themes/blogme/php/sidebar.php"></iframe></p></td> 
and get the results of:
post.php area: a blank area
sidebar.php: error message Notice: Undefined variable: Site in /home/cvhosts/website.co.ca/www/blog/bl-themes/blogme/php/sidebar.php on line 4 Fatal error: Call to a member function title() on a non-object in /home/cvhosts/website.co.ca/www/blog/bl-themes/blogme/php/sidebar.php on line 4

Any help is appreciated. Thanks.
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
PHP files are interpreted by the server, and iframe is HTML code interpreted by the browser (user), you can't do that.

To get the posts you can use the API plugin, and work with PHP in the server side.

Regards
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

diego wrote:Hi,
PHP files are interpreted by the server, and iframe is HTML code interpreted by the browser (user), you can't do that.

To get the posts you can use the API plugin, and work with PHP in the server side.

Regards
if i may ask , could you tell how ?
because its a bit interesting to me
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
check this post, viewtopic.php?f=6&t=694
Post Reply