Right now with Drigg, when a user clicks on one of the popular/upcoming/archived tabs.....the tabs rearrange in order with the active one moving to the left.
This is bad from a user design perspective. It's confusing to the user. The tabs should remain in place.
I understand that the active tab is really just displaying the page title, but it should work like the Drigg order links do, and each should be a distinct link that preserves the order of the tabs.
I've been showing a dev site to some designers and users and they keep getting confused by this.
Comments
Comment #1
mercmobily commentedHi,
are you able to send a patch in?
I agree, I'd prefer them to stay where they are.
Does everybody else agree? And do you have patches for this? I know zip about CSS :-D
(Does this apply to the 4plus theme as well?)
Bye,
Merc.
Comment #2
bflora commentedWell, you wrote the thing. It would take me days to decipher what you did by myself. So let's take a look at the code and see if there's a fix.
So that top bar is generated by a call to a function called drigg_ui_type_menu()
Here's the code for that function from the drigg_ui module file.
My suspicion is that somewhere in here, you're telling the function not to print the active link but only the inactive ones (if you're on the popular page, only print upcoming and archived).
So if we can find the bit of code that's "killing" the active link, maybe that will work?
Ok. So this first part sets some defaults for the two filter sets for the home page. Cool. Doesn't look like this is the code we need to change.
This doesn't look like it either.
Nor this.
*** Could this bit above be the thing that's stopping the function from outputting the active link? ***
Here's the rest of the function.
Did I find the right spot in the function? If so, what do we do to it now?
Comment #3
mercmobily commentedHi,
The solution is purely in the CSS.
There is absolutely nothing that Drigg itself does to change the order. It's all done through castading style sheets. That why I asked somebody else here... if it were a cote thing, I'd know the line number to change without even opening up the file :-D
Merc.
Comment #4
bflora commentedAhhh. Ok. I see where the break is between what we're saying.
So here's how it works right now.
On the home page in the view type bar you have 3 elements (if archived view is enabled, 2 if not)
Popular Upcoming Archived
Picture those as tabs, with the popular one being the active tab.
Now, currently, the active tab isn't really a tab.....it's a static title (an H1 in the Drigg theme) while the other two are actual links.
So you've got: H1(Popular) link(Upcoming) link(Archived)
When you click one of the links (Upcoming, for example), the link you clicked on shows up as the page title tab and you get:
H1(Upcoming) Link(Popular) llink(Archived)
So that's what's happening now........
The problem isn't just using CSS to get the H1 tab to stay in position.
The problem is that we hare
H1 link link
When we should have
link link link
This way the H1, the page title can be used someplace else (like on Digg, where you see it above the content) and we can have actual fixed tabs for the view type controls.
Now I know this is possible to do because the controls for the time filter (drigg_order) are: link link link link link
So that means its possible to set up the Drigg views controls that way, too.
What I tried to do in my post above was outline where I thought the code was "holding back" the active link so that it wasn't duplicated by the h1 tab. Right now, when I click the upcoming link, the "upcoming" link disappears. That's gotta be by design so that it won't duplicate the h1 element. What we need to do is stop it from disappearing so we can theme it as a tab.
So I'm not proposing a CSS fix to the theme. I'm proposing that we remove the Page title/H1 from the view controls and replace it with an actual working link, just like with the time controls and the category controls.
Comment #5
mercmobily commentedHi,
I will ask the graphic designer.
Merc.
Comment #6
bflora commentedCool.
The Problem:
When you click on one of the order links ("top24h" for example) all of those links are there on the next page.
But when you click on one of the view type links, the one you just clicked on isn't there anymore. Something happened to it. I'm guessing this is happening somewhere in the function itself.
Comment #7
mercmobily commentedHi,
Please:
* Be clear. I have just _no_ idea what your last message meant. None. If oyu discover a bug, please give us a *clear* way to reproduce it
* Be concise
* Do not add here anything that is not _striclty_ relevant to this bug. If you have another problem, please open a new bug request.
Bye!
Merc.
Comment #8
bflora commentedI was just summing it up again for you. same issue. Feel free to ignore the last one. It was an attempt at a concise version of my previous message.
Comment #9
mercmobily commentedHi,
This is fixed in CVS.
Bye,
Merc.
Comment #10
bflora commentedGreat work on this one. I now see what was happening. ha! It was just a "display:none" in the CSS. Weird. Thanks so much for making the change. Much more useable now.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.