News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Footer Menu v.1

Started by Mick., March 29, 2011, 11:14:19 PM

Previous topic - Next topic

-=[Vyorel]=-

Quote from: bluedevil on April 07, 2011, 09:13:05 AM
@Vyorel

I'm at work now and not behind a computer.  I also use dsv4 and will post the solution tonight for ya ;)
I solved... ;)

How?
Well, i modified BoardIndex.template.php file from DSv4 theme. I searched

oCookieOptions: {
bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
sCookieName: \'upshrinkIC\'
}
});
// ]]></script>';
}
function template_tidy_children() {

lines (on line 543 is) and i replaced this way

oCookieOptions: {
bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
sCookieName: \'upshrinkIC\'
}
});
// ]]></script><br />MENU HERE';
}
function template_tidy_children() {



Thank you for this mod! :)

Romanian translate:


<file name="$themedir/languages/Modifications.romanian.php">
<operation>
<search position="end" />
<add><![CDATA[
//Footer Menu strings
$txt['footer_admin_menu'] = 'Meniu Footer';
$txt['fmenu_settings_title'] = 'Configuratie Meniu Footer';
$txt['fmenu_settings_desc'] = 'Modifica configuratiile pentru modul cu Meniul in Footer';

//Strings for the admin settings area
$txt['fmenu_enabled'] = 'Activeaza Meniul in Footer';
$txt['fmenu_heading1'] = 'Nume Coloana #1: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_heading2'] = 'Nume Coloana #2: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_heading3'] = 'Nume Coloana #3: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_heading4'] = 'Nume Coloana #4: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_heading5'] = 'Nume Coloana #5: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_title1'] = 'titlul 1';
$txt['fmenu_url1'] = 'url 1';
$txt['fmenu_title2'] = 'titlul 2';
$txt['fmenu_url2'] = 'url 2';
$txt['fmenu_title3'] = 'titlul 3';
$txt['fmenu_url3'] = 'url 3';
$txt['fmenu_title4'] = 'titlul 4';
$txt['fmenu_url4'] = 'url 4';
$txt['fmenu_title5'] = 'titlul 5';
$txt['fmenu_url5'] = 'url 5';
$txt['fmenu_title6'] = 'titlul 6';
$txt['fmenu_url6'] = 'url 6';
$txt['fmenu_title7'] = 'titlul 7';
$txt['fmenu_url7'] = 'url 7';
$txt['fmenu_title8'] = 'titlul 8';
$txt['fmenu_url8'] = 'url 8';
$txt['fmenu_title9'] = 'titlul 9';
$txt['fmenu_url9'] = 'url 9';
$txt['fmenu_title10'] = 'titlul 10';
$txt['fmenu_url10'] = 'url 10';
$txt['fmenu_title11'] = 'titlul 11';
$txt['fmenu_url11'] = 'url 11';
$txt['fmenu_title12'] = 'titlul 12';
$txt['fmenu_url12'] = 'url 12';
$txt['fmenu_title13'] = 'titlul 13';
$txt['fmenu_url13'] = 'url 13';
$txt['fmenu_title14'] = 'titlul 14';
$txt['fmenu_url14'] = 'url 14';
$txt['fmenu_title15'] = 'titlul 15';
$txt['fmenu_url15'] = 'url 15';
$txt['fmenu_title16'] = 'titlul 16';
$txt['fmenu_url16'] = 'url 16';
$txt['fmenu_title17'] = 'titlul 17';
$txt['fmenu_url17'] = 'url 17';
$txt['fmenu_title18'] = 'titlul 18';
$txt['fmenu_url18'] = 'url 18';
$txt['fmenu_title19'] = 'titlul 19';
$txt['fmenu_url19'] = 'url 19';
$txt['fmenu_title20'] = 'titlul 20';
$txt['fmenu_url20'] = 'url 20';
$txt['fmenu_title21'] = 'titlul 21';
$txt['fmenu_url21'] = 'url 21';
$txt['fmenu_title22'] = 'titlul 22';
$txt['fmenu_url22'] = 'url 22';
$txt['fmenu_title23'] = 'titlul 23';
$txt['fmenu_url23'] = 'url 23';
$txt['fmenu_title24'] = 'titlul 24';
$txt['fmenu_url24'] = 'url 24';
$txt['fmenu_title25'] = 'titlul 25';
$txt['fmenu_url25'] = 'url 25';
//End Footer Menu Strings
]]></add>
</operation>
</file>

<file name="$themedir/languages/Modifications.romanian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Footer Menu strings
$txt['footer_admin_menu'] = 'Meniu Footer';
$txt['fmenu_settings_title'] = 'Configuratie Meniu Footer';
$txt['fmenu_settings_desc'] = 'Modifica configuratiile pentru modul cu Meniul in Footer';

