Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: smp420 on May 15, 2010, 12:57:45 PM

Title: Custom Top Menu
Post by: smp420 on May 15, 2010, 12:57:45 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2564)

(https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6EPMFZ8HL27GL)


Replace your SMF logo with a custom menu similar to this site. The settings for this mod are in Administration Center » Modification Settings » Top Menu. To disable a tab simply leave it blank. You can also have a tab open in a new page. If you want to see a demo just scroll up this mod adds the same menu as this site but without the dropdowns (dropdowns may be added later). This mod will most likely only install in curve variants.

Current languages supported
*English
*Russian

**Please attach translations in the mod support topic**

If you have any problems please use the support topic respectfully.


**Changelog**
Version 1.4
*Updated for 2.0 RC4 and 2.0.11

Version 1.3
*Added the ability to open tabs in a new page.

Version 1.2
*Added support for Russian language

Version 1.1
*Fixed all tabs being active

Version 1.0
*Initial release
Title: Re: Custom Top Menu
Post by: hitboy on May 15, 2010, 03:22:17 PM
Going to try this mod out thanks
Title: Re: Custom Top Menu
Post by: hitboy on May 15, 2010, 03:37:54 PM
I am getting this error message

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Title: Re: Custom Top Menu
Post by: rd on May 15, 2010, 03:46:54 PM
Congratz smp!

Anyway, hitboy what mods do you have installed? If you have a custom theme that is not curve varient then this won't work or if you have a conflicting mod.
Title: Re: Custom Top Menu
Post by: hitboy on May 15, 2010, 04:29:08 PM
I'm using the curve theme as far as mods I do really have that many
Title: Re: Custom Top Menu
Post by: Cutter65 on May 15, 2010, 04:37:01 PM
Thanks for this very useful mod!  8)

Works great!  :)

Cutter

Title: Re: Custom Top Menu
Post by: DoctorMalboro on May 15, 2010, 04:48:13 PM
Excellent mod, congrats!! ;)
Title: Re: Custom Top Menu
Post by: TheListener on May 15, 2010, 06:19:03 PM
This looks interesting.

Would someone use it care to show the mod in action?
Title: Re: Custom Top Menu
Post by: WiredStorm on May 15, 2010, 06:23:39 PM
This is quite cool ;)

Maybe in a future verison you could add a drop down menu system like this site has :D

Good job xD
Title: Re: Custom Top Menu
Post by: Afro on May 15, 2010, 06:45:16 PM
Looks tidy. good one.
Title: Re: Custom Top Menu
Post by: TheListener on May 15, 2010, 06:59:00 PM
Afro now I have seen the mod in action on ya forum I may have to find a use for it.

;D
Title: Re: Custom Top Menu
Post by: Liam. on May 15, 2010, 07:41:13 PM
IMO, it looks ugly having them all as active tabs... Wouldn't it look visually better if none of them were active, except on hover-over?
Title: Re: Custom Top Menu
Post by: TheListener on May 15, 2010, 07:47:04 PM
Quote from: Liam. on May 15, 2010, 07:41:13 PM
IMO, it looks ugly having them all as active tabs... Wouldn't it look visually better if none of them were active, except on hover-over?

Fusspot.

;D

Maybe if the colour of the tab was a lighter blue.

Depends on the forum theme.
Title: Re: Custom Top Menu
Post by: Afro on May 15, 2010, 09:02:40 PM
Quote from: Brack1 on May 15, 2010, 06:59:00 PM
Afro now I have seen the mod in action on ya forum I may have to find a use for it.

;D
yea, it looks good and tidy to me. i had those links there before but i added them through current theme settings.

Quote from: Liam. on May 15, 2010, 07:41:13 PM
IMO, it looks ugly having them all as active tabs... Wouldn't it look visually better if none of them were active, except on hover-over?

nice point, lets see if he could change that in the next version.
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 12:19:50 AM
Quote from: hitboy on May 15, 2010, 03:37:54 PM
I am getting this error message

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Attach the file you got that error on.

Quote from: God of on May 15, 2010, 06:23:39 PM
This is quite cool ;)

Maybe in a future verison you could add a drop down menu system like this site has :D

Good job xD
The next version will have dropdowns for sure I will  get tht out soon.

Quote from: Liam. on May 15, 2010, 07:41:13 PM
IMO, it looks ugly having them all as active tabs... Wouldn't it look visually better if none of them were active, except on hover-over?
That is one thing I was debating, on how it should be it could be changed easily in index.template.php, if enough people want it like that I will change it.
Title: Re: Custom Top Menu
Post by: akbora on May 16, 2010, 01:17:17 AM
This is Very Very good work. Excellent mod really...

Because I had requested that like your mod before at mod request topic.

http://www.simplemachines.org/community/index.php?topic=363108.msg2481881#msg2481881
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 01:27:29 AM
Thanks for all the kind words here.
Title: Re: Custom Top Menu
Post by: Afro on May 16, 2010, 05:23:50 AM
QuoteThat is one thing I was debating, on how it should be it could be changed easily in index.template.php, if enough people want it like that I will change it.

Well IMHO, You dont need so many votes to change it. typical smf buttons  are not active until clicked or hovered.
Title: Re: Custom Top Menu
Post by: rd on May 16, 2010, 05:58:52 AM
Yo, did you get my PM?

Anyways awesome mod!
Title: Re: Custom Top Menu
Post by: ~DS~ on May 16, 2010, 12:44:02 PM
This did a fine job on my forum.
http://www.simplemachines.org/community/index.php?topic=360100.0
Title: Re: Custom Top Menu
Post by: C4G-TK on May 16, 2010, 12:44:43 PM
Sweet!

You know someone is going to tell you that they need a 6th tab or 7th tab, right?! (like they did with the Dozen Pages Mod because 12 or 13 just isn't enough! LOL.)   :o   Just a suggestion, but you might want to add a HOW TO ADD ANOTHER TAB to the OP at some point in order to cut down on the question being asked over and over.

Very cool mod! 8)
Title: Re: Custom Top Menu
Post by: Liam. on May 16, 2010, 12:48:26 PM
Quote from: C4G-TK on May 16, 2010, 12:44:43 PM
Sweet!

You know someone is going to tell you that they need a 6th tab or 7th tab, right?! (like they did with the Dozen Pages Mod because 12 or 13 just isn't enough! LOL.)   :o   Just a suggestion, but you might want to add a HOW TO ADD ANOTHER TAB to the OP at some point in order to cut down on the question being asked over and over.

Very cool mod! 8)

The thing is, that if it goes much over five, it goes down onto another line on smaller monitors - and generally doesn't look good.
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 12:59:06 PM
If you look through look through the mod changes it is easy to see how too add more tabs.
Title: Re: Custom Top Menu
Post by: Afro on May 16, 2010, 01:11:11 PM
Quote from: smp420 on May 16, 2010, 12:59:06 PM
If you look through look through the mod changes it is easy to see how too add more tabs.

Not for everybody. I have already explored that option and got another tab added. Just like the OP said, It broke down to another line.
Title: Re: Custom Top Menu
Post by: akbora on May 16, 2010, 01:56:29 PM
Only problem button texts are 'CAPITAL' I want it like that  'Capital' how can I do it?
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 02:01:49 PM
I uploaded a new version that fixes the allcaps and I changed the buttons so they are only active on hover.
Title: Re: Custom Top Menu
Post by: Liam. on May 16, 2010, 02:11:38 PM
Quote from: Afro on May 16, 2010, 01:11:11 PM
Quote from: smp420 on May 16, 2010, 12:59:06 PM
If you look through look through the mod changes it is easy to see how too add more tabs.

Not for everybody. I have already explored that option and got another tab added. Just like the OP said, It broke down to another line.

Which looks terrible.

I dare say there will be more options in the nearby future, but I think five is enough IMHO.

And good fix - I didn't even notice that...
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 02:15:01 PM
Really if you want more than 5 you are better off looking here http://www.simplemachines.org/community/index.php?topic=360100.0
I may not even add dropdowns in the future as there will be way too many options in the admin panel.
Title: Re: Custom Top Menu
Post by: akbora on May 16, 2010, 02:17:30 PM
Yes. I've changed it, very very looks better than previous...

Thanks a lot...
Title: Re: Custom Top Menu
Post by: Liam. on May 16, 2010, 02:31:34 PM
Quote from: smp420 on May 16, 2010, 02:15:01 PM
Really if you want more than 5 you are better off looking here http://www.simplemachines.org/community/index.php?topic=360100.0
I may not even add dropdowns in the future as there will be way too many options in the admin panel.

There will NOT be too many options in the Admin CP if you add dropdowns. Sure with the current setting layout you have, it'd be confusing, but it wouldn't be too many options...
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 02:39:13 PM
Well confusing is what I meant, there are 2 input boxes per tab with 5 tabs, if I add 4 dropdowns per tab theres another 40 input boxes for a total of 50.
Title: Re: Custom Top Menu
Post by: Liam. on May 16, 2010, 02:46:49 PM
Could have a dropdown-type thing so that if there are any sub-menus, it'd dropdown to show them.

I guess I didn't explain that well, but it would work...
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 02:51:43 PM
I might just make a new page for every tab.
Title: Re: Custom Top Menu
Post by: akbora on May 16, 2010, 03:15:50 PM
Himm, dropdown menu will be better than this sure...
Title: Re: Custom Top Menu
Post by: Afro on May 16, 2010, 03:37:10 PM
Listen smp. People are known here to try to push mod authors to customize things for them.
Ypur mod is already looking good.
If anybody wants a custom edit , they should start learning how to do that.
Things like that are chasing good members of this forum away.
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 03:42:07 PM
Yeah I know about that, too many good mod authors are gone now, I was already planning on doing dropdowns though I may or may not do it.
Thanks for all the comments.
Title: Re: Custom Top Menu
Post by: C4G-TK on May 16, 2010, 04:12:31 PM
@smp
I agree that the mod looks great.  I only suggested that you put a HOW TO in the OP to add other tabs since it was compared to the menu that is on SMF currently.  When I look above on SMF, I see that there are 9 tabs (maybe more for others depending on permissions) and was trying to help you avoid more questions in the future and was in no way trying to get you to do anything for my benefit.  If I shrink my screen size down, the menu doesn't form a new line above, so didn't realize your mod worked differently.  (I only need it to use 4 tabs with your mod, so wouldn't need that functionality anyway.)  Please don't think I was trying to get you to change anything.  I was having one of those pre-emptive moments where I could imagine what questions you were going to receive.  Like I said, it is a sweet mod and I like it much.
Title: Re: Custom Top Menu
Post by: Liam. on May 16, 2010, 04:15:23 PM
I can do it myself, so I'm not moaning to try and get it customized for myself - as Afro truely said, many people do.

However, adding dropdowns is a pretty basic and widely-used feature so I think it should be in there somewhere along the timeline.




C4G-TK, maybe a link to the Tip/Trick would be better. I think that this site uses a slightly different method, so it wouldn't drop down onto another line, but when I tried it, it did...
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 04:31:28 PM
The link to the tip trick is already posted here twice. I don't know about adding more tabs making a new line but as this mod only has 5 tabs this isn't the place to discuss that anyways.
Title: Re: Custom Top Menu
Post by: Afro on May 16, 2010, 06:19:42 PM
CG4 is actually right. Adding a "how to' will save you a lot of work unless you are ready to answer a lot of questions.
So i would add HOW TO if i were you.
A lot of inexperienced users troop in here daily and some of them cant locate a source or template file.
So make things easier for everyone by adding a HOW TO if you can.
Title: Re: Custom Top Menu
Post by: Liam. on May 16, 2010, 06:28:46 PM
Quote from: Afro on May 16, 2010, 06:19:42 PM
CG4 is actually right. Adding a "how to' will save you a lot of work unless you are ready to answer a lot of questions.
So i would add HOW TO if i were you.
A lot of inexperienced users troop in here daily and some of them cant locate a source or template file.
So make things easier for everyone by adding a HOW TO if you can.

Which is why the tutorial is linked to - which explains everything in detail...
Title: Re: Custom Top Menu
Post by: smp420 on May 16, 2010, 10:33:35 PM
As Liam said the how to was already linked in this topic.
Title: Re: Custom Top Menu
Post by: Afro on May 17, 2010, 05:45:56 AM
We are talking about linking the "how to " in the first post.
I believe you dont expect people to continue reading all posts until they find the link.
Title: Re: Custom Top Menu
Post by: Bugo on May 17, 2010, 06:05:18 AM
Very useful mod :)

Russian translation
Title: Re: Custom Top Menu
Post by: smp420 on May 18, 2010, 12:36:50 AM
Thanks for the translations I added them and uploaded version 1.2, the only change in version 1.2 is the Russian translation. If anyone else has any translations please post them.
Title: Re: Custom Top Menu
Post by: kaib0rg on May 19, 2010, 03:14:17 PM
really sweet mod.  is this only working on the default theme though?  i installed it and it's not showing up on pixelwood. :-/
Title: Re: Custom Top Menu
Post by: Liam. on May 19, 2010, 03:19:38 PM
Quote from: kaib0rg on May 19, 2010, 03:14:17 PM
really sweet mod.  is this only working on the default theme though?  i installed it and it's not showing up on pixelwood. :-/

That sums it all up. This is only actually for Curve and Curve Variations, and probably won't work with any other themes...
Title: Re: Custom Top Menu
Post by: kaib0rg on May 19, 2010, 03:32:33 PM
thanks :)
Title: Re: Custom Top Menu
Post by: ScopeXL on May 20, 2010, 02:28:37 AM
If your looking for simple use of this feature (one-level links) then this mod is great. If however your site requires a dropdown (2-3 level) or additional links, then refer to my tutorial in Tips/Tricks board (link below). It's an exact step by step of how to accomplish this manually. I'm always available to offer help with this tip.

@smp420: great job implementing this into a mod. I suggest looking at my tutorials CSS edits to make it so the menu links don't wrap onto another line if the users browser resolution is smaller than suggested. Otherwise nicely done.

