News:

Wondering if this will always be free?  See why free is better.

Main Menu

[Tip] Drop Down Menu Feature of Dilber MC Theme

Started by Hoochie Coochie Man, August 04, 2008, 06:14:12 AM

Previous topic - Next topic

Sudhakar Arjunan

Quote from: Hoochie Coochie Man on August 07, 2008, 08:51:45 AM
@asudhakar
Well then sorry about that.
Try to say your users that using IE7


Ok Thank you for this great Help HCM.
I have already wrote another issue in my forum.

I got my Forum Name changed at the index.

Say my fourm name is IT Acumens.
Earlier output - IT Acumens - Board Name - Post Name
Current output - Forum - Board Name - Post Name

Even tell me if its not relevant to this post.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Adish - (F.L.A.M.E.R)

how do I increase the spacing between these main nav text.. My user is facing some prob in Firefox..

I got it all right but he got it different

see the image please..


Hoochie Coochie Man

@asudhakar
it is different issue. It's not about with dropdownmenu

@F.L.A.M.E.R
Refresh your browser with F5
İnadına SMF 1.1.X

Adish - (F.L.A.M.E.R)

#63
how shall i increase spacing between these buttons ? and how shall i align the text to the left in the drop down ?

Thank you for your quick replies.

EDIT:-
My friend is now able to see it properly was the cookie problem.

And also how can I add in breaks line lines between the text in the drop down ?

Thank you.

Hoochie Coochie Man

Quote from: F.L.A.M.E.R on August 07, 2008, 10:09:26 AM
how shall i increase spacing between these buttons ? and how shall i align the text to the left in the drop down ?


Quotediv#menu a.level1 span, div#menu span.level1 span {
   padding: 7px 20px 0px 20px;
}

Red texts are your spaces between buttons.




you can align the text to the left like...

index.template.php
Find:
<tr align="center">
', template_menu(), '
</tr>


Replace:
<tr>
', template_menu(), '
</tr>

İnadına SMF 1.1.X

dannbass

I think the issue with IE6 is the way IE6 handles the dropdowns, it needs a little of java to work, here is an old example, and that's what I use in my forum http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-horizontal/ hope it helps a bit.

Thank you for the great contribution Hoochie Coochie Man!!

Sudhakar Arjunan

Quote from: ♫ ♪♩♬♭♮ ♯ on August 09, 2008, 12:08:06 AM
I think the issue with IE6 is the way IE6 handles the dropdowns, it needs a little of java to work, here is an old example, and that's what I use in my forum http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-horizontal/ hope it helps a bit.

Thank you for the great contribution Hoochie Coochie Man!!

Hi thanks for the good share. Hope HCM will look after and shows as the code to be used for ie6.

Thank you.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Antechinus

Quote from: ♫ ♪♩♬♭♮ ♯ on August 09, 2008, 12:08:06 AM
I think the issue with IE6 is the way IE6 handles the dropdowns, it needs a little of java to work, here is an old example, and that's what I use in my forum http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-horizontal/ hope it helps a bit.

Thank you for the great contribution Hoochie Coochie Man!!
I think you're right here. It seems, from what I've been using on another theme, that IE6 doesn't deal with css-based drops. I think this doesn't really matter as long as critical functions for the general membership are available in the toolbar. If they want the extras it's a good incentive for them to upgrade their browser. IE7 is a free upgrade and Firefox, Sea Monkey and K-Meleon have always been free and are all better than any Microsoft product. There's no real excuse for using IE6 any more (apart from ignorance).

Antechinus

