Recent Topics

1 Aug 17, 2006 07:42    

I was wondering if I could be able to imbed a blog into my website? If I can how would I go about doing that?

I would love some code and some great examples if you have any please.

Thanks for your assistance

2 Aug 17, 2006 07:47

Also I would love to link up phpBB to the blog if possible for the comments or something along that line also.

Thanks..

3 Aug 18, 2006 23:08

The b2evolution website you see right now, is infact running b2evolution. Good example? ;)

4 Aug 23, 2006 07:21

Could I make a left hand side navagation that shows the different blogs that I need on the left hand side possibly?

5 Aug 23, 2006 13:26

iampedro wrote:

Could I make a left hand side navagation that shows the different blogs that I need on the left hand side possibly?

It's called a blog list, here is the code that is used for my site.

global $blog, $display_blog_list;

if( ! $display_blog_list )
{
	echo 'Blog Listing is disabled.';
}else{

# this is what will start and end your blog links
if(!isset($blog_list_start)) $blog_list_start = '<ul>';
if(!isset($blog_list_end)) $blog_list_end = '</ul>';
# this is what will separate your blog links
if(!isset($blog_item_start)) $blog_item_start = '<li>»&nbsp;';
if(!isset($blog_item_end)) $blog_item_end = '</li>';
# This is the class of for the selected blog link:
if(!isset($blog_selected_link_class)) $blog_selected_link_class = '';
# This is the class of for the other blog links:
if(!isset($blog_other_link_class)) $blog_other_link_class = '';
# This is additionnal markup before and after the selected blog name
if(!isset($blog_selected_name_before)) $blog_selected_name_before = '<em>';
if(!isset($blog_selected_name_after)) $blog_selected_name_after = '</em>';
# This is additionnal markup before and after the other blog names
if(!isset($blog_other_name_before)) $blog_other_name_before = '';
if(!isset($blog_other_name_after)) $blog_other_name_after = '';
# This is the blogparam that will be displayed as the name:
if(!isset($blog_name_param)) $blog_name_param = 'name';//'shortname';
# This is the blogparam that will be displayed as the link title:
if(!isset($blog_title_param)) $blog_title_param = 'shortdesc';//'name';


echo $blog_list_start;
for( $curr_blog_ID = blog_list_start();
			$curr_blog_ID != false;
			 $curr_blog_ID = blog_list_next() )
{
	if( !blog_list_iteminfo( 'in_bloglist', false ) )
	{ // don't show
		continue;
	}
	echo $blog_item_start;
	if( $curr_blog_ID == $blog )
	{ // This is the blog being displayed on this page:
		echo '<a href="';
		blog_list_iteminfo('blogurl', 'raw');
		echo '" class="', $blog_selected_link_class, '" title="';
		blog_list_iteminfo($blog_title_param, 'htmlattr');
		echo '">';
		echo $blog_selected_name_before;
		blog_list_iteminfo($blog_name_param, 'htmlbody');
		echo $blog_selected_name_after;
		echo '</a>';
	}
	else
	{ // This is another blog:
		echo '<a href="';
		blog_list_iteminfo('blogurl', 'raw');
		echo '" class="', $blog_other_link_class, '" title="';
		blog_list_iteminfo($blog_title_param, 'htmlattr');
		echo '">';
		echo $blog_other_name_before;
		blog_list_iteminfo($blog_name_param, 'htmlbody');
		echo $blog_other_name_after;
		echo '</a>';
	} // End of testing which blog is being displayed
	echo $blog_item_end;
}
echo $blog_list_end;

}


Form is loading...