Here's the link to the tutorial for those needing the dropdown effect and/or additional links (this is a manual edit, not a mod)
http://www.simplemachines.org/community/index.php?topic=360100.0
Title: Re: Custom Top Menu
Post by: Bruno36 on May 20, 2010, 04:19:58 AM
Hello!

I add 5 new link.
The problem you are invisible in the menu
Title: Re: Custom Top Menu
Post by: Liam. on May 20, 2010, 12:07:19 PM
Quote from: Bruno36 on May 20, 2010, 04:19:58 AM
Hello!

I add 5 new link.
The problem you are invisible in the menu

What exactly did you add to the mod? You'd have to add and match the code in index.template.php and ManageSettings.php...
Title: Re: Custom Top Menu
Post by: Bruno36 on May 20, 2010, 01:38:59 PM
ManageSettings.php [/ b]

/ / La section du haut du menu admin.
Fonction ModifyCustomTopMenu ($ return_config = false)
(
txt global $, $ context ScriptUrl, $, les parametres $, SC, modSettings $;

/ / Récupère Toutes les zones de texte.
config_vars tableau $ = (
array ('texte', 'tab_url1 »),
array ('texte', 'tab_title1 »),
array ('texte', 'tab_url2 »),
array ('texte', 'tab_title2 »),
array ('texte', 'tab_url3 »),
array ('texte', 'tab_title3 »),
array ('texte', 'tab_url4 »),
array ('texte', 'tab_title4 »),
array ('texte', 'tab_url5 »),
array ('texte', 'tab_title5 »),
array ('texte', 'tab_url6 »),
array ('texte', 'tab_title6 »),
array ('texte', 'tab_url7 »),
array ('texte', 'tab_title7 »),
array ('texte', 'tab_url8 »),
array ('texte', 'tab_title8 »),
array ('texte', 'tab_url9 »),
array ('texte', 'tab_title9 »),
array ('texte', 'tab_url10 »),
array ('texte', 'tab_title10 »),
);
if ($ return_config)
config_vars return $;

Contexte post_url $ ['] = $ ScriptUrl. ? Action = admin; zone modsettings =; SA = Sauver custom_menu;
] Settings_title Contexte [$ '= $ txt custom_menu_title ['];

/ / Etes-vous économiseur?
if (isset ($ _GET ['save']))
(
checkSession ();

saveDBSettings (config_vars $);

redirectexit ("action = admin; zone modsettings =; SA = custom_menu ');

)

prepareDBSettingContext (config_vars $);

)


Modifications.english-utf8.php

//Custom Menu Strings Start Here
$txt['custom_menu_title'] = 'Top Menu';
$txt['tab_url1'] = '1st tab url';
$txt['tab_title1'] = '1st tab name';
$txt['tab_url2'] = '2nd tab url';
$txt['tab_title2'] = '2nd tab name';
$txt['tab_url3'] = '3rd tab url';
$txt['tab_title3'] = '3rd tab name';
$txt['tab_url4'] = '4th tab url';
$txt['tab_title4'] = '4th tab name';
$txt['tab_url5'] = '5th tab url';
$txt['tab_title5'] = '5th tab name';
$txt['tab_url6'] = '6st tab url';
$txt['tab_title6'] = '6st tab name';
$txt['tab_url7'] = '7nd tab url';
$txt['tab_title7'] = '7nd tab name';
$txt['tab_url8'] = '8rd tab url';
$txt['tab_title8'] = '8rd tab name';
$txt['tab_url9'] = '9th tab url';
$txt['tab_title9'] = '9th tab name';
$txt['tab_url10'] = '10th tab url';
$txt['tab_title10'] = '10th tab name';
//Custom Menu Strings End Here
Title: Re: Custom Top Menu
Post by: smp420 on May 20, 2010, 05:29:34 PM
If you want 10 tabs to show find this line in index.template.php
   for ($i=1; $i<6; $i++)

Change to
   for ($i=1; $i<11; $i++)
Title: Re: Custom Top Menu
Post by: Bruno36 on May 21, 2010, 03:00:50 AM
Thank you very much it works  :D
Title: Re: Custom Top Menu
Post by: Bugo on May 21, 2010, 03:31:20 AM
Quote from: smp420 on May 20, 2010, 05:29:34 PM
If you want 10 tabs to show find this line in index.template.php
   for ($i=1; $i<6; $i++)

Change to
   for ($i=1; $i<11; $i++)
Maybe add the ability to create unlimited number ($n) of buttons in a future version? :)
Title: Re: Custom Top Menu
Post by: Afro on May 21, 2010, 05:53:00 AM
^^ Lol.
Title: Re: Custom Top Menu
Post by: smp420 on May 21, 2010, 05:35:53 PM
Quote from: Bugo on May 21, 2010, 03:31:20 AM
Quote from: smp420 on May 20, 2010, 05:29:34 PM
If you want 10 tabs to show find this line in index.template.php
   for ($i=1; $i<6; $i++)

Change to
   for ($i=1; $i<11; $i++)
Maybe add the ability to create unlimited number ($n) of buttons in a future version? :)
Well as the mod isn't meant to have unlimited tabs I highly doubt that will happen.
Title: Re: Custom Top Menu
Post by: frenki on May 23, 2010, 09:33:11 AM
I am gettin error in admin.php file during installation on RC2.0. Can you make it compatible with 2.0RC ?

// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.


'custom_menu' => array($txt['custom_menu_title']),


Title: Re: Custom Top Menu
Post by: Afro on May 23, 2010, 09:39:50 AM
2.0RC WHAT ?
Title: Re: Custom Top Menu
Post by: smp420 on May 23, 2010, 01:11:51 PM
If your talking about anything other than RC3 I will not make the mod compatible with an older version of SMF please update there has been many security and bug fixes in RC3.
Title: Re: Custom Top Menu
Post by: winky100 on May 23, 2010, 08:42:10 PM
I like you mod. My font is smaller than yours. How can I change the font of the menu items?
Title: Re: Custom Top Menu
Post by: smp420 on May 24, 2010, 12:35:37 AM
Find this line in index.template.php
   // The code for the menu you installed dont you remember it?
   echo '
         <div id="site_menu" class="align_right" style="padding-top:9px;">


Change to
   // The code for the menu you installed dont you remember it?
   echo '
         <div id="site_menu" class="align_right" style="padding-top:9px; font-size:14px;">

change 14 px to make it bigger or smaller.
Title: Re: Custom Top Menu
Post by: ukhalik2 on May 30, 2010, 06:00:35 AM
(http://h.imagehost.org/0323/sfdasdfdsa.jpg)
i installed this mod successfully,
but text background color is not showing up as its in demo pic.
Title: Re: Custom Top Menu
Post by: smp420 on June 04, 2010, 01:46:49 AM
Well the screenshots are from before I updated the mod as everyone wanted me to change the way it was. If anyone has that version they are welcome to share it.
Title: Re: Custom Top Menu
Post by: ukhalik2 on June 04, 2010, 03:30:43 AM
Quote from: smp420 on June 04, 2010, 01:46:49 AM
Well the screenshots are from before I updated the mod as everyone wanted me to change the way it was. If anyone has that version they are welcome to share it.
there must be a background of the links :(
Title: Re: Custom Top Menu
Post by: Afro on June 04, 2010, 04:02:29 AM
Which code block controls this top menu in the index.css
Title: Re: Custom Top Menu
Post by: smp420 on June 04, 2010, 09:50:32 AM
Quote from: ukhalik2 on June 04, 2010, 03:30:43 AM
Quote from: smp420 on June 04, 2010, 01:46:49 AM
Well the screenshots are from before I updated the mod as everyone wanted me to change the way it was. If anyone has that version they are welcome to share it.
there must be a background of the links :(

The way it is now there is no background until you hover over it.

Quote from: Afro on June 04, 2010, 04:02:29 AM
Which code block controls this top menu in the index.css
What are you trying to do, it uses the same styles as the menu.
Title: Re: Custom Top Menu
Post by: ukhalik2 on June 04, 2010, 10:08:09 AM
okay, tell me. which file to edit to put background colour in links.
Title: Re: Custom Top Menu
Post by: Afro on June 04, 2010, 02:35:38 PM
Quote from: Afro on June 04, 2010, 04:02:29 AM
Which code block controls this top menu in the index.css
What are you trying to do, it uses the same styles as the menu.
[/quote]

I m on a new theme with custom css folder. the facebook theme.
the theme header swallowed the links, so i need to change the colours.
Title: Re: Custom Top Menu
Post by: smp420 on June 05, 2010, 06:16:22 AM
Well I am on vacation right now but when I get back I will get it working on the facebook theme.
Title: Re: Custom Top Menu
Post by: Afro on June 05, 2010, 09:11:31 AM
Ok mate, have fun.
Title: Re: Custom Top Menu
Post by: MATTEK on June 06, 2010, 07:40:43 PM
Test failed on install

Quote2.     Execute Modification     .Sources/Admin.php     Test failed
      1.    Add After    .Sources/Admin.php    Test failed
Title: Re: Custom Top Menu
Post by: TheListener on June 06, 2010, 07:44:00 PM
As with all mods these files will have to be manually edited using the parser.
Title: Re: Custom Top Menu
Post by: MATTEK on June 06, 2010, 07:50:48 PM
Quote from: Brack1 on June 06, 2010, 07:44:00 PM
As with all mods these files will have to be manually edited using the parser.

parser? lol What's the parser?

Title: Re: Custom Top Menu
Post by: TheListener on June 06, 2010, 08:27:45 PM
Where you download the mod is a box which says manual instructions for install.

Next to that is the parse button.

THIS IS ON ALL MODS
Title: Re: Custom Top Menu
Post by: MATTEK on June 06, 2010, 11:11:26 PM
That's new to me. Thank you, though.
Title: Re: Custom Top Menu
Post by: MATTEK on June 08, 2010, 01:25:07 AM
I messed up. I tried the manual parse install and now I have a major display issues. www.the-ush.com. Check it out. I made copies of each of the files the mod edits incase something like this happens, but when I re-uploaded them the issues remained.

All of my text is oversized and I have a logo above my entire forum that I do not want there.
Title: Re: Custom Top Menu
Post by: smp420 on June 08, 2010, 01:58:19 AM
I don't know how you got another banner there that isn't a problem with this mod but remove
       <div class="header" align="center">
     <img src="http://www.the-ush.com/Themes/default/images/tuhs5700.png" alt="" />
   </div>
from index.template.php
Title: Re: Custom Top Menu
Post by: MATTEK on June 08, 2010, 02:28:02 AM
That fixes the banner thing but my text is still huge.
Title: Re: Custom Top Menu
Post by: MATTEK on June 08, 2010, 03:10:48 AM
Actually, nevermind. Issue resolved. That sucks though. I wanted this mod.  :(

If I attach the file it failed on while installing with the package manager will someone give me a hand, please?  O:)

Oddly enough it's failing on admin.php
Title: Re: Custom Top Menu
Post by: smp420 on June 08, 2010, 03:13:13 PM
Yeah go ahead and attach it..
Title: Re: Custom Top Menu
Post by: MATTEK on June 08, 2010, 06:14:36 PM
Quote from: smp420 on June 08, 2010, 03:13:13 PM
Yeah go ahead and attach it..
Thank you.

Unfortunately, I'm at work and won't be able to attach until I get home. Sorry. But rest assured I'll post it ASAP.

Again, thank you.  :)
Title: Re: Custom Top Menu
Post by: smp420 on June 08, 2010, 06:19:52 PM
Alright no problem.
Title: Re: Custom Top Menu
Post by: MATTEK on June 08, 2010, 11:36:56 PM
There you go bro.
Title: Re: Custom Top Menu
Post by: smp420 on June 09, 2010, 02:07:24 PM
Here you go
Title: Re: Custom Top Menu
Post by: MATTEK on June 09, 2010, 06:32:47 PM
Quote from: smp420 on June 09, 2010, 02:07:24 PM
Here you go

So do I edit that and then install with package manager or do I make all edits myself
Title: Re: Custom Top Menu
Post by: Afro on June 10, 2010, 05:33:39 AM
Replace your file with the one he gave you and then use the install manager to install the mod.
If it gives you error on that file while installing, ignore it.
Title: Re: Custom Top Menu
Post by: MATTEK on June 10, 2010, 02:32:17 PM
Quote from: Afro on June 10, 2010, 05:33:39 AM
Replace your file with the one he gave you and then use the install manager to install the mod.
If it gives you error on that file while installing, ignore it.

Ok. Thanks.
Title: Re: Custom Top Menu
Post by: MATTEK on June 10, 2010, 02:39:32 PM
I'll give it a shot tonight. I've been so busy. Thanks guys.
Title: Re: Custom Top Menu
Post by: forumnepali on June 10, 2010, 03:19:04 PM
i have install Sucesfully But Tab Is NOt Showing in Top side
please help me i'a, useing r3 Version and  Custom Theme  FB Variant
Title: Re: Custom Top Menu
Post by: MATTEK on June 11, 2010, 01:07:24 AM
Hey guys my menu isn't located on the top right of the forum like it shows in the demo.

I've had edits to done to center my banner and I'm pretty sure it edited the uplift. I think that's why it's different. Can anyone provide the edits to relocate the menu?

It's the facebook and twitter tabs by the way.  ;)
Title: Re: Custom Top Menu
Post by: ukhalik2 on June 24, 2010, 08:08:14 AM
the color of links are not good,
i want them white..  :'(

help me, how to do this?
Title: Re: Custom Top Menu
Post by: ukhalik2 on June 30, 2010, 01:10:36 PM
bump!
Title: Re: Custom Top Menu
Post by: C4G-TK on June 30, 2010, 04:10:21 PM
Quote from: ukhalik2 on June 24, 2010, 08:08:14 AM
the color of links are not good,
i want them white..  :'(

help me, how to do this?

I don't think it changes the color of links from what you have anywhere else.  Perhaps, you can take a look in the index.css file of your theme and play around with colors there by changing the color to #FFFFFF
Title: Re: Custom Top Menu
Post by: smp420 on July 01, 2010, 03:10:12 AM
Sorry for the late reply I have been so busy I haven't been online much. You could most likely enter something like this in the box for the title but I haven't tried it.
<font color="#000">title goes here</font>
Title: Re: Custom Top Menu
Post by: diamondred123 on July 05, 2010, 05:21:34 PM
i think it works better on this theme than the original theme:
http://custom.simplemachines.org/themes/index.php?lemma=2053

i use it on there
will you be making one where we can have the drop down menus like smf? because my hosts has two radios so i would call it radios and put them both under there
Title: Re: Custom Top Menu
Post by: smp420 on July 05, 2010, 08:42:55 PM
I may in the future add dropdown menus, it was my original plan but I dont want to fill the admin panel with input boxes for a simple mod.
Title: Re: Custom Top Menu
Post by: diamondred123 on July 07, 2010, 07:24:52 AM
Quote from: smp420 on July 05, 2010, 08:42:55 PM
I may in the future add dropdown menus, it was my original plan but I dont want to fill the admin panel with input boxes for a simple mod.
ok thanks

can you please tell me if and when you do

Thanks
Title: Re: Custom Top Menu
Post by: ab1cor on July 08, 2010, 04:47:33 PM
Very good mod. How can I make the buttons open links in a new window? In what file can I add target="_blank"?
Title: Re: Custom Top Menu
Post by: smp420 on July 08, 2010, 05:42:27 PM
It would be in index.template.php unfortunatly doing it for one would do it for all as they all use the same code. Sometime this week or next I will add an option for each tab to open in a new page.
Title: Re: Custom Top Menu
Post by: ab1cor on July 08, 2010, 07:37:14 PM
Tnx for your reply;) Waiting to upgrade :p
Title: Re: Custom Top Menu
Post by: liamtoo on July 14, 2010, 05:36:38 AM
Thanks for a nice mod. Works well on my site. One thing I need help with though, which is probably simple for php experts. How do I change the url target to _blank so that I don't have to use the browser return button to come back?
Thanks,
Title: Re: Custom Top Menu
Post by: smp420 on July 14, 2010, 10:57:26 PM
I actually made a new version that allows you to do so I have yet to package it and I am on vacation right now im actually typing this with my iPod but I promise when get back I will package it. That will be around the 30th.
Title: Re: Custom Top Menu
Post by: arty5 on July 14, 2010, 11:00:57 PM
Im getting install error
Quote5.   Execute Modification   ./Themes/default/index.template.php   Test failed
   1.   Replace   ./Themes/default/index.template.php   Test failed

I installed the mod and i was just wondering what part of index.template.php do i have too change the code, thanx in advance.
Title: Re: Custom Top Menu
Post by: ab1cor on July 15, 2010, 06:21:50 AM
Gr8 news SMF ;)
Title: Re: Custom Top Menu
Post by: KensonPlays on July 19, 2010, 08:06:26 PM
When will more links be able to be added?
Title: Re: Custom Top Menu
Post by: smp420 on July 20, 2010, 08:34:01 PM
I may write a premium version that allows you to have as many links as you want.
Title: Re: Custom Top Menu
Post by: KensonPlays on July 20, 2010, 08:43:03 PM
How much will this cost? 8 will be enough for me! (once I install stuff outside SMF and want a link)
Title: Re: Custom Top Menu
Post by: MarcusJ on July 20, 2010, 08:49:18 PM
Fantastic mod.  Easily one of my top three favorites.

I'm looking forward to future releases.  I am happy to pay for a 'premium' version with enhanced options.

Thank you.
Title: Re: Custom Top Menu
Post by: KensonPlays on July 20, 2010, 09:30:42 PM
Wait, will premium also be able to make it a dropdown? how many options if a dropdown? I'd like unlimited, and maybe a sub-sub-dropdown for certain purposes, and if you can set up permissions to view a link more likely I will buy it (if not too expensive)
Title: Re: Custom Top Menu
Post by: MarcusJ on July 21, 2010, 05:20:52 PM
I'd like to see an option to assign a color for the link.  Perhaps even an image/tab assignment.  Depending on how much time you want to put into it.

I've attached an image so you can see why this might be useful.
Title: Re: Custom Top Menu
Post by: smp420 on July 21, 2010, 05:55:46 PM
The premium version will most likely have dropdowns but the price would be around $2.
Title: Re: Custom Top Menu
Post by: KensonPlays on July 21, 2010, 07:18:55 PM
$2 for the whole mod? I can get that (I just noticed I have only $.60 in my account that I am allowed to use, I will have to save up!)
Title: Re: Custom Top Menu
Post by: smp420 on July 21, 2010, 10:30:23 PM
Quote from: MarcusJ on July 21, 2010, 05:20:52 PM
I'd like to see an option to assign a color for the link.  Perhaps even an image/tab assignment.  Depending on how much time you want to put into it.

I've attached an image so you can see why this might be useful.
Actually as is you can change the color of the link and most likely use an image just use the HTML code when you enter the name of the tab.
Title: Re: Custom Top Menu
Post by: MarcusJ on July 23, 2010, 11:03:16 PM
Quote from: smp420 on July 21, 2010, 10:30:23 PM
Quote from: MarcusJ on July 21, 2010, 05:20:52 PM
I'd like to see an option to assign a color for the link.  Perhaps even an image/tab assignment.  Depending on how much time you want to put into it.

I've attached an image so you can see why this might be useful.
Actually as is you can change the color of the link and most likely use an image just use the HTML code when you enter the name of the tab.

You are awesome!  Thank you for this mod, and thank you for the simple solution.  PM me your Email address and I'll gladly send you a few dollar donation.

Looking forward to the mod's progression.
Title: Re: Custom Top Menu
Post by: Threepwud on July 27, 2010, 01:23:51 PM
Lovely!

Is there any way to get this on the Core theme or is it simply not an option?
Title: Re: Custom Top Menu
Post by: KensonPlays on July 27, 2010, 06:31:50 PM
smp, can I buy it yet? (I have enough now)
Title: Re: Custom Top Menu
Post by: TheListener on July 27, 2010, 06:36:30 PM
Quote from: Threepwud on July 27, 2010, 01:23:51 PM
Lovely!

Is there any way to get this on the Core theme or is it simply not an option?

Was there an option for installing the mod onto themes other than default?
Title: Re: Custom Top Menu
Post by: MarcusJ on July 27, 2010, 08:40:34 PM
Quote from: Kcmartz on July 27, 2010, 06:31:50 PM
smp, can I buy it yet? (I have enough now)

I believe SMP is on vacation through the end of the month.

Quote from: Brack1 on July 27, 2010, 06:36:30 PM
Quote from: Threepwud on July 27, 2010, 01:23:51 PM
Lovely!

Is there any way to get this on the Core theme or is it simply not an option?

Was there an option for installing the mod onto themes other than default?

It is stated earlier in this thread that this mod only functions on Curve and Curve variations.
Title: Re: Custom Top Menu
Post by: KensonPlays on July 27, 2010, 10:44:27 PM
three more days to wait! AAAAHHHHHHHH!!!
Title: Re: Custom Top Menu
Post by: Threepwud on July 28, 2010, 08:12:57 AM
Quote from: Brack1 on July 27, 2010, 06:36:30 PM
Quote from: Threepwud on July 27, 2010, 01:23:51 PM
Lovely!

Is there any way to get this on the Core theme or is it simply not an option?

Was there an option for installing the mod onto themes other than default?

Yes thanks mate, there was. I installed it successfully on 10 or so other themes, had to add the code manually myself to two, and skipped on 3 others inclusing the core theme. I simply could not find the relevant code to replace in index.template.php so was wondering whether I was doing something silly or whether it was the theme's design.

Cheers!
Title: Re: Custom Top Menu
Post by: MATTEK on July 29, 2010, 02:00:10 PM
I'm trying to uninstall this and I'm getting major errors. My objective is to properly uninstall and then reinstall. When manually installing, I see Find >? or whatever. There are hundreds of those. Does it matter which one?
Title: Re: Custom Top Menu
Post by: winky100 on July 30, 2010, 06:12:39 AM
Is there a way to make the topmenu fixed in place? When I make the browser narrow the topmenu is displayed on a differrent line. I just want the topmenu to stay where it is , all  on one line, when the browser width is changed.

Thanks.
Title: Re: Custom Top Menu
Post by: theguise on July 30, 2010, 10:45:38 AM
Quote from: winky100 on July 30, 2010, 06:12:39 AM
Is there a way to make the topmenu fixed in place? When I make the browser narrow the topmenu is displayed on a differrent line. I just want the topmenu to stay where it is , all  on one line, when the browser width is changed.

It's aligned to the right, so I don't think it can be changed from doing that.  Maybe if you aligned it to the center in the index.template file that may work.
Title: Re: Custom Top Menu
Post by: MATTEK on August 01, 2010, 12:40:55 PM
Quote from: MATTEK on July 29, 2010, 02:00:10 PM
I'm trying to uninstall this and I'm getting major errors. My objective is to properly uninstall and then reinstall. When manually installing, I see Find >? or whatever. There are hundreds of those. Does it matter which one?

I'm looking for help. The buttons that I had up there have randomly disappeared.
Title: Re: Custom Top Menu
Post by: theguise on August 01, 2010, 12:57:07 PM
Quote from: MATTEK on August 01, 2010, 12:40:55 PM
Quote from: MATTEK on July 29, 2010, 02:00:10 PM
I'm trying to uninstall this and I'm getting major errors. My objective is to properly uninstall and then reinstall. When manually installing, I see Find >? or whatever. There are hundreds of those. Does it matter which one?

I'm looking for help. The buttons that I had up there have randomly disappeared.

You're going to have to manually remove the code from the file it looks like.  Just find and delete the relevant code from whatever document you're getting the error from.
Title: Re: Custom Top Menu
Post by: MATTEK on August 01, 2010, 01:01:02 PM
Quote from: theguise on August 01, 2010, 12:57:07 PM
Quote from: MATTEK on August 01, 2010, 12:40:55 PM
Quote from: MATTEK on July 29, 2010, 02:00:10 PM
I'm trying to uninstall this and I'm getting major errors. My objective is to properly uninstall and then reinstall. When manually installing, I see Find >? or whatever. There are hundreds of those. Does it matter which one?

I'm looking for help. The buttons that I had up there have randomly disappeared.

You're going to have to manually remove the code from the file it looks like.  Just find and delete the relevant code from whatever document you're getting the error from.

Well the mod is still installed. I think I just need to edit the file that enabled the display of the menu buttons.
Title: Re: Custom Top Menu
Post by: theguise on August 01, 2010, 01:50:42 PM
Why are you uninstalling it in the first place?
Title: Re: Custom Top Menu
Post by: MATTEK on August 01, 2010, 01:58:01 PM
Quote from: theguise on August 01, 2010, 01:50:42 PM
Why are you uninstalling it in the first place?
Because the tabs disappeared. I figured uninstalling and reinstalling would bring them back. However, I think I could avoid that by editing the file that permits the display of the tabs. Correct me if I'm wrong.
Title: Re: Custom Top Menu
Post by: smp420 on August 01, 2010, 02:16:50 PM
Did you switch themes or anything?
Title: Re: Custom Top Menu
Post by: theguise on August 01, 2010, 02:19:07 PM

// The code for the menu you installed dont you remember it?
   echo '
<div id="site_menu" class="align_right" style="padding-top:9px;">
<ul class="dropmenu" id="site_nav">';
   for ($i=1; $i<6; $i++)
      {
         if (!empty($modSettings['tab_url' . $i]) && !empty($modSettings['tab_title' . $i]))
         {
            echo '
               <li id="button', $i, '">
                  <a class="firstlevel" href="', $modSettings['tab_url' . $i], '">
                     <span class="firstlevel">', $modSettings['tab_title' . $i], '</span>
                  </a>
               </li>';
         }
      }
   echo'
         </ul>
            </div>


This should be in your themes Index.Template.php file, have you checked that out to make sure it was still there?
Title: Re: Custom Top Menu
Post by: MATTEK on August 01, 2010, 02:51:43 PM
Quote from: theguise on August 01, 2010, 02:19:07 PM

// The code for the menu you installed dont you remember it?
   echo '
<div id="site_menu" class="align_right" style="padding-top:9px;">
<ul class="dropmenu" id="site_nav">';
   for ($i=1; $i<6; $i++)
      {
         if (!empty($modSettings['tab_url' . $i]) && !empty($modSettings['tab_title' . $i]))
         {
            echo '
               <li id="button', $i, '">
                  <a class="firstlevel" href="', $modSettings['tab_url' . $i], '">
                     <span class="firstlevel">', $modSettings['tab_title' . $i], '</span>
                  </a>
               </li>';
         }
      }
   echo'
         </ul>
            </div>


This should be in your themes Index.Template.php file, have you checked that out to make sure it was still there?

It is not there.
Title: Re: Custom Top Menu
Post by: theguise on August 01, 2010, 02:56:03 PM
Well that's odd it would have just dissappeared, anyway if you're running 2.0RC3 look at the manual instructions here http://custom.simplemachines.org/mods/index.php?action=parse and you want to do your edit in the index.template section
Title: Re: Custom Top Menu
Post by: MATTEK on August 01, 2010, 02:58:44 PM
Done. Thank you :)
Title: Re: Custom Top Menu
Post by: smp420 on August 01, 2010, 03:10:18 PM
Ok I finally got the new version up that allows you to open tabs in a new page there is a seperate option for each tab. I removed the Russian translation because I added some new strings that wernt in the translation. Now I can finally get started on a premium version.
Title: Re: Custom Top Menu
Post by: MATTEK on August 01, 2010, 03:48:51 PM
Quote from: smp420 on August 01, 2010, 03:10:18 PM
Ok I finally got the new version up that allows you to open tabs in a new page there is a seperate option for each tab. I removed the Russian translation because I added some new strings that wernt in the translation. Now I can finally get started on a premium version.

I manually installed 1.2. In order to get this newer version working I assume I'll have to manually uninstall 1.2 first. However, I'm not seeing the parse option on the mod page for 1.2 Are the edits basically the same or will I need some assistance?
Title: Re: Custom Top Menu
Post by: smp420 on August 01, 2010, 03:51:42 PM
The edits are basically the same I could create an updater Just give me a couple minutes.

Edit: here is the updater just install it with the package manager the only thing you will have to do is redo your links.
Title: Re: Custom Top Menu
Post by: KensonPlays on August 01, 2010, 05:54:24 PM
Any idea for a timeframe for premium?
Title: Re: Custom Top Menu
Post by: Bugo on August 01, 2010, 09:40:10 PM
Updated russian translation.
Title: Re: Custom Top Menu
Post by: smp420 on August 02, 2010, 02:25:22 AM
Quote from: Kcmartz on August 01, 2010, 05:54:24 PM
Any idea for a timeframe for premium?
Not really it all depends on how much work I want to put into it I thought of making it alot more advanced by adding features such as permissions, unlimited tabs, and unlimited sub tabs but it would probably be about $10 for the mod if I did that much work.

Quote from: Bugo on August 01, 2010, 09:40:10 PM
Updated russian translation.
Thanks will add these back in tommorrow.
Title: Re: Custom Top Menu
Post by: KensonPlays on August 02, 2010, 03:40:06 AM
ok unlimited not required. but i have SP and instead of a block i would use this. i could split pages into categories and just  do that. if you kept $2 price how deep would it go?
Title: Re: Custom Top Menu
Post by: smp420 on August 02, 2010, 12:02:15 PM
It wouldn't be to much different than this version probably just unlimited tabs no subtabs or permissions.
Title: Re: Custom Top Menu
Post by: diamondred123 on August 02, 2010, 01:47:37 PM
Quote from: smp420 on August 02, 2010, 12:02:15 PM
It wouldn't be to much different than this version probably just unlimited tabs no subtabs or permissions.
yea is subtabs going to be in the free one or only paid one?
Title: Re: Custom Top Menu
Post by: smp420 on August 02, 2010, 02:15:50 PM
I really don't think I will be expanding the free version anymore than it is, to make a more advanced version it will be alot of time and work which is why I wanted to create a premium version.
Title: Re: Custom Top Menu
Post by: liamtoo on August 02, 2010, 02:53:58 PM
I've kinda lost track of where we are. :-[ My query (#101) was about the url target _blank . Can I adjust some code to achieve this or do I have to reinstall a new mod?
Title: Re: Custom Top Menu
Post by: diamondred123 on August 02, 2010, 03:04:51 PM
:'(
why is everyone doing premium things
we hate premium
lol
Title: Re: Custom Top Menu
Post by: theguise on August 02, 2010, 03:41:01 PM
Quote from: liamtoo on August 02, 2010, 02:53:58 PM
I've kinda lost track of where we are. :-[ My query (#101) was about the url target _blank . Can I adjust some code to achieve this or do I have to reinstall a new mod?

He just updated this mod to do this.
Title: Re: Custom Top Menu
Post by: KensonPlays on August 02, 2010, 04:14:15 PM
Quote from: diamondred123 on August 02, 2010, 03:04:51 PM
:'(
why is everyone doing premium things
we hate premium
lol

not really. I don't I bought Nibogo's Advanced Topic Prefix with twice as many options!
Title: Re: Custom Top Menu
Post by: MarcusJ on August 02, 2010, 04:58:09 PM
I don't think $10 is unreasonable.

If we want more flexibility from SMF, we will have to pay.  I don't mind paying if the mod works as advertised.  I have spent hundreds on mods for Joomla.  I want more from SMF, and I'm willing to pay for it.

I figure ten dollars is a value.  Compared to how much time I'd spend editing the code manually.  I'd rather use this mod. :)
Title: Re: Custom Top Menu
Post by: smp420 on August 02, 2010, 05:02:01 PM
Quote from: liamtoo on August 02, 2010, 02:53:58 PM
I've kinda lost track of where we are. :-[ My query (#101) was about the url target _blank . Can I adjust some code to achieve this or do I have to reinstall a new mod?
If your using version 1.2 of thsi mod you can just install this through the pakage manager to get version 1.3 so you don't have to uninstall the old version.

Quote from: diamondred123 on August 02, 2010, 03:04:51 PM
:'(
why is everyone doing premium things
we hate premium
lol
Well with all the time and work I would have to put in I wouldn't do it for free so its either that or I just don't make one at all.
Title: Re: Custom Top Menu
Post by: MATTEK on August 02, 2010, 05:07:10 PM
sell it to SMF themselves so they can include it in the next 2.0 release.  O:)
Title: Re: Custom Top Menu
Post by: KensonPlays on August 02, 2010, 05:14:32 PM
Quote from: MATTEK on August 02, 2010, 05:07:10 PM
sell it to SMF themselves so they can include it in the next 2.0 release.  O:)
Yeah, 2.0 is FEATURE FROZEN, try 3.0

So, when the premium is available, if you want to email me with email in my profile.
Title: Re: Custom Top Menu
Post by: liamtoo on August 02, 2010, 05:28:58 PM
Quote from: smp420 on August 02, 2010, 05:02:01 PM
Quote from: liamtoo on August 02, 2010, 02:53:58 PM
I've kinda lost track of where we are. :-[ My query (#101) was about the url target _blank . Can I adjust some code to achieve this or do I have to reinstall a new mod?
If your using version 1.2 of thsi mod you can just install this through the pakage manager to get version 1.3 so you don't have to uninstall the old version.

That's great, Thanks
Title: Re: Custom Top Menu
Post by: tfs on August 02, 2010, 07:11:58 PM
Nice mod.  Made it a snap to put a couple of things up top.  Thanks!
Title: Re: Custom Top Menu
Post by: smp420 on August 02, 2010, 08:59:45 PM
Quote from: Bugo on August 01, 2010, 09:40:10 PM
Updated russian translation.
Thank you once again for the translation I added it to the package.
Title: Re: Custom Top Menu
Post by: Reefer on August 08, 2010, 12:54:00 PM
Version 1.2 was working fine...  Uninstalled version 1.2, then installed 1.3 - go to Admin> mOdifications - I get this error:

Fatal error: Cannot redeclare modifycustomtopmenu() (previously declared in /usr/www/users/test/Sources/ManageSettings.php:2547) in /usr/www/users/test/Sources/ManageSettings.php on line 2682

Can you advise me please?

Curve theme with lots of mods.

Title: Re: Custom Top Menu
Post by: smp420 on August 08, 2010, 04:02:20 PM
Try the attached file
Title: Re: Custom Top Menu
Post by: KensonPlays on August 09, 2010, 12:57:38 AM
I will buy it when I can. Didn't you say $2 a few pages ago?
Title: Re: Custom Top Menu
Post by: Reefer on August 09, 2010, 03:14:54 AM
Quote from: smp420 on August 08, 2010, 04:02:20 PM
Try the attached file

Thankyou kind sir... works perfectly now!  :)
Title: Re: Custom Top Menu
Post by: smp420 on August 09, 2010, 03:20:19 AM
Quote from: Kcmartz on August 09, 2010, 12:57:38 AM
I will buy it when I can. Didn't you say $2 a few pages ago?
Well it all depends how complicated I decide to make it I have some good ideas that I would like to use but that would make alot more work for me.
Title: Re: Custom Top Menu
Post by: Balaban on August 19, 2010, 05:57:37 PM
Hi...  nice mod and i want use this. but it didn't work for me.
i edited manually. but on options page (modsettings;sa=custom_menu;) i have a error.

Fatal error: Call to undefined function ModifyCustomTopMenu() in /home/smfgrup/public_html/demo/smf2/Sources/ManageSettings.php on line 207

can u help me ?
Title: Re: Custom Top Menu
Post by: smp420 on August 21, 2010, 12:57:29 PM
Did you get any errors on installation, particularly in ManageSettings.php I suggest you parse the mod on the mod page and open up ManageSettings.php and make sure all the edits are there.
Title: Re: Custom Top Menu
Post by: KensonPlays on August 21, 2010, 08:19:56 PM
Smp, I am not gonna buy it anymore I have another method, sorry.
Title: Re: Custom Top Menu
Post by: turaper on August 21, 2010, 10:23:12 PM
Wow
very nice.
It is elegant.

(http://www.imageporter.com/xxsyhi6s8qac/blazer_lt_4dr_98_chevrolet_.jpg.html)
(http://www.imageporter.com/bih7vjxu5uj5/super-blazer-2.jpg.html)
(http://www.imageporter.com/yzqyx9khu6pp/premiumw.png.html)
Title: Re: Custom Top Menu
Post by: Diomet on October 06, 2010, 09:33:00 AM
Quote from: Liam. on May 15, 2010, 07:41:13 PM
IMO, it looks ugly having them all as active tabs... Wouldn't it look visually better if none of them were active, except on hover-over?

I like that style. How do I make that back, please? :)
Title: Re: Custom Top Menu
Post by: Shades. on November 06, 2010, 01:58:26 PM
Can someone make this work with RC4? ;)
Title: Re: Custom Top Menu
Post by: colby2152 on November 14, 2010, 06:39:08 PM
I wish this mod would have drop-down links.  How does the simplemachines.org forum have the drop-down links?
Title: Re: Custom Top Menu
Post by: okbluejays on November 19, 2010, 11:08:29 PM
Need some help figuring out why this mod is pushing over so far to the left
Thanks

http://forum.okbluejays.com/index.php
Title: Re: Custom Top Menu
Post by: NanoSector on November 21, 2010, 04:51:46 AM
Manually installed on a RC4 forum and my tabs won't show. Any help please?
Title: Re: Custom Top Menu
Post by: NanoSector on November 23, 2010, 02:28:29 AM
Quote from: Yoshi2889 on November 21, 2010, 04:51:46 AM
Manually installed on a RC4 forum and my tabs won't show. Any help please?

Nevermind that. I solved it.

But the tabs are to the left instead of to the right...
Title: Re: Custom Top Menu
Post by: cokekola on November 23, 2010, 01:45:11 PM
(Dummie asking:) Any possibilities to get this to install by Package Manager in RC4 in near future?
Title: Re: Custom Top Menu
Post by: smp420 on November 24, 2010, 12:40:49 AM
Havent been around for a while but I will update the mod as soon as I get around to updating one of my test forums.
Title: Re: Custom Top Menu
Post by: okbluejays on November 27, 2010, 01:58:06 AM
Quote from: Yoshi2889 on November 23, 2010, 02:28:29 AM
Nevermind that. I solved it.

But the tabs are to the left instead of to the right...

Did you ever get them to adjust to the right?
I am having the same issue and for the life of me I can't figure it out.
Title: Re: Custom Top Menu
Post by: NanoSector on November 27, 2010, 02:18:52 AM
Quote from: okbluejays on November 27, 2010, 01:58:06 AM
Quote from: Yoshi2889 on November 23, 2010, 02:28:29 AM
Nevermind that. I solved it.

But the tabs are to the left instead of to the right...

Did you ever get them to adjust to the right?
I am having the same issue and for the life of me I can't figure it out.
No I didn't get them to the right. By now I'm making all my buttons in the navigation bar until an upgrade is released.
Title: Re: Custom Top Menu
Post by: okbluejays on December 01, 2010, 01:36:17 AM
Quote from: Yoshi2889 on November 27, 2010, 02:18:52 AM
Quote from: okbluejays on November 27, 2010, 01:58:06 AM
Quote from: Yoshi2889 on November 23, 2010, 02:28:29 AM
Nevermind that. I solved it.

But the tabs are to the left instead of to the right...

Did you ever get them to adjust to the right?
I am having the same issue and for the life of me I can't figure it out.
No I didn't get them to the right. By now I'm making all my buttons in the navigation bar until an upgrade is released.
Appreciate the reply. Ill play around with it till the upgrade comes out.
Title: Re: Custom Top Menu
Post by: chinaren on December 24, 2010, 02:24:47 AM
I too, would like this for RC4.   :laugh:   Tis a good mod oh yes. Very useful.
Title: Re: Custom Top Menu
Post by: smp420 on December 24, 2010, 05:42:02 PM
Sorry for the delay I have been busy lately but I dont have any smf sites anymore so if someone could setup a test forum and pm me the login details I can update the mod tommorrow hopefully.
Title: Re: Custom Top Menu
Post by: NanoSector on December 25, 2010, 04:06:28 AM
Quote from: smp420 on December 24, 2010, 05:42:02 PM
Sorry for the delay I have been busy lately but I dont have any smf sites anymore so if someone could setup a test forum and pm me the login details I can update the mod tommorrow hopefully.
I'll give you login details to my developing centre later today.
Title: Re: Custom Top Menu
Post by: smp420 on December 25, 2010, 11:39:58 AM
Updated for RC4 thanks to Yoshi2889 for letting me use his site! And Merry Christmas to everyone!!
Title: Re: Custom Top Menu
Post by: NanoSector on December 25, 2010, 12:24:33 PM
Quote from: smp420 on December 25, 2010, 11:39:58 AM
Updated for RC4 thanks to Yoshi2889 for letting me use his site! And Merry Christmas to everyone!!
Not any problem :)

I'll disable the account you used for a while, give me a call if you need it again.

I'll be installing this on my public site today :)
Title: Re: Custom Top Menu
Post by: tfs on December 25, 2010, 01:12:07 PM
Quote from: smp420 on December 25, 2010, 11:39:58 AM
Updated for RC4 thanks to Yoshi2889 for letting me use his site! And Merry Christmas to everyone!!

Seems to have installed just fine on my RC4 site, and it properly remembered the settings from the RC3 install.  Thanks!

And Merry Christmas to you!
Title: Re: Custom Top Menu - Updated for RC4
Post by: chinaren on December 25, 2010, 07:15:40 PM
Many thanks!  Works fine now.
Title: Re: Custom Top Menu - Updated for RC4
Post by: tennis4you on January 08, 2011, 07:22:41 PM
This is an awesome mod!  I am having issues installing though due to index.template.php

1.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add Before    ./Sources/ManageSettings.php    Test successful
2.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add Before    ./Sources/Admin.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
      1.    Add Before    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
5.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
6.    Execute Modification    ./Themes/default/languages/Modifications.russian.php    Skipping file
7.    Execute Modification    ./Themes/default/languages/Modifications.russian-utf8.php    Skipping file

Can anyone help?

Thanks!
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on January 09, 2011, 12:16:50 PM
Quote from: tennis4you on January 08, 2011, 07:22:41 PM
This is an awesome mod!  I am having issues installing though due to index.template.php

1.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add Before    ./Sources/ManageSettings.php    Test successful
2.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add Before    ./Sources/Admin.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
      1.    Add Before    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
5.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
6.    Execute Modification    ./Themes/default/languages/Modifications.russian.php    Skipping file
7.    Execute Modification    ./Themes/default/languages/Modifications.russian-utf8.php    Skipping file

Can anyone help?

Thanks!
Not only index.template.php is erroring: modifications.english-utf8.php is also erroring.
Title: Re: Custom Top Menu - Updated for RC4
Post by: Spoogs on January 09, 2011, 12:39:44 PM
Quote from: Simple Series team on January 09, 2011, 12:16:50 PM
Not only index.template.php is erroring: modifications.english-utf8.php is also erroring.
Because they are using english as the default language and not english-utf8 so that error can be ignored.


Quote from: tennis4you on January 08, 2011, 07:22:41 PM
This is an awesome mod!  I am having issues installing though due to index.template.php

1.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add Before    ./Sources/ManageSettings.php    Test successful
2.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add Before    ./Sources/Admin.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
      1.    Add Before    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
5.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
6.    Execute Modification    ./Themes/default/languages/Modifications.russian.php    Skipping file
7.    Execute Modification    ./Themes/default/languages/Modifications.russian-utf8.php    Skipping file

Can anyone help?

Thanks!
What mods do you have installed and attach your index.template.php
Title: Re: Custom Top Menu - Updated for RC4
Post by: tennis4you on January 09, 2011, 12:46:33 PM
Thanks for the quick reply.  Here are the mods I have installed:

Add Favicon.ico Support    1.101    [ Uninstall ] [ List Files ] [ Delete ]
Effectively Remove SMF Logo    1.2    [ Uninstall ] [ List Files ] [ Delete ]
Stop Forum Spam    0.6    [ Uninstall ] [ List Files ] [ Delete ]
Last Users In 24 Hours    1.0    [ Uninstall ] [ List Files ] [ Delete ]
Stop Spammer    2.3.8    [ Uninstall ] [ List Files ] [ Delete ]
WYSIWYG Quick Reply    2.1    [ Uninstall ] [ List Files ] [ Delete ]
httpBL    2.5.1    [ Uninstall ] [ List Files ] [ Delete ]
Curve_centered_menu    1.2    [ Uninstall ] [ List Files ] [ Delete ]
YouTube BBCode    2.6    [ Uninstall ] [ List Files ] [ Delete ]
Remove Index From Title    1.0    [ Uninstall ] [ List Files ] [ Delete ]

Title: Re: Custom Top Menu - Updated for RC4
Post by: Spoogs on January 09, 2011, 12:49:02 PM
Effectively Remove SMF Logo <--- thats the issue, remove this mod and you should install fine. This mod removes the chunk of code this mod is also looking to replace
Title: Re: Custom Top Menu - Updated for RC4
Post by: tennis4you on January 09, 2011, 01:01:51 PM
I will give it a whirl, thanks!
Title: Re: Custom Top Menu - Updated for RC4
Post by: tennis4you on January 09, 2011, 01:02:57 PM
Whoa, maybe not...  I tried uninstalling that mod and this is what I got:

   1.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
*    2.    Execute Modification    ./Themes/default/css/index.css    Test failed
      1.    Replace    ./Themes/default/css/index.css    Test failed
   3.    Extract File    ./Themes/default/images/smflogo.png
Title: Re: Custom Top Menu - Updated for RC4
Post by: Spoogs on January 09, 2011, 01:21:23 PM
here ya go... as always make sure you backup first
Title: Re: Custom Top Menu - Updated for RC4
Post by: tennis4you on January 09, 2011, 01:35:44 PM
Awesome, thank you!  Before I do anything, I better ask so I understand.

Can I just overwrite my copy of index.template.php with the file you attached and then run the mod normally?

Thanks!
Title: Re: Custom Top Menu - Updated for RC4
Post by: Spoogs on January 09, 2011, 01:43:33 PM
yes... if anything goes wrong you already have a copy attached to this thread if you havent saved a copy to your pc ;)
Title: Re: Custom Top Menu - Updated for RC4
Post by: tennis4you on January 09, 2011, 02:51:38 PM
I uploaded your version of the index.template.php, opened the forum and tried to run the mod again.  Here is my error report:

1.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add Before    ./Sources/ManageSettings.php    Test successful
2.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add Before    ./Sources/Admin.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
      1.    Add Before    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
5.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
6.    Execute Modification    ./Themes/default/languages/Modifications.russian.php    Skipping file
7.    Execute Modification    ./Themes/default/languages/Modifications.russian-utf8.php    Skipping file

I am not sure if the SMF logo was suppose to re-appear when I uploaded your revised file or not, the logo did not re-appear for me.  Not sure if that matters or not.  Everything looks the same when I uploaded your revised file, as a matter of fact, I have not bothered to upload my previous one yet.  :)

Any thoughts?

Thanks!
Title: Re: Custom Top Menu - Updated for RC4
Post by: impreza on January 09, 2011, 03:13:36 PM
Cool addition
Title: Re: Custom Top Menu - Updated for RC4
Post by: Spoogs on January 09, 2011, 03:18:39 PM
Quote from: tennis4you on January 09, 2011, 02:51:38 PM
I uploaded your version of the index.template.php, opened the forum and tried to run the mod again.  Here is my error report:

1.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add Before    ./Sources/ManageSettings.php    Test successful
2.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add Before    ./Sources/Admin.php    Test successful
3.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
      1.    Add Before    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
5.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
6.    Execute Modification    ./Themes/default/languages/Modifications.russian.php    Skipping file
7.    Execute Modification    ./Themes/default/languages/Modifications.russian-utf8.php    Skipping file

I am not sure if the SMF logo was suppose to re-appear when I uploaded your revised file or not, the logo did not re-appear for me.  Not sure if that matters or not.  Everything looks the same when I uploaded your revised file, as a matter of fact, I have not bothered to upload my previous one yet.  :)

Any thoughts?

Thanks!
Ignore the error and complete the installation.... I already added the code needed for the mod to work.
The logo wont reappear, i didnt do anything with regard to the other mod
Title: Re: Custom Top Menu - Updated for RC4
Post by: tennis4you on January 09, 2011, 03:53:54 PM
Yup, that worked perfect, thanks!

Is there a way to center the menu?

Thank you!!!
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on January 10, 2011, 02:41:06 PM
Center the custom top menu? Not yet.

Of course there IS a way, but not a way that we have tested...
Title: Re: Custom Top Menu - Updated for RC4
Post by: Faustus on January 24, 2011, 08:50:52 AM
Fresh install of 2.0 RC4.

reports an error with the theme file when I try to install.

Only mods I have installed so far are.

SimplePortal
Facebook Sharer Mod 1.0
InLine Attachments
Custom_Top_menu
Title: Re: Custom Top Menu - Updated for RC4
Post by: PfalzNacht on February 05, 2011, 08:00:33 PM
What have i to do that the menu buttons are"active"?


Now they look like normal links, but i want it with the blue background.
Title: Re: Custom Top Menu - Updated for RC4
Post by: PfalzNacht on February 06, 2011, 12:15:27 PM
Can anyone please help me?


What have i to change to hover all Links/Buttons?
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on February 06, 2011, 03:41:13 PM
Please do not bump your post within 24 hours.

Parse the package and look for the code that looks most reliable, then modify it (if you can) :)
Title: Re: Custom Top Menu - Updated for RC4
Post by: PfalzNacht on February 06, 2011, 03:47:49 PM
I have almost installed the mod, and i can modify it.


I tried everything to hover/activate the Buttons/Links, but nothing happens.
So, what is the corect class to hover/modify the Buttons/Links?
Title: Re: Custom Top Menu - Updated for RC4
Post by: PfalzNacht on February 09, 2011, 04:10:19 AM
smp420, can you please help me. thanks
Title: Re: Custom Top Menu - Updated for RC4
Post by: PLAYBOY on March 02, 2011, 02:43:30 AM
update for rc 5?
Title: Re: Custom Top Menu - Updated for RC4
Post by: T3CHN0 on March 17, 2011, 08:40:38 AM
was looking forward to using this mod and everything apart from index.template was good on the install
So i installed it and tried to do the index.template.php my self

I tried many ways of using the code but was not able to find away to make it work

here is the code for my index.template.php file
maybe someone could help me out with what code i can use to make this mod work

thanks


<?php
// Version: 2.0 RC3; index

/*    This template is, perhaps, the most important template in the theme. It
    contains the main template layer that displays the header and footer of
    the forum, namely with main_above and main_below. It also contains the
    menu sub template, which appropriately displays the menu; the init sub
    template, which is there to set the theme up; (init can be missing.) and
    the linktree sub template, which sorts out the link tree.

    The init sub template should load any data and set any hardcoded options.

    The main_above sub template is what is shown above the main content, and
    should contain anything that should be shown up there.

    The main_below sub template, conversely, is shown after the main content.
    It should probably contain the copyright statement and some other things.

    The linktree sub template should display the link tree, using the data
    in the $context['linktree'] variable.

    The menu sub template should display all the relevant buttons the user
    wants and or needs.

    For more information on the templating system, please see the site at:
    http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
    global 
$context$settings$options$txt;

    
/* Use images from default theme when using templates from the default theme?
        if this is 'always', images from the default theme will be used.
        if this is 'defaults', images from the default theme will only be used with default templates.
        if this is 'never' or isn't set at all, images from the default theme will not be used. */
    
$settings['use_default_images'] = 'never';

    
/* What document type definition is being used? (for font size and other issues.)
        'xhtml' for an XHTML 1.0 document type definition.
        'html' for an HTML 4.01 document type definition. */
    
$settings['doctype'] = 'xhtml';

    
/* The version this template/theme is for.
        This should probably be the version of SMF it was created for. */
    
$settings['theme_version'] = '2.0 RC3';

    
/* Set a setting that tells the theme that it can render the tabs. */
    
$settings['use_tabs'] = true;

    
/* Use plain buttons - as opposed to text buttons? */
    
$settings['use_buttons'] = true;

    
/* Show sticky and lock status separate from topic icons? */
    
$settings['separate_sticky_lock'] = true;

    
/* Does this theme use the strict doctype? */
    
$settings['strict_doctype'] = false;

    
/* Does this theme use post previews on the message index? */
    
$settings['message_index_preview'] = true;

    
/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
    
$settings['require_theme_strings'] = false;
}

// The main sub template above the content.
function template_html_above()
{
    global 
$context$settings$options$scripturl$txt$modSettings;

    
// Show right to left and the character set for ease of translating.

    // This is for the Page Reload Mod by Nas


// No refreshing if you are in any of these actions
$no_refresh_actions = array('admin''post''profile');

// We are good to go - If the refreshing is enabled, and we are not in any of the above actions, that is.
   
if (!empty($modSettings['reload_time']) && !in_array($context['current_action'], $no_refresh_actions))
header("Refresh: {$modSettings['reload_time']}; url={$scripturl}?{$_SERVER['QUERY_STRING']}");

    
// End of Reload Page Mod code
    
    
    
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
    <meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
    <meta name="description" content="'
$context['page_title_html_safe'], '" />', !empty($context['meta_keywords']) ? '
    <meta name="keywords" content="' 
$context['meta_keywords'] . '" />' '''
    <title>'
$context['page_title_html_safe'], '</title>';

    
// Please don't index these Mr Robot.
    
if (!empty($context['robot_no_index']))
        echo 
'
    <meta name="robots" content="noindex" />'
;

    
// Present a canonical url for search engines to prevent duplicate content in their indices.
    
if (!empty($context['canonical_url']))
        echo 
'
    <link rel="canonical" href="'
$context['canonical_url'], '" />';

    
// The ?rc3 part of this link is just here to make sure browsers don't cache it wrongly.
    
echo '
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/index'$context['theme_variant'], '.css?rc3" />
    <link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?rc3" media="print" />';

    
// Show all the relative links, such as help, search, contents, and the like.
    
echo 
    <link href="' 
$settings['theme_url'] . '/hb.css" rel="stylesheet" type="text/css" /> 
            <script type="text/javascript" src="' 
$settings['theme_url'] . '/hb.js"></script> 
            <script type="text/javascript"> 
            window.addEvent(\'domready\', function() { 
                var myTips1 = new MooTips($$(\'.toolTipImg\'), { 
                maxTitleChars: 100 
                }); 
            }); 
            </script>'

    echo 
'
    <link rel="help" href="'
$scripturl'?action=help" />
    <link rel="search" href="' 
$scripturl '?action=search" />
    <link rel="contents" href="'
$scripturl'" />';

    
// If RSS feeds are enabled, advertise the presence of one.
    
if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
        echo 
'
    <link rel="alternate" type="application/rss+xml" title="'
$context['forum_name_html_safe'], ' - '$txt['rss'], '" href="'$scripturl'?type=rss;action=.xml" />';

    
// If we're viewing a topic, these should be the previous and next topics, respectively.
    
if (!empty($context['current_topic']))
        echo 
'
    <link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
    <link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

    
// If we're in a board, or a topic for that matter, the index will be the board's index.
    
if (!empty($context['current_board']))
        echo 
'
    <link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

    
// We'll have to use the cookie to remember the header...
    
if ($context['user']['is_guest'])
    {
        
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
        
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
    }

    
// Some browsers need an extra stylesheet due to bugs/compatibility issues.
    
foreach (array('ie7''ie6''webkit') as $cssfix)
        if (
$context['browser']['is_' $cssfix])
            echo 
'
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/'$cssfix'.css" />';

    
// RTL languages require an additional stylesheet.
    
if ($context['right_to_left'])
        echo 
'
    <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/rtl.css" />';

    echo 
'
    <script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?rc3"></script>
    <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/jquery/jquery-1.3.2.min.js"></script>
    <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/jquery/jquery.scroll.pack.js"></script>
    <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/jquery/jquery.easing.js"></script>
    <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/textareaResizer.js"></script>
    <script type="text/javascript" src="'
$settings['theme_url'], '/scripts/theme.js?rc3"></script>
    <script type="text/javascript"><!-- // --><![CDATA[
        var smf_theme_url = "'
$settings['theme_url'], '";
        var smf_default_theme_url = "'
$settings['default_theme_url'], '";
        var smf_images_url = "'
$settings['images_url'], '";
        var smf_scripturl = "'
$scripturl'";
        var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
        var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
        var fPmPopup = function ()
        {
            document.getElementById("pm_popup").style.display = \'block\';
        }
        function closefPmPopup()
        {    
            document.getElementById("pm_popup").style.display = \'none\';
        }
        addLoadEvent(fPmPopup);' 
'''
        var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
        var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
    // ]]></script>'
;

            if (isset(
$modSettings['css_overide'])):
            echo 
'
            <style type="text/css">' 
$modSettings['css_overide'] . '</style>';
            endif;            
    
// Output any remaining HTML headers. (from mods, maybe?)
    
echo $context['html_headers'];


        
//Go up    to
        
echo '
      <script type="text/javascript">
            $(function() {
                $("#toTop").scrollToTop({speed:200,ease:"easeOutBounce",start:500});
            });
        </script>'
;
        
//Go up    to End
    
echo '

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/reflection.js">

            var current_header_am = '
, empty($options['collapse_header_am']) ? 'false' 'true'';

            function shrinkHeaderAM(mode)
            {'
;

    if (
$context['user']['is_guest'])
        echo 
'
                document.cookie = "upshrinkAM=" + (mode ? 1 : 0);'
;
    else
        echo 
'
                smf_setThemeOption("collapse_header_am", mode ? 1 : 0, null, "'
$context['session_id'], '");';

    echo 
'
                document.getElementById("upshrink_am").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

                document.getElementById("upshrinkHeaderAM").style.display = mode ? "none" : "";

                current_header_am = mode;
            }
        </script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/glossy.js"></script></head>    
    

<body>'
;
}

function 
template_body_above()
{
    global 
$context$settings$options$scripturl$txt$modSettings;

    
// If we have new PMs...
    
if($context['show_pm_popup'])
    echo 
'
    <div id="pm_popup" class="windowbg">
    <h5 class="catbg">
        <span class="floatright"><a href="#" onclick="closefPmPopup()"><img src="'
$settings['images_url'], '/icons/quick_remove.gif" alt="'$txt['pm_popup_close'], '" /></a></span>
        '
$txt['pm_popup'], ' ['$context['user']['unread_messages'], ']
    </h5>
    <p class="content">
        '
str_replace('\n''<br />'$txt['show_personal_messages']), '<br /><br />
        <a href="'
$scripturl'?action=pm" target="_blank" onclick="closefPmPopup()"><img src="'$settings['images_url'], '/icons/package_installed.gif" alt="" /> '$txt['yes'], '</a> &nbsp;&nbsp;&nbsp; <a href="#" onclick="closefPmPopup()"><img src="'$settings['images_url'], '/icons/package_old.gif" alt="" /> '$txt['no'], '</a>
    </p>
    </div>'
;

    echo 
'
        <div id="mainframe"'
, !empty($settings['forum_width']) ? ' style="width: ' $settings['forum_width'] . '"' '''>
<div id="ob1">
    <div id="ib1">
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
    <td align="right"><a href="'
.$scripturl.'" title="'$context['forum_name'], '"><img src="'$settings['images_url'], '/aur.gif" style="margin: 2px;" alt="'$context['forum_name'], '" /></a>
    <td align="center"><a href="'
.$scripturl.'" title="'$context['forum_name'], '"><img src="'$settings['images_url'], '/myslogan.jpg" style="margin: 2px;" alt="'$context['forum_name'], '" /></a>
    <td align="left"><a href="'
.$scripturl.'" title="'$context['forum_name'], '"><img src="'$settings['images_url'], '/aur.gif" style="margin: 2px;" alt="'$context['forum_name'], '" /></a>
             </td>
    </tr>
      </table>
            <div class="tborder">
                <div class="catbg">
                    <img class="floatright" id="smflogo" src="'
$settings['images_url'], '/smflogo.gif" alt="Simple Machines Forum" />

                        <h1 id="forum_name">'
;

    if (empty(
$settings['header_logo_url']))
        echo 
$context['forum_name_html_safe'];
    else
        echo 
'
                <img src="'
$settings['header_logo_url'], '" alt="'$context['forum_name_html_safe'], '" />';

    echo 
'
            </h1>
        </div>'
;

    
// Display user name and time.


    
echo '
        <ul id="greeting_section" class="reset titlebg2">
            <li id="time" class="smalltext floatright">
<div id="clock" class="text floatright">Loading...</div>
<script type="text/javascript">
<!--
function refrClock()
{
var d=new Date(); var s=d.getSeconds(); var m=d.getMinutes(); var h=d.getHours(); var am_pm; if (s<10) {s="0" + s} if (m<10) {m="0" + m} if (h>12) {h-=12;am_pm = "pm"}
else {am_pm="am"} if (h<10) {h="0" + h} document.getElementById("clock").innerHTML=h + ":" + m + ":" + s + am_pm; setTimeout("refrClock()",1000); } refrClock();

var d_names = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var m_names = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var d = new Date();
var curr_day = d.getDay();
var curr_date = d.getDate();
var sup = "";
if (curr_date == 1 || curr_date == 21 || curr_date ==31)
   {
   sup = "st";
   }
else if (curr_date == 2 || curr_date == 22)
   {
   sup = "nd";
   }
else if (curr_date == 3 || curr_date == 23)
   {
   sup = "rd";
   }
else
   {
   sup = "th";
   }
var curr_month = d.getMonth();
var curr_year = d.getFullYear();

document.write(d_names[curr_day] + " " + curr_date + "<SUP>"
+ sup + "</SUP> " + m_names[curr_month] + " " + curr_year);

//-->
</script>

                <img id="upshrink" src="'
$settings['images_url'], '/upshrink.gif" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="display: none;" />
            </li>'
;

    if (
$context['user']['is_logged'])
        echo 
'
            <li id="name">'
$txt['hello_member'], ' <em>'$context['user']['name'], '</em></li>';

    else
        echo 
'
            <li id="name">'
$txt['hello_guest'], ' <em>'$txt['guest'], '</em></li>';

    echo 
'
        </ul>'
;

    if (
$context['user']['is_logged'] || !empty($context['show_login_bar']))
        echo 
'
        <div id="user_section" class="bordercolor"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
            <div class="windowbg2 clearfix">'
;

    if (!empty(
$context['user']['avatar']))
        echo 
'
                <div id="myavatar">'
$context['user']['avatar']['image'], '</div>';

    
// If the user is logged in, display stuff like their name, new messages, etc.


    
if ($context['user']['is_logged'])
    {
        echo 
'
                <ul class="reset">
                    <li class="greeting">'
$context['greeting'], '</span></li>
                    <li><a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a></li>
                    <li><a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a></li>';

        
// Is the forum in maintenance mode?
        
if ($context['in_maintenance'] && $context['user']['is_admin'])
            echo 
'
                    <li class="notice">'
$txt['maintain_mode_on'], '</li>';

        
// Are there any members waiting for approval?
        
if (!empty($context['unapproved_members']))
            echo 
'
                    <li>'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=admin;area=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '</li>';

        
// Show the total time logged in?
        
if (!empty($context['user']['total_time_logged_in']))
        {
            echo 
'
                    <li>'
$txt['totalTimeLogged1'];

            
// If days is just zero, don't bother to show it.
            
if ($context['user']['total_time_logged_in']['days'] > 0)
                echo 
$context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

            
// Same with hours - only show it if it's above zero.
            
if ($context['user']['total_time_logged_in']['hours'] > 0)
                echo 
$context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

            
// But, let's always show minutes - Time wasted here: 0 minutes ;).
            
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
                    </li>'
;
        }

        if (!empty(
$context['open_mod_reports']) && $context['show_open_reports'])
            echo 
'
                    <li><a href="'
$scripturl'?action=moderate;area=reports">'sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
        echo 
'
                </ul>'
;
    }
    
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
    
elseif (!empty($context['show_login_bar']))
    {
        echo 
'
                <script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/sha1.js"></script>
                <form class="windowbg" id="guest_form" action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
                    '
$txt['login_or_register'], '<br />
                    <input type="text" name="user" size="10" class="input_text" />
                    <input type="password" name="passwrd" size="10" class="input_password" />
                    <select name="cookielength">
                        <option value="60">'
$txt['one_hour'], '</option>
                        <option value="1440">'
$txt['one_day'], '</option>
                        <option value="10080">'
$txt['one_week'], '</option>
                        <option value="43200">'
$txt['one_month'], '</option>
                        <option value="-1" selected="selected">'
$txt['forever'], '</option>
                    </select>
                    <input type="submit" value="'
$txt['login'], '" class="button_submit" /><br />
                    '
$txt['quick_login_dec'];

        if (!empty(
$modSettings['enableOpenID']))
            echo
'
                    <br />
                    <input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />'
;

        echo 
'
                    <input type="hidden" name="hash_passwrd" value="" />
                </form>'
;
    }

    if (
$context['user']['is_logged'] || !empty($context['show_login_bar']))
        echo 
'
            </div>
        </div>'
;

    echo 
'
        <div id="news_section" class="titlebg2 clearfix"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
            <form class="floatright" id="search_form" action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
                <a href="'
$scripturl'?action=search;advanced" title="'$txt['search_advanced'], '"><img id="advsearch" src="'.$settings['images_url'].'/filter.gif" align="middle" alt="'$txt['search_advanced'], '" /></a>
                <input type="text" name="search" value="" style="width: 140px;" class="input_text" />&nbsp;
                <input type="submit" name="submit" value="'
$txt['search'], '" style="width: 11ex;" class="button_submit" />
                <input type="hidden" name="advanced" value="0" />'
;

    
// Search within current topic?
    
if (!empty($context['current_topic']))
        echo 
'
                <input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
        
// If we're on a certain board, limit it to this board ;).
    
elseif (!empty($context['current_board']))
        echo 
'
                <input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

    echo 
'
            </form>'
;

        
// Show a random news item? (or you could pick one from news_lines...)
        
if (!empty($settings['enable_news']))
            echo 
'
                <h2><FONT size="-1"><MARQUEE bgcolor="" direction="left" loop="0" width="80%"><STRONG>'
, (($context['allow_advnews']) ? '<a href="'$scripturl'?action=news" target="_self">'$context['random_news_line']. ' </a>' ''$txt['news']. ': '), '</STRONG></MARQUEE></FONT></h2>';

 
    echo 
'
        </div>
    </div>'
;

    
// Define the upper_section toggle in JavaScript.
    
echo '
    <script type="text/javascript"><!-- // --><![CDATA[
        var oMainHeaderToggle = new smc_Toggle({
            bToggleEnabled: true,
            bCurrentlyCollapsed: '
, empty($options['collapse_header']) ? 'false' 'true'',
            aSwappableContainers: [
                \'user_section\',
                \'news_section\'
            ],
            aSwapImages: [
                {
                    sId: \'upshrink\',
                    srcExpanded: smf_images_url + \'/upshrink.gif\',
                    altExpanded: '
JavaScriptEscape($txt['upshrink_description']), ',
                    srcCollapsed: smf_images_url + \'/upshrink2.gif\',
                    altCollapsed: '
JavaScriptEscape($txt['upshrink_description']), '
                }
            ],
            oThemeOptions: {
                bUseThemeSettings: '
$context['user']['is_guest'] ? 'false' 'true'',
                sOptionName: \'collapse_header\',
                sSessionVar: '
JavaScriptEscape($context['session_var']), ',
                sSessionId: '
JavaScriptEscape($context['session_id']), '
            },
            oCookieOptions: {
                bUseCookie: '
$context['user']['is_guest'] ? 'true' 'false'',
                sCookieName: \'upshrink\'
            }
        });
    // ]]></script>'
;

    
// Show the menu here, according to the menu sub template.
    
template_menu();

    
// The main content should go here.
    
echo '
    <div id="bodyarea">'
;


}

function 
template_body_below()
{
    global 
$context$settings$options$scripturl$txt$modSettings;

    echo 
'
    </div>'
;

    
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
    
echo '
    <div id="footer_section"><div class="frame">
        <ul class="reset">
            <li class="copyright">'
theme_copyright(), '</li>
            <!-- original SMF footer -->

        </ul>'
;

    
// Show the navigation tree.
     
theme_linktree();


    
// Show the load time?
    
if ($context['show_load_time'])
        echo 
'
        <p class="smalltext" id="show_loadtime">'
$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';

    echo 
'
    </div>
</div>'
;
}

function 
template_html_below()
{
    global 
$context$settings$options$scripturl$txt$modSettings;

    echo 
'
  </div>
</div>
'
;
//Scroll Go up
   
    
echo '
       <a href="#" id="toTop">'
,$txt['Scrollgoup'],'</a>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show false)
{
    global 
$context$settings$options$shown_linktree;

    
// If linktree is empty, just return - also allow an override.
    
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
        return;

    echo 
'
    <ul class="linktree" id="linktree_'
, empty($shown_linktree) ? 'upper' 'lower''">';

    
// Each tree item has a URL and name. Some may have extra_before and extra_after.
    
foreach ($context['linktree'] as $link_num => $tree)
    {
        echo 
'
        <li'
, ($link_num == count($context['linktree']) - 1) ? ' class="last"' '''>';

        
// Show something before the link?
        
if (isset($tree['extra_before']))
            echo 
$tree['extra_before'];

        
// Show the link, including a URL if it should have one.
        
echo $settings['linktree_link'] && isset($tree['url']) ? '
            <a href="' 
$tree['url'] . '"><span>' $tree['name'] . '</span></a>' '<span>' $tree['name'] . '</span>';

        
// Show something after the link...?
        
if (isset($tree['extra_after']))
            echo 
$tree['extra_after'];

        
// Don't show a separator for the last one.
        
if ($link_num != count($context['linktree']) - 1)
            echo 
' &gt;';

        echo 
'
        </li>'
;
    }
    echo 
'
    </ul>'
;

    
$shown_linktree true;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
    global 
$context$settings$options$scripturl$txt$modSettings;
    echo 
'
    <div id="tabs6">
         <ul>'
;
              foreach (
$context['menu_buttons'] as $act => $button)
        echo 
'<li><a '$button['active_button'] ? ' class="current"' '' ' href="'$button['href'], '"><span>'$button['title'], '</span></a></li>';

        echo 
'
    </ul>
 </div>'
;
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$strip_options = array())
{
    global 
$settings$context$txt$scripturl;

    if (!
is_array($strip_options))
        
$strip_options = array();

    
// Right to left menu should be in reverse order.
    
if ($context['right_to_left'])
        
$button_strip array_reverse($button_striptrue);

    
// Create the buttons...
    
$buttons = array();
    foreach (
$button_strip as $key => $value)
        if (!isset(
$value['test']) || !empty($context[$value['test']]))
            
$buttons[] = '<li' . (isset($value['active']) ? ' class="active"' '') . '><a href="' $value['url'] . '"' . (isset($value['custom']) ? ' ' $value['custom'] : '') . '><span>' . (isset($value['active']) ? '<em>' '') . $txt[$value['text']] . (isset($value['active']) ? '</em>' '') . '</span></a></li>';

    if (!empty(
$buttons))
    {
        
// Make the last one, as easy as possible.
        
$list_item = array('<li>','<li class="active">');
        
$active_item = array('<li class="last">','<li class="active last">');

        
$buttons[count($buttons) - 1] = str_replace($list_item$active_item$buttons[count($buttons) - 1]);
    }

    echo 
'
        <div class="buttonlist'
$direction != 'top' '_bottom' '''"', (empty($buttons) ? ' style="display: none;"' ''), (!empty($strip_options['id']) ? ' id="' $strip_options['id'] . '"'''), '>
            <ul class="reset clearfix">
                '
implode(''$buttons), '
            </ul>
        </div>'
;
}

?>

Title: Re: Custom Top Menu - Updated for RC4
Post by: Inv_Trdr on March 17, 2011, 03:13:47 PM
Does this work with SMF 1.1.13 version? I do not see the Top Menu in my admin panel but it installed successfully even with the error messages.
Thanks.
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on March 17, 2011, 03:26:28 PM
Quote from: Inv_Trdr on March 17, 2011, 03:13:47 PM
Does this work with SMF 1.1.13 version? I do not see the Top Menu in my admin panel but it installed successfully even with the error messages.
Thanks.
It does not work with 1.1.x, apparently.

@ techno489: You should upgrade to 2.0 RC5. At least your file says you are using 2.0 RC3.
Title: Re: Custom Top Menu - Updated for RC4
Post by: Inv_Trdr on March 17, 2011, 03:33:59 PM
Not sure why my file says that. I just upgraded to 1.1.13 two days ago. Where do you see that? Are any of the RCs in 2.0 stable? How do I upgrade to a stable 2.0 version? SO leave the mod in there for now?
Thanks.
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on March 17, 2011, 03:39:06 PM
Quote from: Inv_Trdr on March 17, 2011, 03:33:59 PM
Not sure why my file says that. I just upgraded to 1.1.13 two days ago. Where do you see that? Are any of the RCs in 2.0 stable? How do I upgrade to a stable 2.0 version? SO leave the mod in there for now?
Thanks.
I was replying to the user above your previous post (indicated with the "@ personsname:") :)

He has "// Version: 2.0 RC3" in the file he posted :)

However, 2.0 RC5 is almost stable.
You upgrade from 1.x be using the Large upgrade package. You upgrade the same way you upgraded your 1.1.x installation :)

But another however, you may have the risk that your current mods and themes aren't compatible with the 2.x series!
Title: Re: Custom Top Menu - Updated for RC4
Post by: T3CHN0 on March 18, 2011, 09:25:53 AM
Quote from: Inv_Trdr on March 17, 2011, 03:33:59 PM
Not sure why my file says that. I just upgraded to 1.1.13 two days ago. Where do you see that? Are any of the RCs in 2.0 stable? How do I upgrade to a stable 2.0 version? SO leave the mod in there for now?
Thanks.

I would love to. but 6months or so ago my forum had errors, i found by moving the theme darkrain over the top of default theme
my forum works again and better then it did before. i have have the forum working perfect ever since.
i am scared if i try to upgrade it will destroy the forum.
but still would love to use this mod
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on March 18, 2011, 11:01:43 AM
Quote from: techno489 on March 18, 2011, 09:25:53 AM
Quote from: Inv_Trdr on March 17, 2011, 03:33:59 PM
Not sure why my file says that. I just upgraded to 1.1.13 two days ago. Where do you see that? Are any of the RCs in 2.0 stable? How do I upgrade to a stable 2.0 version? SO leave the mod in there for now?
Thanks.

I would love to. but 6months or so ago my forum had errors, i found by moving the theme darkrain over the top of default theme
my forum works again and better then it did before. i have have the forum working perfect ever since.
i am scared if i try to upgrade it will destroy the forum.
but still would love to use this mod
It will not destroy the forum :)

Most mods have already been updated to the 2.0 RCX series :)
Title: Re: Custom Top Menu - Updated for RC4
Post by: T3CHN0 on March 18, 2011, 11:05:40 AM
if that is true then i will do it, i downloaded the upgrade but see all the php files in it and if i go over the top of the files already
there with the upgrade it will change/replace my current files and in affect kill the forum. I don't know any other way to upgrade!!!
maybe doing it wrong
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on March 18, 2011, 11:11:58 AM
Quote from: techno489 on March 18, 2011, 11:05:40 AM
if that is true then i will do it, i downloaded the upgrade but see all the php files in it and if i go over the top of the files already
there with the upgrade it will change/replace my current files and in affect kill the forum. I don't know any other way to upgrade!!!
maybe doing it wrong
It will replace all of the files, but will NOT kill your forum.

Just reinstall your mods (database information is still stored!) after upgrading and done!
Title: Re: Custom Top Menu - Updated for RC4
Post by: T3CHN0 on March 18, 2011, 11:18:42 AM
OK, i will ask, if i backup the hole forum to my computer and then do the upgrade!!!
if it crashes and burns can i restore the old forum back and will the data base still work
or does the upgrade update the data base to only work with rc5?
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on March 18, 2011, 11:21:36 AM
Quote from: techno489 on March 18, 2011, 11:18:42 AM
OK, i will ask, if i backup the hole forum to my computer and then do the upgrade!!!
if it crashes and burns can i restore the old forum back and will the data base still work
or does the upgrade update the data base to only work with rc5?
If you take a backup of the database (Admin > Maintenance > Database) you have a backup of a working 1.1.xx database since 2.0 indeed has a different structure.

And you should INDEED take backups, forgot to tell you ;)
Title: Re: Custom Top Menu - Updated for RC4
Post by: T3CHN0 on March 18, 2011, 11:25:44 AM
Quote from: Yoshi2889 on March 18, 2011, 11:21:36 AM
Quote from: techno489 on March 18, 2011, 11:18:42 AM
OK, i will ask, if i backup the hole forum to my computer and then do the upgrade!!!
if it crashes and burns can i restore the old forum back and will the data base still work
or does the upgrade update the data base to only work with rc5?
If you take a backup of the database (Admin > Maintenance > Database) you have a backup of a working 1.1.xx database since 2.0 indeed has a different structure.

And you should INDEED take backups, forgot to tell you ;)
my forum is rc2 not 1.1.x remember...
will the sql data base on the host change from rc2 to rc5 or is there no effects the the sql
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on March 18, 2011, 11:45:00 AM
Quote from: techno489 on March 18, 2011, 11:25:44 AM
Quote from: Yoshi2889 on March 18, 2011, 11:21:36 AM
Quote from: techno489 on March 18, 2011, 11:18:42 AM
OK, i will ask, if i backup the hole forum to my computer and then do the upgrade!!!
if it crashes and burns can i restore the old forum back and will the data base still work
or does the upgrade update the data base to only work with rc5?
If you take a backup of the database (Admin > Maintenance > Database) you have a backup of a working 1.1.xx database since 2.0 indeed has a different structure.

And you should INDEED take backups, forgot to tell you ;)
my forum is rc2 not 1.1.x remember...
will the sql data base on the host change from rc2 to rc5 or is there no effects the the sql
Probably it will; RC2 is old.
But no mod data is affected.
Title: Re: Custom Top Menu - Updated for RC4
Post by: T3CHN0 on March 18, 2011, 11:53:30 AM
OK, thanks for your help. i would rather just add the edit to my current php file
but if i cant and need to upgrade to do it, i might not bother with it.