//Strings for the admin settings area
$txt['fmenu_enabled'] = 'Enable Footer Menu';
$txt['fmenu_heading1'] = 'Nume Coloana #1: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_heading2'] = 'Nume Coloana #2: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_heading3'] = 'Nume Coloana #3: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_heading4'] = 'Nume Coloana #4: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_heading5'] = 'Nume Coloana #5: (Ex. Link-uri Rapide, Navigare, Altele sau lasati gol).';
$txt['fmenu_title1'] = 'titlul 1';
$txt['fmenu_url1'] = 'url 1';
$txt['fmenu_title2'] = 'titlul 2';
$txt['fmenu_url2'] = 'url 2';
$txt['fmenu_title3'] = 'titlul 3';
$txt['fmenu_url3'] = 'url 3';
$txt['fmenu_title4'] = 'titlul 4';
$txt['fmenu_url4'] = 'url 4';
$txt['fmenu_title5'] = 'titlul 5';
$txt['fmenu_url5'] = 'url 5';
$txt['fmenu_title6'] = 'titlul 6';
$txt['fmenu_url6'] = 'url 6';
$txt['fmenu_title7'] = 'titlul 7';
$txt['fmenu_url7'] = 'url 7';
$txt['fmenu_title8'] = 'titlul 8';
$txt['fmenu_url8'] = 'url 8';
$txt['fmenu_title9'] = 'titlul 9';
$txt['fmenu_url9'] = 'url 9';
$txt['fmenu_title10'] = 'titlul 10';
$txt['fmenu_url10'] = 'url 10';
$txt['fmenu_title11'] = 'titlul 11';
$txt['fmenu_url11'] = 'url 11';
$txt['fmenu_title12'] = 'titlul 12';
$txt['fmenu_url12'] = 'url 12';
$txt['fmenu_title13'] = 'titlul 13';
$txt['fmenu_url13'] = 'url 13';
$txt['fmenu_title14'] = 'titlul 14';
$txt['fmenu_url14'] = 'url 14';
$txt['fmenu_title15'] = 'titlul 15';
$txt['fmenu_url15'] = 'url 15';
$txt['fmenu_title16'] = 'titlul 16';
$txt['fmenu_url16'] = 'url 16';
$txt['fmenu_title17'] = 'titlul 17';
$txt['fmenu_url17'] = 'url 17';
$txt['fmenu_title18'] = 'titlul 18';
$txt['fmenu_url18'] = 'url 18';
$txt['fmenu_title19'] = 'titlul 19';
$txt['fmenu_url19'] = 'url 19';
$txt['fmenu_title20'] = 'titlul 20';
$txt['fmenu_url20'] = 'url 20';
$txt['fmenu_title21'] = 'titlul 21';
$txt['fmenu_url21'] = 'url 21';
$txt['fmenu_title22'] = 'titlul 22';
$txt['fmenu_url22'] = 'url 22';
$txt['fmenu_title23'] = 'titlul 23';
$txt['fmenu_url23'] = 'url 23';
$txt['fmenu_title24'] = 'titlul 24';
$txt['fmenu_url24'] = 'url 24';
$txt['fmenu_title25'] = 'titlul 25';
$txt['fmenu_url25'] = 'url 25';
//End Footer Menu Strings
]]></add>
</operation>
</file
My mods for SMF - [6].

coldy316

#41
this does not work on all themes, it fails on installing..

I am using newBalance theme from DzinerStudio that makes themes for rc3,rc4,rc5 and the mod wont install
on the theme at all.

where it looks for
echo '
        </div>
    </div></div>';

new balance has
echo '
        </div>
    </div>';
Would you believe it that i live in gods country
Australia

Arantor

You know, you could make this compatible with all themes by making it a template layer rather than a theme edit.

Create two functions, template_fmenu_above and template_fmenu_below; the first one does nothing (it just has to exist), the second one outputs this.

Just before the obExit() call in index.php check that $_REQUEST['xml'] isn't set and that $_REQUEST['action'] isn't helpadmin or viewsmfile, and if it isn't those things, $context['template_layers'][] = 'fmenu';

Job done ;)

Mick.

Quote from: coldy316 on April 08, 2011, 03:58:45 AM
this does not work on all themes, it fails on installing..

I am using newBalance theme from DzinerStudio that makes themes for rc3,rc4,rc5 and the mod wont install
on the theme at all.

where it looks for
echo '
        </div>
    </div></div>';

new balance has
echo '
        </div>
    </div>';

Ugh.  Mods are made for default curve based theme only. I don't make themes neither do we.  Dziner themes are unique.  It doesn't install?  Take it to them and they'll show you how to make it work.

Don't ever say mod doesn't work or doesn't install. It does work and it does install!!

Qayyom Ashraf

any upcoming version / updates for 1.1.xx ?
Qayyom Ashraf  |  Karachi-PK |::.www.JangForum.Com.::|

