Ramui forum script
Home :: Ramui forum script :: Code and Modifications of Ramui webblog script :: Embedding Weblog into an exisitng website
Select Style:
User:
User:
Password:
Keep me login in this computer

Embedding Weblog into an exisitng website

Hi,

I'm currently looking for a good Blog system for my own website.

However, before I start going all mighty with any CSS and other things, my programming background is quite limited, therefore, I would like to have something simple but easy to implement.

Is it possible to implement the webblog into my own website as shown in the image below? The pink box should be expandable depending the size and number of messages from the blog.

To better illustrate what I mean, this is an image showing what I'm asking:

http://i53.tinypic.com/34t60yq.jpg

This is a site with 4 rows, each with 100% width. The 2nd row is divided in 2 columns, one cell for the main menu on the left hand side and on the right hand side, where the pink box is reserved for the blog to be displayed.

Question:
Can I embed webblog into my own website inside the pink box without using iframe? The page will eventually expand in height which is not a problem.

Thank you for any help / advise.

Appreciated, Regards.
Posted by: mduque;   Post:1;   Comments:3;  Date of Join: Sep 14, 2011, 09:08
Post date: Sep 14, 2011, 09:12
New topicReplyContactReport

Re: Embedding Weblog into an exisitng website

Hello,
You can easily achieve it just by modifying template. You can also include other parts of your row data with this blog script. I shall give you complete guide within 3 to 4 days. Please wait.

-----------------------------------------------------------
Web hosting directory

Posted by: admin;   Post:34;   Comments:116;  Date of Join: Nov 05, 2008, 08:04
Post date: Sep 14, 2011, 14:26
ContactReport

Re: Embedding Weblog into an exisitng website

[quote="admin"]Hello,
You can easily achieve it just by modifying template. You can also include other parts of your row data with this blog script. I shall give you complete guide within 3 to 4 days. Please wait.



Hello,

Thank you very much for your kind help. Much appreciated.

Just one thing, I am trying to install the webblog, but the file sitemap.xml mentioned in the installation guide doesn't exist in my web root
/public_html/blog/ramui/

I looked into the folders and couln't find it.

Appreciated for any help and I'll wait for your reply.

Again, thank you and much appreciated.
Posted by: mduque;   Post:1;   Comments:3;  Date of Join: Sep 14, 2011, 09:08
Post date: Sep 15, 2011, 04:50
ContactReport

Re: Embedding Weblog into an exisitng website

As your image prescribe the HTML code behind your template looks like,
Code
<html>
<head>
//Title and meta tags.
//Style sheet link.
</head>
<body>
<table><tr><td colspan="2">
//First row code.
</td></tr><tr><td>
//Menu code here.
</td><td>
//Here you want to add your blog post and comments.
</td></tr>
<tr><td colspan="2">
//Third row HTML code.
</td></tr>
<tr><td colspan="2">
//Fourth row HTML code.
</td></tr></table></body></html>
To achieve such a template do the following steps.
1. Create a new template by cloning your default template.
2. Open index.php file for editing.
3. Replace the file content with your template file code.
4. Replace the top part of the code (from <head> to <body>) by the following line.
<?php include 'fw_blog/templates/head.php';?>
5. Replace the blog post part of your code by the following code block.
Code
<div id="fw_mainbody">
<?php
//Display page content from database (for post).
if(!empty($fw_page_array['content'])){echo $fw_page_array['content'];}
//Include content file from page directory (for page).
if(file_exists("fw_blog/pages/".str_replace("/", ".",$fw_page_array['pagename']).".php")){@include "fw_blog/pages/".str_replace("/", ".",$fw_page_array['pagename']).".php";}
//Include user comments.
$comments=$fw_db->get_comments($fw_page_array['id']);
if((!empty($comments))||(!empty($fw_page_array['allowcomments']))){
echo '<div id="fw_comments"><a name="comments"></a><div id="fw_commentbar">User comments:</div>'.$comments;
echo '<p style="text-align:right;">';
echo (empty($fw_page_array['allowcomments']))? '<a class="lockedbutton" name="addcomment" href="javascript:alert(\'Comment has been locked by admin\')">Locked</a>':'<a class="commentbutton" name="addcomment" href="javascript:fwAddComment('.$fw_page_array['id'].')">Add comment</a>';
echo '</p></div>';}
?>
</div>
6. At the end of file just before the closing body tag add the following line of code. This line actually enable your page stat.
<?php echo $fw_db->footer();?>
7. Please modify the style sheet (under css folder) to match your template.
About sitemap.xml
You do not have to worry about this file. This file (if not there) will be generated automatically.
---------------------------------
For any further help please attach your template file.

-----------------------------------------------------------
Web hosting directory

Posted by: admin;   Post:34;   Comments:116;  Date of Join: Nov 05, 2008, 08:04
Post date: Sep 16, 2011, 08:05
ContactReport

Re: Embedding Weblog into an exisitng website

Hello,

Thank you so much for taking the time to explain. I was going to try it, however, I've been trying to install the weblog but when I get to

http://www.mduque.com/blog/ramui/fw_blog/admin/install/index.php

I get the following error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/mduque/public_html/blog/ramui/fw_blog/admin/install/index.php on line 9

Also, I did a test.php page at

http://www.mduque.com/test/test.php

to show you what I meant previously with the image. Indeed looking forward to try your technique once I have the weblog installed.

Appreciated for all the help.

Regards.
Posted by: mduque;   Post:1;   Comments:3;  Date of Join: Sep 14, 2011, 09:08
Post date: Sep 17, 2011, 04:14
ContactReport

Re: Embedding Weblog into an exisitng website

Sorry, your PHP version is not compatible with this script. Please read system requirements in readme.txt.

-----------------------------------------------------------
Web hosting directory

Posted by: admin;   Post:34;   Comments:116;  Date of Join: Nov 05, 2008, 08:04
Post date: Sep 17, 2011, 07:27
ContactReport

Re: Embedding Weblog into an exisitng website

Dam... sorry about the trouble. Thank you for your time ramui. Appreciated.
Posted by: mduque;   Post:1;   Comments:3;  Date of Join: Sep 14, 2011, 09:08
Post date: Sep 17, 2011, 09:22
ContactReport