Recent Topics

1 Apr 07, 2005 11:14    

Hello!

I used for the first time b2evolution and it's fantastic.
I'm getting a big poblem and I could nt understand how to resolve it.

In my blog
http://www.riadevelopers.com/blog/multiblogs.php
I have a list of category of each blog.The problem is the link created..
I get always

http://www.riadevelopers.com/blog/index.php?blog=1&cat=myID

For every category of any blog I always ge the ID of the first blog..
How could I resolve this ?
I also tried to understand hw to define the list of available blog nto the category related files, but I didn't find any solution.

I suppose thatthe best thing should be to create the URL, not from a given ID blog, but getting this id from the category table.

Could you help me in founding the SELECT to get this id_blog from category ?
Thanks,

2 Apr 08, 2005 12:59

Hello everybody.

I solved the BUG.

In the file
skins/_categories.php

I wrote this


global $baseurl ;
$__BLOGID = $baseurl . "?blog=".$cat['cat_blog_ID'];
echo '<a href="'.url_add_param($__BLOGID, 'cat='.$cat_ID ).'">'.format_to_output($cat['cat_name'], 'htmlbody').'</a> <span class="dimmed">('.$cat['cat_postcount'].')</span>';

instead of this:


echo '<a href="'.url_add_param( get_bloginfo('blogurl'), 'cat='.$cat_ID ).'">'.format_to_output($cat['cat_name'], 'htmlbody').'</a> <span class="dimmed">('.$cat['cat_postcount'].')</span>';

hope this helps...


Form is loading...