searchgr

http://www.*****.net/index.php?topic=7491.msg134302;topicseen
8: Undefined index: fmenu_heading5
File: /home/****/public_html/Themes/default/languages/SearchFocus.english.php (body_below sub template - eval?)
Line: 444




http://www.*****.net/index.php?topic=7491.msg134302;topicseen
8: Undefined index: fmenu_heading4
File: /home/*****/public_html/Themes/default/languages/SearchFocus.english.php (body_below sub template - eval?)
Line: 443


http://www.******.net/index.php?topic=7491.msg134302;topicseen
8: Undefined index: fmenu_heading3
File: /home/******/public_html/Themes/default/languages/SearchFocus.english.php (body_below sub template - eval?)
Line: 442


Can you please help?

Mick.

Quote from: qayyom on April 11, 2011, 12:58:40 AM
any upcoming version / updates for 1.1.xx ?

No. Sorry.


Quote from: searchgr on April 11, 2011, 01:32:17 AM
http://www.*****.net/index.php?topic=7491.msg134302;topicseen
8: Undefined index: fmenu_heading5
File: /home/****/public_html/Themes/default/languages/SearchFocus.english.php (body_below sub template - eval?)
Line: 444




http://www.*****.net/index.php?topic=7491.msg134302;topicseen
8: Undefined index: fmenu_heading4
File: /home/*****/public_html/Themes/default/languages/SearchFocus.english.php (body_below sub template - eval?)
Line: 443


http://www.******.net/index.php?topic=7491.msg134302;topicseen
8: Undefined index: fmenu_heading3
File: /home/******/public_html/Themes/default/languages/SearchFocus.english.php (body_below sub template - eval?)
Line: 442


Can you please help?


Make sure you have this in: /Themes/default/languages/Modifications.english.php


//Footer Menu strings
$txt['footer_admin_menu'] = 'Footer Menu';
$txt['fmenu_settings_title'] = 'Footer Menu Configuration';
$txt['fmenu_settings_desc'] = 'Edit the configuration for the Footer Menu mod';

//Strings for the admin settings area
$txt['fmenu_enabled'] = 'Enable Footer Menu';
$txt['fmenu_heading1'] = 'Column #1 name: (Ex. Quick Links, Navigation, Fun Stuff or leave empty).';
$txt['fmenu_heading2'] = 'Column #2 name: (Ex. Quick Links, Navigation, Fun Stuff or leave empty).';
$txt['fmenu_heading3'] = 'Column #3 name: (Ex. Quick Links, Navigation, Fun Stuff or leave empty).';
$txt['fmenu_heading4'] = 'Column #4 name: (Ex. Quick Links, Navigation, Fun Stuff or leave empty).';
$txt['fmenu_heading5'] = 'Column #5 name: (Ex. Quick Links, Navigation, Fun Stuff or leave empty).';
$txt['fmenu_title1'] = 'title 1';
$txt['fmenu_url1'] = 'url 1';
$txt['fmenu_title2'] = 'title 2';
$txt['fmenu_url2'] = 'url 2';
$txt['fmenu_title3'] = 'title 3';
$txt['fmenu_url3'] = 'url 3';
$txt['fmenu_title4'] = 'title 4';
$txt['fmenu_url4'] = 'url 4';
$txt['fmenu_title5'] = 'title 5';
$txt['fmenu_url5'] = 'url 5';
$txt['fmenu_title6'] = 'title 6';
$txt['fmenu_url6'] = 'url 6';
$txt['fmenu_title7'] = 'title 7';
$txt['fmenu_url7'] = 'url 7';
$txt['fmenu_title8'] = 'title 8';
$txt['fmenu_url8'] = 'url 8';
$txt['fmenu_title9'] = 'title 9';
$txt['fmenu_url9'] = 'url 9';
$txt['fmenu_title10'] = 'title 10';
$txt['fmenu_url10'] = 'url 10';
$txt['fmenu_title11'] = 'title 11';
$txt['fmenu_url11'] = 'url 11';
$txt['fmenu_title12'] = 'title 12';
$txt['fmenu_url12'] = 'url 12';
$txt['fmenu_title13'] = 'title 13';
$txt['fmenu_url13'] = 'url 13';
$txt['fmenu_title14'] = 'title 14';
$txt['fmenu_url14'] = 'url 14';
$txt['fmenu_title15'] = 'title 15';
$txt['fmenu_url15'] = 'url 15';
$txt['fmenu_title16'] = 'title 16';
$txt['fmenu_url16'] = 'url 16';
$txt['fmenu_title17'] = 'title 17';
$txt['fmenu_url17'] = 'url 17';
$txt['fmenu_title18'] = 'title 18';
$txt['fmenu_url18'] = 'url 18';
$txt['fmenu_title19'] = 'title 19';
$txt['fmenu_url19'] = 'url 19';
$txt['fmenu_title20'] = 'title 20';
$txt['fmenu_url20'] = 'url 20';
$txt['fmenu_title21'] = 'title 21';
$txt['fmenu_url21'] = 'url 21';
$txt['fmenu_title22'] = 'title 22';
$txt['fmenu_url22'] = 'url 22';
$txt['fmenu_title23'] = 'title 23';
$txt['fmenu_url23'] = 'url 23';
$txt['fmenu_title24'] = 'title 24';
$txt['fmenu_url24'] = 'url 24';
$txt['fmenu_title25'] = 'title 25';
$txt['fmenu_url25'] = 'url 25';
//End Footer Menu Strings