Of course the problem with using javascript menus is that anyone running through a script blocker (and they're quite common these days because of security concerns) wont be able to use the drop menus anyway.

I think in the near future people using script blockers will outnumber people using IE6 so personally I'd prefer to stay with css menus.

Sudhakar Arjunan

Ok, here i go.
Thats good, we know the will not work in ie6.

But our Guest doesn't know about it.

could we make some warning if once they try to open the menu.

It should say or show, the menu feature will not work in IE 6 browser.

Just a try i made.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Hoochie Coochie Man

Quote from: ♫ ♪♩♬♭♮ ♯ on August 09, 2008, 12:08:06 AM
I think the issue with IE6 is the way IE6 handles the dropdowns, it needs a little of java to work, here is an old example, and that's what I use in my forum http://www.dynamicdrive.com/style/csslibrary/item/suckertree-menu-horizontal/ hope it helps a bit.

Thank you for the great contribution Hoochie Coochie Man!!

Thanks @♫ ♪♩♬♭♮ ♯
But I have only Firefox and IE7 on my pc. :( This menu working great with them.
So.. I couldn't test it and couldn't make code changes on IE6. Please somebody take a look at that menu's codes and make capable of work with IE6.

Thanks..
İnadına SMF 1.1.X

Antechinus

I'm not sure how you'd go about it. I'm using a menu based on one by CSSMenumaker.com and Deprecated tested it for me on IE6 and.........................no go.
Standard toolbar buttons are fine but no drops. So I'll just keep the basics in the toolbar (as usual) and use the drops for members smart enough to get a decent browser. IE7 seems fine.

On the other hand apparently the menu from GRC will function with just about any browser and the code is open source. Might be worth taking a look at it.

Antechinus

After messing with these menus I'm installing a second OS on my external and am going to run IE6 and FF2 on that for testing. I'll see what I can come up with once I get the installation done. I've just got Safari too. Can't be too careful.

Sudhakar Arjunan

Nice Antechinus.

And HCM , i have got one doubt.

If i want to move the memberlist main menu inside a menu like sub menu. How that could be possible.

Because the memberlist has the allowed list at the top using if condition.

I want it be inside a menu, like Other menu

And Memberlist and Search members should be under it and followed by other drop downs.

Code i could see here is like this,



                  // the [member] list button
                  if ($context['allow_memberlist'])
                  echo '
                                  <li class="level1 parent"><a href="', $scripturl, '?action=mlist" class="level1 parent"><span><span class="title">' , $txt[331] , '</span></span></a>
                                  <ul class="level2">
                      <li class="level2"><a href="', $scripturl, '?action=mlist" class="level2"><span>' , $txt['hcm_viewmembers'] , '</span></a></li>
                      <li class="level2"><a href="', $scripturl, '?action=mlist;sa=search" class="level2"><span>' , $txt['hcm_searchmembers'] , '</span></a></li>
                  </ul></li>';


I want this above code should work like a sub menu.

Thanks in Advance.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Hoochie Coochie Man

Quote from: asudhakar on August 15, 2008, 05:26:52 PM
Nice Antechinus.

And HCM , i have got one doubt.

If i want to move the memberlist main menu inside a menu like sub menu. How that could be possible.

Because the memberlist has the allowed list at the top using if condition.

I want it be inside a menu, like Other menu

And Memberlist and Search members should be under it and followed by other drop downs.


What do you want to do exactly? I don't understand.
İnadına SMF 1.1.X

Sudhakar Arjunan

Quote from: Hoochie Coochie Man on August 16, 2008, 01:22:36 AM

What do you want to do exactly? I don't understand.

Memberlist Menu -> Drop down of other menu - Memberlist Menu should be under other menu.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Hoochie Coochie Man

Quote from: asudhakar on August 16, 2008, 03:36:31 AM
Quote from: Hoochie Coochie Man on August 16, 2008, 01:22:36 AM

What do you want to do exactly? I don't understand.

Memberlist Menu -> Drop down of other menu - Memberlist Menu should be under other menu.

Here is that I don't understand part: What is other menu?
İnadına SMF 1.1.X

Antechinus

HCM, if you want to run IE6 with Vista for testing purposes this might be good.
It looks like they have a work around for Vista. I've tried their installer on XP and it seems fine.

http://tredosoft.com/Multiple_IE


Sudhakar Arjunan

I have a new menu called "Other Menu (or) New Menu 1"

Now i want to move the memberlist menu inside the new menu.

Check out the picture.



I have checked the coding used for memberlist, it uses some if statement to verify whether the guest or user.


                  // the [member] list button
                  if ($context['allow_memberlist'])
                  echo '
                                  <li class="level1 parent"><a href="', $scripturl, '?action=mlist" class="level1 parent"><span><span class="title">' , $txt[331] , '</span></span></a>
                                  <ul class="level2">
                      <li class="level2"><a href="', $scripturl, '?action=mlist" class="level2"><span>' , $txt['hcm_viewmembers'] , '</span></a></li>
                      <li class="level2"><a href="', $scripturl, '?action=mlist;sa=search" class="level2"><span>' , $txt['hcm_searchmembers'] , '</span></a></li>
                  </ul></li>';


So i have a doubt, whether to use the Same code for drop down or a new code as to be written.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Adish - (F.L.A.M.E.R)

Now i got lost in the Arcade button. Original Normal button:-
    echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a>
</td>' , $current_action == 'arcade' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



Changes I did to it:-
                  // How about the [arcade] button?
                  if ($context['browser']['is_ie4'])
                  echo '
                                  <li class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=arcade" class="level1"><span><span class="maintab_">' , $txt['arcade'] , '</span></span></a></li>';




The button doesnt appear there in the navigation. Can you please tell me the edits. Thank you.

Advertisement: