Open: index.php
Find:
- Code: Select all
// Output page
Before, Add:
- Code: Select all
// Output Blog Entries
$blog_limit = 5;
$user->add_lang(array('mods/blog/common', 'mods/blog/view'));
include($phpbb_root_path . 'blog/functions.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_display.' . $phpEx);
$blog_data = new blog_data();
$recent_blog_ids = $blog_data->get_blog_data('recent', 0, array('limit' => $blog_limit));
$blog_data->get_user_data(false, true);
update_edit_delete();
if ($recent_blog_ids !== false)
{
foreach ($recent_blog_ids as $id)
{
$blog = $blog_data->handle_blog_data($id, $config['user_blog_text_limit']);
// edit the blog text here.
$template->assign_block_vars('recent_blogs', array_merge($blog_data->handle_user_data(blog_data::$blog[$id]['user_id']), $blog));
}
}
Open: styles/prosilver/template/index_body.html
Find:
- Code: Select all
<!-- INCLUDE forumlist_body.html -->
add bevor or after
- Code: Select all
<!-- IF .recent_blogs -->
<div class="post bg3" style="text-align: center;">
<span class="corners-top"><span></span></span>
<strong>{L_RECENT_BLOGS}</strong>
<span class="corners-bottom"><span></span></span>
</div>
<!-- BEGIN recent_blogs -->
<div class="post bg1<!-- IF recent_blogs.S_REPORTED or recent_blogs.S_UNAPPROVED --> reported<!-- ENDIF --><!-- IF recent_blogs.S_DELETED --> deleted<!-- ENDIF -->" <!-- IF recent_blogs.POST_COLOR and not recent_blogs.S_REPORTED and not recent_blogs.S_UNAPPROVED and not recent_blogs.S_DELETED...
[ Continued ]

April 2011