searchgr

I have already checked it and it's ok, i have this code in /Themes/default/languages/Modifications.english.php

I think that there is a conflict with  the Search Focus Dropdown mod but i don't know how to fix it.

phpshiva

I got the same problem

log is runnig full with it

Undefined index: fmenu_heading5
Undefined index: fmenu_heading4

errors

i got installed SMF 2.0 RC5

can you help me please?
i did manual check but found nothing wrong so i think its in te code itself.

Thanks

Arantor

Quote from: Arantor on April 08, 2011, 04:10:04 AM
You know, you could make this compatible with all themes by making it a template layer rather than a theme edit.

Create two functions, template_fmenu_above and template_fmenu_below; the first one does nothing (it just has to exist), the second one outputs this.

Just before the obExit() call in index.php check that $_REQUEST['xml'] isn't set and that $_REQUEST['action'] isn't helpadmin or viewsmfile, and if it isn't those things, $context['template_layers'][] = 'fmenu';

Job done ;)

Bumping in case this got missed. I mean, I think doing it without any template edits would be pretty awesome and with a little bit of thought, could be made compatible for 1.1.x with almost no extra effort.

Masterd

Quote from: phpshiva on April 12, 2011, 07:02:18 AM
I got the same problem

log is runnig full with it

Undefined index: fmenu_heading5
Undefined index: fmenu_heading4

errors

i got installed SMF 2.0 RC5

can you help me please?
i did manual check but found nothing wrong so i think its in te code itself.

Thanks

Bluedevil made an error while coding this mod.

Find this in Index.template.php.

<td><strong><font size="2" color="#d97b33">' . $modSettings['fmenu_heading1'] . '</font></strong></td>
<td><strong><font size="2" color="#d97b33">' . $modSettings['fmenu_heading2'] . '</font></strong></td>
<td><strong><font size="2" color="#d97b33">' . $modSettings['fmenu_heading3'] . '</font></strong></td>
<td><strong><font size="2" color="#d97b33">' . $modSettings['fmenu_heading4'] . '</font></strong></td>
<td><strong><font size="2" color="#d97b33">' . $modSettings['fmenu_heading5'] . '</font></strong></td>


It should look like this.

<td><strong><font size="2" color="#d97b33">' . (!empty($modSettings['fmenu_heading1']) ? $modSettings['fmenu_heading1'] : '') . '</font></strong></td>
<td><strong><font size="2" color="#d97b33">' . (!empty($modSettings['fmenu_heading2']) ? $modSettings['fmenu_heading2'] : '') . '</font></strong></td>
<td><strong><font size="2" color="#d97b33">' . (!empty($modSettings['fmenu_heading3']) ? $modSettings['fmenu_heading3'] : '') . '</font></strong></td>
<td><strong><font size="2" color="#d97b33">' . (!empty($modSettings['fmenu_heading4']) ? $modSettings['fmenu_heading4'] : '') . '</font></strong></td>
<td><strong><font size="2" color="#d97b33">' . (!empty($modSettings['fmenu_heading5']) ? $modSettings['fmenu_heading5'] : '') . '</font></strong></td>

mariusfv

I use this mod and I don't have errors, I've test on Firefox, IE, Chrome, Opera.
I use default theme 2.0 RC5, so is errors in the code or not? I don't understand.

swoodie

Hi BD just what i need as i have way to many buttons on my menu, what do i have to edit to get this to work on 2.0rc3 with DZ inferno theme?

can you advise what i have to edit thanks

Masterd

Post your problem od Dziner Studio's website.


swoodie

#55
 I have it working now all good.

One thing how do i change the back ground color of the div?

derbeder06

page to be wide, what can I do?
I showed the picture attached

JustOneOldMan

Very nice mod, thanks for this.  Nice clean look, and works great.  Only addition I'd like to see is a check box to open link in new window, otherwise it's a perfect addition to the site...
A computer once beat me at chess, but as it turns out it was no match for me at kickboxing...

Sudhakar Arjunan

Excellent and needed mod.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

GlitchPC

Would still like to see the ability to have some...not all...of the links open in a new window.  Other than that...this mod rocks!

Advertisement: