Recent Topics

1 Sep 19, 2007 18:33    

My b2evolution Version: 1.9.x

Hi,

using b2evo 1.9.2 with currently 2 blogs (plus the all-in-one-blog), the _bloglist.php displays 3 titles at the top of my pages... and there is still some space right aside... Is it possible to add two or three own links in the same style there, e.g. the rss-feeds-link etc.?

I know, there is much space in the sidebar for all that stuff as well, but perhaps the headline is more noticeable for the links I think are important...

Any ideas?

Thank you very much in advance,
Daniel

2 Sep 21, 2007 15:45

Hi Daniel,

I tested this in 193:

In ../blogs/skins/_bloglist.php add before:

// Output:
echo $blog_list_start;
echo implode( $blog_list_separator, $blog_links );
echo $blog_list_end;


this piece of code:

/* Start hack to add static links to blog bar */

/* Compose the link from various existing pieces */
		$extra_blog_link = $blog_item_start;
		$extra_blog_link .= '<a href="';
		$extra_blog_link .= 'http://www.b2evolution.net';			 /* URL */
		$extra_blog_link .= '" class="'.$blog_other_link_class.'" title="';
		$extra_blog_link .= 'B2evolution website';					/* title (mouse over) */
		$extra_blog_link .= '">';
		$extra_blog_link .= $blog_other_name_before;
		$extra_blog_link .= 'B2evolution';						    /* title in label */
		$extra_blog_link .= $blog_other_name_after;
		$extra_blog_link .= '</a>';
		$extra_blog_link .= $blog_item_end;

/* Add to existing blogs */		
		$blog_links[] = $extra_blog_link;
/* Repeat all previous steps for more links */		

/* End hack */


and change it to your preferences.

You may or may not want to add 'target="_blank"' in $extra_blog_link .= '">'; like so:

		$extra_blog_link .= '" target="_blank">';

Good luck

3 Sep 21, 2007 17:12

Perfect! Works really great! Thank you very much!


Form is loading...