i will think it over all the same and might do an upgrade one day.

lots of edits to the forum i did that are not mods you can download and I don't want to do them all over again
took me a long time to the them the first time.

maybe if someone can help with editing my current php for now!!!

again thankyou very much for your help.
Title: Re: Custom Top Menu - Updated for RC4
Post by: cultureco on March 26, 2011, 02:38:51 AM
hello
Thank you for this usefull mod. It's working fine under 2.0 RC5 but i would like, same as this board here, the tab to be blue on the page we are (forum) and grey for other tabs just for à better look.
What do i have to change in css or index template ?
Thank you
Title: Re: Custom Top Menu - Updated for RC4
Post by: ukhalik2 on April 02, 2011, 03:44:24 AM
So anyone got it working on RC5 ?
Title: Re: Custom Top Menu - Updated for RC4
Post by: mrmeeler on April 02, 2011, 11:05:46 AM
Wish it was for rc5
Title: Re: Custom Top Menu - Updated for RC4
Post by: smp420 on May 16, 2011, 06:22:00 PM
Quote from: cultureco on March 26, 2011, 02:38:51 AM
hello
Thank you for this usefull mod. It's working fine under 2.0 RC5 but i would like, same as this board here, the tab to be blue on the page we are (forum) and grey for other tabs just for à better look.
What do i have to change in css or index template ?
Thank you
Can anybody else confirm it works with RC5? I was actually going to make the tabs for the page your on active when I made this mod. However this would only easily be done for tabs that link to SMF actions for example when the URL ends in for example action=forum; or action=calendar of course you could still link to any page but only smf actions would have the active tab working. I could add this feature in if enough people want it though.
Title: Re: Custom Top Menu - Updated for RC4
Post by: Spoogs on May 16, 2011, 06:58:03 PM
yes it works
Installs right out the box
Title: Re: Custom Top Menu - Updated for RC4
Post by: Bolt™ on May 25, 2011, 05:51:10 PM
Please, Please, can you update this for RC5 I really need this mod...

