Recent Topics

1 Jul 24, 2009 00:21    

My b2evolution Version: Not Entered

So this is my last question. I'm really quite proud of myself for figuring out how to call category titles as menu items!

Please reference http://www.lebzzzzz.com/blog2.php

So this is the skin for my interior pages (blog1.php is simply an entry page). Please look at the "file folder" menu right under the logo.

These menu items are actually the categories for the blog setup inside a sideblog.

The menu has an active class defined.

Is there anyway to tell the code to display the active class when the politics tab is clicked and the politics category page is displayed?

I want to do this on blog1.php too but the links then would show a different blog with each tab.

I'm having trouble wrapping my html conditioned brain around this php problem.

THANKS hope someone can help

2 Jul 24, 2009 10:57

Your active menu item has class "selected" ? Or is that not what you're after?

¥

3 Jul 24, 2009 18:28

¥åßßå wrote:

Your active menu item has class "selected" ? Or is that not what you're after?

¥

yeah, seems so.

I guess you have tried sth like this :

#navlist a:link#current, #navlist a:visited#current {
	background: #fff;
	border-bottom: 1px solid #fff;
}

in default.css

try replacing the above lines with

#navlist .selected a{
	background: #fff;
	border-bottom: 1px solid #fff;
}

or simply add it to the very end of your css file

4 Jul 25, 2009 20:29

OK...that worked great. Took me a long time to refix the skin for Firefox afterwards. But got this working...almost.

If I can please walk you through one issue...

From lebzzzzzz.com...the "file folder" tabs are working great...mouseove is correct and the links are going to the correct page...but

If you click a tab (the inner page formatting is not right yet working on it pls ignore that ;o) when it brings up the interior page...it doesn't show the .selected...all the tabs are gray...but

But if you click a gray tab from this page...when it opens...it DOES recognize the active tab and applies the formatting correctly.

Any idea why the first click does not apply the formatting but all subsequent clicks will?

What did I do wrong or not take into account?

Thanks for all of your help!

5 Jul 25, 2009 21:56

couldnt get what you are getting at.. could you please provide a screenshot or sth

6 Jul 26, 2009 00:20

This is the opening page of the site lebzzzzz.com. Looks right. These tabs are populated with the Public Blog List inside a Sideblog.
http://lebzzzzz.com/images/HomePageImage.PNG

Now...click the News tab. You go to the News blog and see the image below. Notice the tabs are all gray. These tabs are populated with the categories of the respective blog inside a sideblog. The post shown will always be the most recent post from the selected blog. Since each post has a corresponding category designation...I'd like the tab to reflect the category of the shown post. This will change as new posts are added.
http://lebzzzzz.com/images/AfterSelectingNewsButton.PNG

From the NEWS page select the World News tab. This directs you to the World News category page (we are remaining in the News blog). See the image below. Notice that NOW the correct selected style has been applied... As long as we don't go to another blog the styling will work properly.
http://lebzzzzz.com/images/AfterSelectingWorldNews.PNG

I'm sooooo confused ;o)

This last image is what you see if you select any other link to a blog post from anywhere inside the site. Again all gray. Since we're not using the menu tabs there may be nothing we can do about this. But is there anyway to set a default state to show the correct styling? I may be asking too much ;o)
http://lebzzzzz.com/images/AfterSelectingPostFromHomePageSidebar.PNG

THANKS so much for all of your help. Sue

7 Jul 26, 2009 17:00

All right.. so, when you click on an another blog, it's normal that all the tabs will be gray as you havent clicked a category yet and non is active..

and for the latter about displaying the active tab that contains the post's category, that's more confusing, as you may have posts from other categories in the front page, so it shouldnt be easily possible either.

8 Jul 26, 2009 19:24

Yes...see where you're going...but since each post has a category assigned in the blog that's showing...I guess I was hoping the computer would show it's category tab. But at that point it wouldn't be selected would it?

Is there some other sort of designation...like actual?

Someway for the computer to look for the category of a specific post and select the category itself?

I think I'm wishing on a star but man would it be cool to figure out a way to do that.


Form is loading...