Thank you...
Title: Re: Custom Top Menu - Updated for RC4
Post by: MarcusJ on June 14, 2011, 08:09:46 PM
This is a great mod.  I would be extremely grateful for an update to 2.0 final.
Title: Re: Custom Top Menu - Updated for RC4
Post by: ChaosEnergy on June 16, 2011, 09:27:51 AM
yes, seems not to work in 2.0 final
Title: Re: Custom Top Menu - Updated for RC4
Post by: CaptainKirk on June 18, 2011, 12:23:25 PM
Quote from: ChaosEnergy on June 16, 2011, 09:27:51 AM
yes, seems not to work in 2.0 final

Well, it actually does work in 2.0, but it depends on what other mods you may have installed and you need to have it be the last mod you install.  At least that's been my experience so far.  I'll be much happier however when an updated version is released expressly to work with SMF 2.0 final.
Title: Re: Custom Top Menu - Updated for RC4
Post by: NanoSector on June 18, 2011, 02:08:36 PM
Works perfectly fine here in a vanilla SMF 2.0 install...
Title: Re: Custom Top Menu - Updated for RC4
Post by: MATTEK on June 21, 2011, 01:22:31 AM
Just installed 2.0. The modifications tab doesn't have the Top Menu config tab.
Title: Re: Custom Top Menu - Updated for RC4
Post by: snadge on October 25, 2011, 08:26:23 PM
will not uninstall in 2.0.1 ??

test modification of subs.php files fails
Title: Re: Custom Top Menu - Updated for RC4
Post by: awolexpat on December 05, 2011, 02:31:36 AM
Hi smp420,
Nice mod but I am having a couple of problems getting it to appear where and how I want on custom themes, most notably Blackhead by Crip. I have tried putting the code in the index.template.php in a variety of places but the best I have been able to get so far is almost top centre, slightly to the right; I would really like it far right above whatever else is on the right, sometimes the logo, sometimes the user info/log in depending on the theme, but on Blackhead that pushes the other information to the left. I am going to ask Crip on his theme thread as well but can you give me any pointers?

The other one I am having problems with is flagrant_alt but Blackhead is my main concern. I also want to be able to have the font different colours depending on which theme is selected - I can make it the same colour for all themes by putting the code with the tab title but I'm pretty sure I should be able to do it with the individual css for each theme but need some pointers on how I should do that as I am not that good at coding. I would only want to change the text/tab colours for this, not the whole theme! Do I have to specify a certain name of the div in the css and if so what name? Or some other method? I'll probably be able to get there eventually by myself by bumbling around the code but it would be a great help to have someone who knows what they are doing give some pointers!
Title: Re: Custom Top Menu - Updated for RC4
Post by: T3CHN0 on December 05, 2011, 10:37:30 AM
Anyone interested I use this on core them

Index.template.php
find
        // Show the total time logged in?

add before
    // The code for the menu you installed dont you remember it?
   for ($i=1; $i<6; $i++)
      {
         if (!empty($modSettings['tab_url' . $i]) && !empty($modSettings['tab_title' . $i]))
         {
            echo '
                  <a href="';
                    if(!empty($modSettings['newpage' . $i]))
                        echo ' TARGET="_blank"';
                            echo '>
            <span>', $modSettings['tab_title' . $i], '</span></a>';
         }
      }



Looks link this,,, I couldn't get it to work any better then that. >> click image to make bigger<<
see the links for Goolge HotMail and AUR

(http://img51.imageshack.us/img51/3964/ctm1.png)
Title: Re: Custom Top Menu - Updated for RC4
Post by: GlitchPC on December 09, 2011, 10:36:52 AM
I'd like to know how to get this to work on Crip's Anecdota theme, as well.  Crip has replaced the div container of the smf logo with his own code...so, trying to get this mod to install on one of his themes is almost impossible.

So...if anyone has come up with an answer...it sure would be appreciated if you could float some of that info my way.

Thanks, in advance...
Title: Re: Custom Top Menu - Updated for RC4
Post by: T3CHN0 on December 11, 2011, 09:38:04 AM
Quote from: GlitchPC on December 09, 2011, 10:36:52 AM
I'd like to know how to get this to work on Crip's Anecdota theme, as well.  Crip has replaced the div container of the smf logo with his own code...so, trying to get this mod to install on one of his themes is almost impossible.

So...if anyone has come up with an answer...it sure would be appreciated if you could float some of that info my way.

Thanks, in advance...
My Main forum is also one from Crip and I find this mod doesn't work on most custom themes unless the theme doesn't have
it's own index.template.php then this mod works fine.

I had a play around for you but no matter what I did. I simply can not get this mod to work on Crips theme's
So I made a little something that will work for you but it's an edit not a mod and to change url's images or link names
you will need to edit it your self.

here is a bit of my themes darkrainv2 by crip
_____________________________________________________________________________________________________
    // If we have new PMs...
    if($context['show_pm_popup'])
    echo '
    <div id="pm_popup" class="windowbg">
    <h5 class="catbg">

        <span class="floatright"><a href="#" onclick="closefPmPopup()"><img src="', $settings['images_url'], '/icons/quick_remove.gif" alt="', $txt['pm_popup_close'], '" /></a></span>
        ', $txt['pm_popup'], ' [', $context['user']['unread_messages'], ']
    </h5>
    <p class="content">
        ', str_replace('\n', '<br />', $txt['show_personal_messages']), '<br /><br />
        <a href="', $scripturl, '?action=pm" target="_blank" onclick="closefPmPopup()"><img src="', $settings['images_url'], '/icons/package_installed.gif" alt="" /> ', $txt['yes'], '</a> &nbsp;&nbsp;&nbsp; <a href="#" onclick="closefPmPopup()"><img src="', $settings['images_url'], '/icons/package_old.gif" alt="" /> ', $txt['no'], '</a>
    </p>
    </div>';

    echo '

        <div id="mainframe"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>
        <div id="ob1">
        <div id="ib1">
        <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
     <td align="center">';
    echo '

    <a href="'.$scripturl.'" title="', $context['forum_name'], '"><img src="', $settings['images_url'], '/myslogan.png" style="margin: 2px;" alt="', $context['forum_name'], '" /></a>';

    echo '
        </td>
     </tr>
</table>';
     echo '
    <div class="tborder">

        <div class="catbg" align="center">

<a href="http://www.google.com (http://www.google.com)"><img src="', $settings['images_url'], '/google.gif" style="margin: 2px;" alt="', Google, '" /></a><a href="http://www.Hotmail.com (http://www.hotmail.com)"><img src="', $settings['images_url'], '/hotmail.png" style="margin: 2px;" alt="', HotMail, '" /></a><a href="http://www.Yahoo.com (http://www.yahoo.com)"><img src="', $settings['images_url'], '/yahoo.png" style="margin: 2px;" alt="', Yahoo, '" /></a><a href="http://www.YouTube.com (http://www.youtube.com)"><img src="', $settings['images_url'], '/youtube.png" style="margin: 2px;" alt="', Youtube, '" /></a><a href="http://www.windows.com (http://www.windows.com)"><img src="', $settings['images_url'], '/windows.png" style="margin: 2px;" alt="', MSwindows, '" /></a>

        </div>';

    // Display user name and time.
_____________________________________________________________________________________________________________


The part I made BOLD is the part I added my self for custom links.
align="center"                                                     <>>>>You can make it left or right side as well:: I made in center

you will notice the http://www (http://www). ??? ??? ?.com       <>>>> you can edit to what you want

$settings['images_url'], '/google.gif"                   <>>>> you can make your own images to show instead of a text name BE SURE to add it to theme/images

alt="',Google,'"                                                    <>>>>The text name that will show if image not found

I hope this helps you out with what you are trying to add to your forum
and if you want more links just simply copy and past the above strings to make more links.


I know it's not the best answer but at least with the above coding you might be able to work something out for your forum.
If I knew how to make modes I would have done it.. But I only know how to trouble shoot and correct mods but not create :(

cheers
Title: Re: Custom Top Menu - Updated for RC4
Post by: GlitchPC on December 12, 2011, 09:50:19 AM
Sorry for the late reply...I decide not to use this mod...due to the issue with custom themes. Anyhow...thanks for the reply and I'm sorry I didn't try your recommendations.
Title: Re: Custom Top Menu - Updated for RC4
Post by: poojim on December 31, 2011, 07:26:41 AM
Somebody know those codes of top menu in the core theme (including the CSS) so I can put it on a different theme that I use; and eventually install this mod?

What about the child pages for this mod?
Title: Re: Custom Top Menu - Updated for RC4
Post by: OnzeDanny on January 29, 2012, 08:23:28 AM
A tip to reduce some code.
Using for conditions, so if you like more menu items its easier to modify.
;)

ORIGINAL:

$config_vars = array(
array('text', 'tab_title1'),
array('text', 'tab_url1'),
array('check', 'newpage1'),
array('text', 'tab_title2'),
array('text', 'tab_url2'),
array('check', 'newpage2'),
array('text', 'tab_title3'),
array('text', 'tab_url3'),
array('check', 'newpage3'),
array('text', 'tab_title4'),
array('text', 'tab_url4'),
array('check', 'newpage4'),
array('text', 'tab_title5'),
array('text', 'tab_url5'),
array('check', 'newpage5'),
);


CHANGED TO:
 
$start = 1;
$config_vars = array();

for ($start; $start < 6; $start++) {
$config_vars[] = array('text', 'tab_title'.$start);
$config_vars[] = array('text', 'tab_url'.$start);
$config_vars[] = array('check', 'newpage'.$start);   
}


and this one:

ORIGINAL

   for ($i=1; $i<6; $i++)
{
$txt['tab_url' . $i] = 'Tab url';
$txt['newpage' . $i] = 'Open tab in new page.';
}
$txt['custom_menu_title'] = 'Top Menu';
$txt['tab_title1'] = '1st tab name';
$txt['tab_title2'] = '2nd tab name';
$txt['tab_title3'] = '3rd tab name';
$txt['tab_title4'] = '4th tab name';
$txt['tab_title5'] = '5th tab name';


CHANGED TO:
$txt['custom_menu_title'] = 'Top Menu';
    for ($i=1; $i<6; $i++)                       
{                                             
$txt['tab_url' . $i] = 'Tab URL';                   
$txt['newpage' . $i] = 'Open in new page';     
$txt['tab_title' . $i] = 'Tab name ' . $i;       
  }                                             
Title: Re: Custom Top Menu - Updated for RC4
Post by: awolexpat on June 23, 2012, 04:49:11 AM
Hi everyone,
I have finally had time to sit down and fiddle with the index template.php and css for my troublesome themes, prompted by the fact that I needed to add an extra button to my top menu! The themes I have played around with and got working are: Blackhead by Crip and flagrant_alt also by Crip. I also have Clear Sky by zutzu but that worked pretty much out of the box I seem to remember.
If anyone wants or needs to see the relevant files from my themes, bearing in mind I have a LOT of mods installed, I would be happy to share what i have done. Essentially though, with Blackhead I had to duplicate and rename the css for the drop down menu and then make various changes there, plus the main bugbear, getting the position to work which needed some (actually a lot) of fiddling around in the index template.php. flagrant_alt was actually a lot easier as by then i had worked out how to do things! Bear in mind that I wanted a particular position for my top menu (top right), and didn't require drop downs.

If anyone wants to look to see what i have done, my forum front page (Simple Portal) allows to change the themes, and you can find it at http://www.awolonline.net/forum/ (http://www.awolonline.net/forum/)
Not trying to promote my forum, just hoping that it might help someone who has been struggling with getting this implemented on Crips themes.
Title: Re: Custom Top Menu - Updated for RC4
Post by: smp420 on June 30, 2012, 05:58:52 PM
Does this work as is on a fresh install of the latest version of smf? If it doesn't I'd be happy to update it if someone can supply a test forum.
Title: Re: Custom Top Menu - Updated for RC4
Post by: Djekaster on October 25, 2012, 10:24:32 AM
In result: does anybody knows how to get this mod to be working in any custom theme in RC5? I have 23 themes installed there in my forum (it's a design feature - user can choose which theme they like to use), but only few themes have no error. The most of themes show errors while I'm trying to install this mod. If it's impossible to repair, maybe somebody knows any other mod, which could let me (attention!) re-design the order and the number of buttons on the main top panel? I already installed 6 buttons mod, but it's just adding new buttons, while I need to reduce the total number of buttons hiding some of them into sub-menu. I'd be grateful for any help.
Title: Re: Custom Top Menu - Updated for RC4
Post by: smp420 on December 29, 2015, 08:54:38 PM
Hi, everyone. Been away from SMF for a few years. I'm going to get a test forum going soon because I want to get back into it. Can anyone confirm that this works on a clean install of the newest SMF version? If it needs to be updated I will get to it soon.
Title: Re: Custom Top Menu - Updated for RC4
Post by: br360 on December 30, 2015, 12:42:08 AM
I have it on a few sites that run 2.0.11, and it did install cleanly on all of them (even with a bunch of other mods installed).
Title: Re: Custom Top Menu - Updated for RC4
Post by: smp420 on December 30, 2015, 01:09:05 PM
Ok cool I will update the mod page. I hope to get a test forum up soon.
Title: Re: Custom Top Menu
Post by: keyboard on December 30, 2015, 11:40:11 PM
Hi
I am missing something here, I still see the SMF Logo at top menu. I have successfully installed the mod without errors. I am running ver 2.0.11 , minimal mods, and default theme.

These are my settings:
1st tab name    Google
Tab url        http://www.google.com

Please advise
Ron
Title: Re: Custom Top Menu
Post by: keyboard on January 14, 2016, 12:45:21 PM
Anyone ?????
Title: Re: Custom Top Menu
Post by: skb on May 30, 2016, 04:21:20 AM
I'd suggest some formatting options be added (if possible) to the Text Links placed. Like Bold/Italic/Color etc.
Title: Re: Custom Top Menu
Post by: steve51184 on August 31, 2016, 09:48:37 PM
anyway to have more then 5?
Title: Re: Custom Top Menu
Post by: pijo on September 29, 2017, 03:07:02 PM
Doesn'nt work on 2.0.13. Pity !!! Any update soon ?
Title: Re: Custom Top Menu
Post by: br360 on September 29, 2017, 03:25:52 PM
It works just fine on 2.0.13. What issues are you having?
Title: Re: Custom Top Menu
Post by: Shades. on February 19, 2021, 11:10:32 AM
Any plans to have this work on 2.1 rc3? Or is there a similar mod?
Title: Re: Custom Top Menu
Post by: Speed King on February 20, 2021, 12:10:38 AM
Quote from: Shades. on February 19, 2021, 11:10:32 AM
Any plans to have this work on 2.1 rc3? Or is there a similar mod?

This mod can work with SMF 2.1 RC3  :)

After mod installation, open index.template.php file(s) for each theme which you use...

Find:

echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.svg" alt="Simple Machines Forum" title="Simple Machines Forum">' : '<div id="siteslogan">' . $settings['site_slogan'] . '</div>', '';


Replace with:

// The code for the menu you installed dont you remember it?
   echo '
<div id="site_menu" class="align_right" style="float: right; margin-top: 9px;">
<ul class="dropmenu" id="site_nav">';

   for ($i=1; $i<6; $i++)
      {
         if (!empty($modSettings['tab_url' . $i]) && !empty($modSettings['tab_title' . $i]))
         {
            echo '
               <li id="button', $i, '">
                  <a class="firstlevel" href="', $modSettings['tab_url' . $i],'"';
if(!empty($modSettings['newpage' . $i]))
echo ' TARGET="_blank"';
echo '>
<span class="firstlevel">', $modSettings['tab_title' . $i], '</span>
                  </a>
               </li>';
         }
      }
   echo'
         </ul>
            </div>';



This mod works fine on my forum, but I cannot post links yet.
You can add up to 5 top menu items.
Title: Re: Custom Top Menu
Post by: Shades. on February 20, 2021, 05:07:04 PM
Worked great thanks! 8)