Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2966)
(https://www.idesignsmf.com/images/idesignadvert.png) (https://www.idesignsmf.com)
Footer Menu v.1
By Mick G. idesignSMF.com
COMPATIBLE WITH SMF 2.0
This mod will make a custom footer menu below the info center for forum owners that have lots of internal and/or external links.
In admin, go to:
1. Configuration--->Modification Settings---->Miscellaneous----->Footer Menu.
2. Activate.
3. Make sure all links use http://
Bug Fixes / Updates1.) Created v.1 | February 2011
2.) Added 5th column | March 2011
3.) Added headings | March 2011
4.) Removed centered links per request | March 2011
5.) Organized the admin fields | March 2011
6.) Added Title Tags | March 2011
7.) Colorized the Headings | March 2011
8.) Fixed a bug on headings. Thanx Masterd | June 2011
9.) Updated to SMF 2.0 Gold | June 2011
10) Updtaed SMF 2.0.15 | July 2018
Footer menu positioning legend:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
If you need support or need customize help, please post in the thread at SimpleMachines.org or @ idesignsmf.com Thanks!
Looks great...
Few questions please:
1.Is integrated with TinyPortal?...will show the footer menu on first page...tinyportal default page?
2.Can be the text left arranged on each column? for me is ugly to be centered...sorry ....
I will use it if that's will be possible ....
Great job!
It will show everywhere. Where ever the SMF credit show, so is the menu. So it show with any portal.
I don't like them centered either. I'm changing that to normal (left).
I may add a fifth column tho'. Make it 25 links like I did in my forum.
http://www.chevyavalancheclub.com/
That's nice ...I like it ...
So I must wait to be update it to left ?
10x
Quote from: mariusfv on March 30, 2011, 07:59:12 AM
That's nice ...I like it ...
So I must wait to be update it to left ?
10x
It's a quick fix. I'm at work now. This evening should be updated.
Just a suggestion mate, how about make it so you can have a heading, so you put a word in there like Links or our friends or something :) also an option to open links in a new page :)
Quote from: kingkingston on March 30, 2011, 12:52:43 PM
Just a suggestion mate, how about make it so you can have a heading, so you put a word in there like Links or our friends or something :)
yes, I'm doing that tonight ;)
Quote from: bluedevil on March 30, 2011, 12:54:18 PM
Quote from: kingkingston on March 30, 2011, 12:52:43 PM
Just a suggestion mate, how about make it so you can have a heading, so you put a word in there like Links or our friends or something :)
yes, I'm doing that tonight ;)
good work mate, sorry i didn't mention the option to open in a new page earlier, your a star, love the look of your site :)
Thanx King.
Tonite I'm adding:
-5th column for a total of 25 links.
-Heading to each column with fields in admin. Text will show in bold.
-uncenter the links.
I hope bold text will be optional...all to be show as bold is ....
It will be like this:
Heading
Link
Link
Link
Link
Link
Is nice...I see is update it today ...to understand that is ready ? all done ?
Quote from: mariusfv on March 30, 2011, 02:37:25 PM
Is nice...I see is update it today ...to understand that is ready ? all done ?
not yet. I will post when updated.
I only added the demo link in the mod site.
Ok, I will wait you post.
Updated:
2.) Added 5th column | March 2011
3.) Added headings | March 2011
4.) Removed centered links per request | March 2011
your a star BD thanks
This is actually a real cool idea. Nice. :)
Thanx guys. It came to mind when my forum toolbar was running out room for links. First i hard coded it and later thought in making it into a mod and share it.
Glad yalls like it. ;)
I like it!!!
I will use your mod, is great and useful and in my opinion this mod should be default in SMF or at least in some portals like TP, SimplePortal, etc.
I think you forgot something: please provide in mod description the location to access this mod(I search for 5 minutes second time when I try to edit him ;D). I think will be an useful information!
And will be great if the bold Heading can have another color(not black) for example the same color as link's have!
Great JOB!
This is what was missing for SMF in my opinion!
Off-topic
BTW In your website : http://www.chevyavalancheclub.com/ you have a script, jscript who look great and I search it in this version but I didn't find it, the script who show 10 pictures, auto-change the pictures and have a linkable description on the picture. Q: Can you please share that script ?
10x
I'll update the mod so the headings use colors from the theme.
I didn't thought of that ;)
Another thought came to mind...
I will add title tags to the links too and color all 5 headings.
Will update tonight ;)
Hi bluedevil.. Can RC2 use this mod? Coz I can't upgradeg my SMF to RC5 :(
Quote from: waruna on March 31, 2011, 12:05:30 PM
Hi bluedevil.. Can RC2 use this mod? Coz I can't upgradeg my SMF to RC5 :(
I believe so.
Upload the mod, don't install it yet. Go to the mod list and at the very bottom to the right, click 'advanced'. Emulate RC5.
Then install the mod. If it doesn't work for ya, I'll update the mod tonight for all SMF 2.0 RC's.
Quote from: bluedevil on March 31, 2011, 12:08:55 PM
Quote from: waruna on March 31, 2011, 12:05:30 PM
Hi bluedevil.. Can RC2 use this mod? Coz I can't upgradeg my SMF to RC5 :(
I believe so.
Upload the mod, don't install it yet. Go to the mod list and at the very bottom to the right, click 'advanced'. Emulate RC5.
Then install the mod. If it doesn't work for ya, I'll update the mod tonight for all SMF 2.0 RC's.
Okay, I'll try and let you know ASAP. Many thanks!
Mr. Bluedevil. I've emulate RC5. Try to install and got error in package installation:
Quote
1. Execute Modification ./Themes/default/index.template.php Test successful
* 2. Execute Modification ./Sources/Admin.php Test failed
1. Add Before ./Sources/Admin.php Test failed
* 3. Execute Modification ./Sources/ManageSettings.php Test successful
* 4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
It says:
Find :
Quote// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
Add Before:
Quote'footermenu' =>array($txt['footer_admin_menu']),
Please advice me. Thanks
Ill update the package to rc2, rc3 and rc4 tonight ;)
Im not behind my puter at the moment. it should go after and not before. My mistake.
Quote from: bluedevil on March 31, 2011, 01:17:23 PM
Ill update the package to rc2, rc3 and rc4 tonight ;)
Im not behind my puter at the moment. it should go after and not before. My mistake.
Ok Sir, thank you.. Thank you so much for your help. Really appreciate it.
Quote from: bluedevil on March 31, 2011, 10:25:50 AM
Another thought came to mind...
I will add title tags to the links too and color all 5 headings.
Will update tonight ;)
I hope colors will be optional this time, otherwise I will remain to old version, to many different colors is just for a specific color forum in my opinion....
great job btw ....
Quote from: mariusfv on March 31, 2011, 01:23:00 PM
Quote from: bluedevil on March 31, 2011, 10:25:50 AM
Another thought came to mind...
I will add title tags to the links too and color all 5 headings.
Will update tonight ;)
I hope colors will be optional this time, otherwise I will remain to old version, to many different colors is just for a specific color forum in my opinion....
great job btw ....
Not optional. It will have the same color as the boards by default. Want to change the color? Simple, change the color code in the CSS file. No big deal. ;)
I'm sorry I misunderstood, is my fault ...I was understand that every heading will have a different color ....so to much colors is to much for me ;)
Oh no not like that. Hehehe.
It will have the same color as your name above your avatar here in this thread.
That way it blends nicely with the default theme ;)
I'm at work now. Not much longer. Should be updated in 3 hrs or so ;)
I like that, if will use the default theme color is OK...so I will wait you post when is done....btw I must uninstall or will work with update ?
Yes. Alaways uninstall and delete mod from admin. Unless otherwise noted.
Then upload new mod and clear the file cache in admin. ;)
Mod updated. ;)
It now has colored headings to match the boards and also added title tags.
Uninstall old mod, delete and upload new mod.
Now with rc2 ,rc3, rc4 support. ;)
See the pic attached.
Have fun ;)
Ok .. Got it works perfecly! Thanks Bluedevil. You're rocks!
Quote from: waruna on April 01, 2011, 12:01:34 AM
Ok .. Got it works perfecly! Thanks Bluedevil. You're rocks!
Glad it worked out fo ya! ;)
First congratulations on your mod, very good ...
But I would like to create new HTML email?
I tried putting in HTML code, but generates the email showing the code.
---
http://www.tectonny.com/forum/
http://buscashare.in/
Quote from: tectonny on April 06, 2011, 10:19:21 AM
First congratulations on your mod, very good ...
But I would like to create new HTML email?
I tried putting in HTML code, but generates the email showing the code.
---
http://www.tectonny.com/forum/
http://buscashare.in/
Because you cannot put PHP inside HTML. It wont work.
I have an error in index.template.php file
Find:
echo '
</div>
</div></div>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere
Add Before:
//Footer Menu v.1 by: bluedevilcustoms.com
if (!empty($modSettings['fmenu_enabled']))
{
echo'
<br />
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tbody>
<tr>
<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>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title1']) && !empty($modSettings['fmenu_url1']) ? '<a title="' . $modSettings['fmenu_title1'] . '" href="' . $modSettings['fmenu_url1'] . '">' . $modSettings['fmenu_title1'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title2']) && !empty($modSettings['fmenu_url2']) ? '<a title="' . $modSettings['fmenu_title2'] . '" href="' . $modSettings['fmenu_url2'] . '">' . $modSettings['fmenu_title2'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title3']) && !empty($modSettings['fmenu_url3']) ? '<a title="' . $modSettings['fmenu_title3'] . '" href="' . $modSettings['fmenu_url3'] . '">' . $modSettings['fmenu_title3'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title4']) && !empty($modSettings['fmenu_url4']) ? '<a title="' . $modSettings['fmenu_title4'] . '" href="' . $modSettings['fmenu_url4'] . '">' . $modSettings['fmenu_title4'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title5']) && !empty($modSettings['fmenu_url5']) ? '<a title="' . $modSettings['fmenu_title5'] . '" href="' . $modSettings['fmenu_url5'] . '">' . $modSettings['fmenu_title5'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title6']) && !empty($modSettings['fmenu_url6']) ? '<a title="' . $modSettings['fmenu_title6'] . '" href="' . $modSettings['fmenu_url6'] . '">' . $modSettings['fmenu_title6'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title7']) && !empty($modSettings['fmenu_url7']) ? '<a title="' . $modSettings['fmenu_title7'] . '" href="' . $modSettings['fmenu_url7'] . '">' . $modSettings['fmenu_title7'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title8']) && !empty($modSettings['fmenu_url8']) ? '<a title="' . $modSettings['fmenu_title8'] . '" href="' . $modSettings['fmenu_url8'] . '">' . $modSettings['fmenu_title8'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title9']) && !empty($modSettings['fmenu_url9']) ? '<a title="' . $modSettings['fmenu_title9'] . '" href="' . $modSettings['fmenu_url9'] . '">' . $modSettings['fmenu_title9'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title10']) && !empty($modSettings['fmenu_url10']) ? '<a title="' . $modSettings['fmenu_title10'] . '" href="' . $modSettings['fmenu_url10'] . '">' . $modSettings['fmenu_title10'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title11']) && !empty($modSettings['fmenu_url11']) ? '<a title="' . $modSettings['fmenu_title11'] . '" href="' . $modSettings['fmenu_url11'] . '">' . $modSettings['fmenu_title11'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title12']) && !empty($modSettings['fmenu_url12']) ? '<a title="' . $modSettings['fmenu_title12'] . '" href="' . $modSettings['fmenu_url12'] . '">' . $modSettings['fmenu_title12'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title13']) && !empty($modSettings['fmenu_url13']) ? '<a title="' . $modSettings['fmenu_title13'] . '" href="' . $modSettings['fmenu_url13'] . '">' . $modSettings['fmenu_title13'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title14']) && !empty($modSettings['fmenu_url14']) ? '<a title="' . $modSettings['fmenu_title14'] . '" href="' . $modSettings['fmenu_url14'] . '">' . $modSettings['fmenu_title14'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title15']) && !empty($modSettings['fmenu_url15']) ? '<a title="' . $modSettings['fmenu_title15'] . '" href="' . $modSettings['fmenu_url15'] . '">' . $modSettings['fmenu_title15'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title16']) && !empty($modSettings['fmenu_url16']) ? '<a title="' . $modSettings['fmenu_title16'] . '" href="' . $modSettings['fmenu_url16'] . '">' . $modSettings['fmenu_title16'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title17']) && !empty($modSettings['fmenu_url17']) ? '<a title="' . $modSettings['fmenu_title17'] . '" href="' . $modSettings['fmenu_url17'] . '">' . $modSettings['fmenu_title17'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title18']) && !empty($modSettings['fmenu_url18']) ? '<a title="' . $modSettings['fmenu_title18'] . '" href="' . $modSettings['fmenu_url18'] . '">' . $modSettings['fmenu_title18'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title19']) && !empty($modSettings['fmenu_url19']) ? '<a title="' . $modSettings['fmenu_title19'] . '" href="' . $modSettings['fmenu_url19'] . '">' . $modSettings['fmenu_title19'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title20']) && !empty($modSettings['fmenu_url20']) ? '<a title="' . $modSettings['fmenu_title20'] . '" href="' . $modSettings['fmenu_url20'] . '">' . $modSettings['fmenu_title20'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title21']) && !empty($modSettings['fmenu_url21']) ? '<a title="' . $modSettings['fmenu_title21'] . '" href="' . $modSettings['fmenu_url21'] . '">' . $modSettings['fmenu_title21'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title22']) && !empty($modSettings['fmenu_url22']) ? '<a title="' . $modSettings['fmenu_title22'] . '" href="' . $modSettings['fmenu_url22'] . '">' . $modSettings['fmenu_title22'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title23']) && !empty($modSettings['fmenu_url23']) ? '<a title="' . $modSettings['fmenu_title23'] . '" href="' . $modSettings['fmenu_url23'] . '">' . $modSettings['fmenu_title23'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title24']) && !empty($modSettings['fmenu_url24']) ? '<a title="' . $modSettings['fmenu_title24'] . '" href="' . $modSettings['fmenu_url24'] . '">' . $modSettings['fmenu_title24'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title25']) && !empty($modSettings['fmenu_url25']) ? '<a title="' . $modSettings['fmenu_title25'] . '" href="' . $modSettings['fmenu_url25'] . '">' . $modSettings['fmenu_title25'] . '</a>' : '', '</td>
</tr>
</tbody>
</table>
</div>
</div>
<span class="lowerframe"><span></span></span>';
}
//End of Footer Menu v.1
Using DSv4 theme and SMF 2.0 RC5.
How do I fix?
Thanks!
@Vyorel
I'm at work now and not behind a computer. I also use dsv4 and will post the solution tonight for ya ;)
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
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>';
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 ;)
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!!
any upcoming version / updates for 1.1.xx ?
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?
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
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.
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
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.
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>
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.
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
Post your problem od Dziner Studio's website.
Nice mod!
I have it working now all good.
One thing how do i change the back ground color of the div?
page to be wide, what can I do?
I showed the picture attached
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...
Excellent and needed mod.
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!
Thanx for the feedback. When i update to 2.0 gold, ability to 'open in new window' will be added.
Don't forget to include the bugfix that I posted. Bytheway, good to see you again. ;)
Thanx Masterd for the bug find/fix. All fixed up now. ;)
No problem! ;)
I am running 2.0RC5, and emulated to 2.0 and got test failed erros when trying to install to my inferno theme. I tried emulating to 2.0RC4, and it wouldn't even let me install it.
Please help!
Why don't you just upgrade to SMF 2.0? There's one security issue in SMF 2.0 RC5, you know?
Most of the packages I want and my theme are for SMF 2.0RC5. Is it safe to use those on SMF 2.0?
Yes, it is.
Okay then I guess I will upgrade.
I updated to 2.0 and for my Inferno theme, I get Test Failed for everything:
Execute Modification ./Themes/inferno_20rc5/index.template.php Test failed
1. Add Before ./Themes/inferno_20rc5/index.template.php Test failed
Attach your Index.template.php here.
Here you go.
Because this mod only installs to default theme. Not custom.
But should be easy to modify Inferno.
Could you help me modify it for Inferno? I'm a complete noob at coding ;D
Here you go. ;)
I'll try that, thanks a lot.
No problem! ;)
No success, still get test failed in index.template.php.
Ignore that error. I already fixed your Index.template.php.
Oh okay thanks.
Great mod. Thanks a lot m8 ;)
Hey yall, using this mod?
I'd would like to see how its been looking on your site. Post you link. ;)
I use this mod on my test forum because my main forum is still on RC5 but soon I will upgrade on 2.0.
This is on my test forum http://www.test.fm-balkan.com/smf2/index.php
Edit: Here's how it looks on my other forum http://www.filmonlineforum.net/index.php?action=forum
Footer Menu v.1 width problem
http://custom.simplemachines.org/mods/index.php?mod=2966
SMF version: SMF2.0
TP version: TP 1.0RC2
Default Forum Language: Hungarian
Theme name and version: Fire Rock (convert:Tinyportal-eu)
Links url Smf-Tinyportal test Site (http://www.smf-teszt.bplaced.net/index.php/)
Hello everyone! I installed the manner and that problem of mine that the menu too stretches on the scheme a little , where I would be able to set the width of the menu ?
Thanks.....
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fkepfeltoltes.hu%2F110627%2Fmenu_www.kepfeltoltes.hu_.png&hash=c8fb139e9b9d40b4103960c6c11c23de560c14c7)
i just re install this mod and the reasult is dispaling Two footer menu... What to do..? plz guide me Brother..
If u wnt to see this just take a look at http://www.mobicentral.info
installed, but not tried out yet. Will do that now
oh , jessica dear, i tried it...but there is two menu displayed at bottom
@golf,
Try this and see if it works...
Find:
//Footer Menu v.1 by: bluedevilcustoms.com
if (!empty($modSettings['fmenu_enabled']))
{
echo'
<br />
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<table border="0" cellspacing="2" cellpadding="2" width="100%">
and replace 100% for 90%. Then clear the cache.
Quote from: sadaam on June 29, 2011, 01:50:02 PM
oh , jessica dear, i tried it...but there is two menu displayed at bottom
what do you mean?
I tried it out, works perfectly
Quote from: bluedevil on July 03, 2011, 10:22:16 AM
@golf,
Try this and see if it works...
Find:
//Footer Menu v.1 by: bluedevilcustoms.com
if (!empty($modSettings['fmenu_enabled']))
{
echo'
<br />
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<table border="0" cellspacing="2" cellpadding="2" width="100%">
and replace 100% for 90%. Then clear the cache.
We rehearsed it already unfortunately and is out of order, there is an other solution?
Thanks for such a great mod, bluedevil! 8)
My forum is still in development, so I won't bother to show it to you. :-[
May I suggest an idea, which would make this mod even better?
It would be very cool if administrators could set
rel="nofollow"
tag for each link they choose (and not to put it if they don't want it).
Right now there is a lot of space - which is an excellent thing. But this also means that admins can put almost every possible link in there, even not so important ones (ones, which are located outside of admin's servers).
So it's kinda hard to decide if I, for example, want to improve usability and put some facebook/twitter/lulz/whatever links in there for my forum people to use, or if I want to keep the list as short as possible (keep there only my own sites) in hope of saving the ever so precious Google PR ranking. And thinking about it, it seems that the second option is a better one, because the Google PR outflow is too great (imagine - every single forum page and forum message contains a dozen of leakages). :(
Could you please-please-please do it? Pretty pleeeeeese?.. ;)
Quote from: mikser on July 30, 2011, 11:07:37 PM
Thanks for such a great mod, bluedevil! 8)
My forum is still in development, so I won't bother to show it to you. :-[
May I suggest an idea, which would make this mod even better?
It would be very cool if administrators could set
rel="nofollow"
tag for each link they choose (and not to put it if they don't want it).
Right now there is a lot of space - which is an excellent thing. But this also means that admins can put almost every possible link in there, even not so important ones (ones, which are located outside of admin's servers).
So it's kinda hard to decide if I, for example, want to improve usability and put some facebook/twitter/lulz/whatever links in there for my forum people to use, or if I want to keep the list as short as possible (keep there only my own sites) in hope of saving the ever so precious Google PR ranking. And thinking about it, it seems that the second option is a better one, because the Google PR outflow is too great (imagine - every single forum page and forum message contains a dozen of leakages). :(
Could you please-please-please do it? Pretty pleeeeeese?.. ;)
thanx for the suggestion.
Just know that google PR is a farse now-a-days. Personally, i dont care for it.
Can you make it to work with Nocturno theme ?
Very nice mod!
A good option for this would be some form of security, so that not everyone sees the links. I, for instance, wouldn't want guests to see the links.
@tfs ...
Add this after //footer menu mod by bluedevilcustoms.com in the index.template.php
if (!$context['user']['is_guest'])
Thanks for the quick feedback. I ended up going a different route. I generally avoid edits that may cause uninstall errors. At least I do on the particular forum where this was needed. Thanks! This is a nice mod.
Hello,
It installed onto my Test Forum (http://www.asanctuary.net/TEST_FORUM/index.php) perfectly without errors using default theme (other themes require manual install).
Thank you for saving me from using a portal for the links.
Be Well,
Cloud
Updated for SMF 2.0.1 ;)
hi i like this mod and but ive a problem, ive installed simpleportal and i want the links to align with the boards as it now sticks out to the left, any idea what i need to change?
link is: http://tinyurl.com/4xfdq2v
awesome mod btw!
Anyone?
Quote from: ArkServer on September 28, 2011, 08:52:20 AM
Anyone?
I looked at your java forum and it looks fine. Snap a pic of the issue, load it here and ill help you.
Is there a way you can makit it show up in sp front page bloc instead of of the forum?
Hello BD!
One question: It is possible to add more links in a row?
like:
1 2 3 4 5 (Heading line)
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
26 27 28 29 30 (New line)
31 32 33 34 35 (Another new line)
Thank you in advance
D.
Would someone mind helping me add this to two custom themes?
DS-Natural by Dziner Studios
and Vertex by MLM
I can provide the index.template files if needed.
**EDIT**
Working on theme.
**EDIT TWO**
Ok never mind, done modifying my themes.. I also modified your mod.. I fixed the columns to where each took up 20% of the total 100% as there are five columns this ensures all columns will be equal distance from each other.. just something that bugged me.. I also added a category header and title for it which can be set in the mods settings.. I also adjusted your text strings so they weren't so short lol.. the last thing I did was add in support for my two custom themes.. if anyone is interested in the package for it let me know, you can see the mods I did at my website (http://www.uofreeshards.net/).
I also attached an image..
Quote from: Draffi on February 24, 2012, 05:04:20 PM
Hello BD!
One question: It is possible to add more links in a row?
like:
1 2 3 4 5 (Heading line)
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
26 27 28 29 30 (New line)
31 32 33 34 35 (Another new line)
Thank you in advance
D.
The answer to this is yes, it's not hard but it's not easy..
I am trying to uninstall this mod, but I keep getting this error:
QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
Quote from: mageguild on July 03, 2012, 08:09:07 AM
I am trying to uninstall this mod, but I keep getting this error:
QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
it should have uninstall or it wouldn't passed SMF's standards. Unfortunately I'm not behind a computer until this afternoon.
Have your emulated SMF to 2.0 or 2.0.1 to see if uninstalls?
Hello
Does not install in 2.0.1
:'( As this is just what i am after.
Please make it for smf 2.0.2
Thanks
Quote from: Nityananda Maity on September 19, 2012, 06:31:34 AM
Please make it for smf 2.0.2
Thanks
Hi I am successfully installed it on smf 2.0.2 using version emulation. working perfectly
Thanks for this useful mod.
--------Edit----------
Please give me an idea that How can i add button image left to the links? also i am not a coder.
Thanks again
Hi, thank for your great MOD
i want to hide footer menu for guest, is there a way?
@Pedi
Yes, in Index.template.php
Find:
//Footer Menu v.1 by: bluedevilcustoms.com
Add this before it...
if (!$context['user']['is_guest'])
much appreciated :)
I added icon to footer menu :) , if someone like to use:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fupcity.ir%2Fimages%2F84402262561519709893.jpg&hash=599c52855fd5f9f5c56191b6898fee1fcd9ed1f1)
Find and replace with:
<tr class="footermenu">
<td><img src="'. $settings['images_url']. '/footer/1.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title1']) && !empty($modSettings['fmenu_url1']) ? '<a title="' . $modSettings['fmenu_title1'] . '" href="' . $modSettings['fmenu_url1'] . '">' . $modSettings['fmenu_title1'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/2.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title2']) && !empty($modSettings['fmenu_url2']) ? '<a title="' . $modSettings['fmenu_title2'] . '" href="' . $modSettings['fmenu_url2'] . '">' . $modSettings['fmenu_title2'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/3.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title3']) && !empty($modSettings['fmenu_url3']) ? '<a title="' . $modSettings['fmenu_title3'] . '" href="' . $modSettings['fmenu_url3'] . '">' . $modSettings['fmenu_title3'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/4.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title4']) && !empty($modSettings['fmenu_url4']) ? '<a title="' . $modSettings['fmenu_title4'] . '" href="' . $modSettings['fmenu_url4'] . '">' . $modSettings['fmenu_title4'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/5.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title5']) && !empty($modSettings['fmenu_url5']) ? '<a title="' . $modSettings['fmenu_title5'] . '" href="' . $modSettings['fmenu_url5'] . '">' . $modSettings['fmenu_title5'] . '</a>' : '', '</td>
</tr>
<tr class="footermenu">
<td><img src="'. $settings['images_url']. '/footer/6.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title6']) && !empty($modSettings['fmenu_url6']) ? '<a title="' . $modSettings['fmenu_title6'] . '" href="' . $modSettings['fmenu_url6'] . '">' . $modSettings['fmenu_title6'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/7.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title7']) && !empty($modSettings['fmenu_url7']) ? '<a title="' . $modSettings['fmenu_title7'] . '" href="' . $modSettings['fmenu_url7'] . '">' . $modSettings['fmenu_title7'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/8.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title8']) && !empty($modSettings['fmenu_url8']) ? '<a title="' . $modSettings['fmenu_title8'] . '" href="' . $modSettings['fmenu_url8'] . '">' . $modSettings['fmenu_title8'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/9.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title9']) && !empty($modSettings['fmenu_url9']) ? '<a title="' . $modSettings['fmenu_title9'] . '" href="' . $modSettings['fmenu_url9'] . '">' . $modSettings['fmenu_title9'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/10.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title10']) && !empty($modSettings['fmenu_url10']) ? '<a title="' . $modSettings['fmenu_title10'] . '" href="' . $modSettings['fmenu_url10'] . '">' . $modSettings['fmenu_title10'] . '</a>' : '', '</td>
</tr>
<tr class="footermenu">
<td><img src="'. $settings['images_url']. '/footer/11.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title11']) && !empty($modSettings['fmenu_url11']) ? '<a title="' . $modSettings['fmenu_title11'] . '" href="' . $modSettings['fmenu_url11'] . '">' . $modSettings['fmenu_title11'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/12.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title12']) && !empty($modSettings['fmenu_url12']) ? '<a title="' . $modSettings['fmenu_title12'] . '" href="' . $modSettings['fmenu_url12'] . '">' . $modSettings['fmenu_title12'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/13.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title13']) && !empty($modSettings['fmenu_url13']) ? '<a title="' . $modSettings['fmenu_title13'] . '" href="' . $modSettings['fmenu_url13'] . '">' . $modSettings['fmenu_title13'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/14.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title14']) && !empty($modSettings['fmenu_url14']) ? '<a title="' . $modSettings['fmenu_title14'] . '" href="' . $modSettings['fmenu_url14'] . '">' . $modSettings['fmenu_title14'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/15.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title15']) && !empty($modSettings['fmenu_url15']) ? '<a title="' . $modSettings['fmenu_title15'] . '" href="' . $modSettings['fmenu_url15'] . '">' . $modSettings['fmenu_title15'] . '</a>' : '', '</td>
</tr>
<tr class="footermenu">
<td><img src="'. $settings['images_url']. '/footer/16.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title16']) && !empty($modSettings['fmenu_url16']) ? '<a title="' . $modSettings['fmenu_title16'] . '" href="' . $modSettings['fmenu_url16'] . '">' . $modSettings['fmenu_title16'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/17.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title17']) && !empty($modSettings['fmenu_url17']) ? '<a title="' . $modSettings['fmenu_title17'] . '" href="' . $modSettings['fmenu_url17'] . '">' . $modSettings['fmenu_title17'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/18.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title18']) && !empty($modSettings['fmenu_url18']) ? '<a title="' . $modSettings['fmenu_title18'] . '" href="' . $modSettings['fmenu_url18'] . '">' . $modSettings['fmenu_title18'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/19.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title19']) && !empty($modSettings['fmenu_url19']) ? '<a title="' . $modSettings['fmenu_title19'] . '" href="' . $modSettings['fmenu_url19'] . '">' . $modSettings['fmenu_title19'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/20.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title20']) && !empty($modSettings['fmenu_url20']) ? '<a title="' . $modSettings['fmenu_title20'] . '" href="' . $modSettings['fmenu_url20'] . '">' . $modSettings['fmenu_title20'] . '</a>' : '', '</td>
</tr>
<tr class="footermenu">
<td><img src="'. $settings['images_url']. '/footer/21.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title21']) && !empty($modSettings['fmenu_url21']) ? '<a title="' . $modSettings['fmenu_title21'] . '" href="' . $modSettings['fmenu_url21'] . '">' . $modSettings['fmenu_title21'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/22.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title22']) && !empty($modSettings['fmenu_url22']) ? '<a title="' . $modSettings['fmenu_title22'] . '" href="' . $modSettings['fmenu_url22'] . '">' . $modSettings['fmenu_title22'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/23.png" style="margin-left: 5px;">', !empty($modSettings['fmenu_title23']) && !empty($modSettings['fmenu_url23']) ? '<a title="' . $modSettings['fmenu_title23'] . '" href="' . $modSettings['fmenu_url23'] . '">' . $modSettings['fmenu_title23'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/24" style="margin-left: 5px;">', !empty($modSettings['fmenu_title24']) && !empty($modSettings['fmenu_url24']) ? '<a title="' . $modSettings['fmenu_title24'] . '" href="' . $modSettings['fmenu_url24'] . '">' . $modSettings['fmenu_title24'] . '</a>' : '', '</td>
<td><img src="'. $settings['images_url']. '/footer/25" style="margin-left: 5px;">', !empty($modSettings['fmenu_title25']) && !empty($modSettings['fmenu_url25']) ? '<a title="' . $modSettings['fmenu_title25'] . '" href="' . $modSettings['fmenu_url25'] . '">' . $modSettings['fmenu_title25'] . '</a>' : '', '</td>
</tr>
for ltr pages, change margin-left to right ;)
Awesome.
It's a good idea, but why use a table? If you used lists instead you could make it more flexible (for instance: adjust to screen res via media queries in the css).
Quote from: Antechinus on February 23, 2013, 07:31:02 PM
It's a good idea, but why use a table? If you used lists instead you could make it more flexible (for instance: adjust to screen res via media queries in the css).
Its an 'old' mod. Been thinking of updating it with a list style but, meh. hehehe ;)
If you're going to update it please consider updating it to use template layers as suggested back in page 2. It would pretty much nail your custom-themes issues dead.
Hi,
I am trying to install the mod on my forum ( http://www.domesticcricketforum.com/index.php (http://www.domesticcricketforum.com/index.php)) and I am using the vertex theme when installing it says test failed on the vertex section, could you help?
Thanks
Alex
Hi DCF, which file it fails?
It says this
Vertex
Execute Modification ./Themes/Vertex-Theme2-0-2-v1-2/index.template.php Test failed
1. Add Before ./Themes/Vertex-Theme2-0-2-v1-2/index.template.php Test failed
Can you upload the index.template.php file of that theme here so I can take a look?
Whats the easiest way to do that?
Quote from: DomesticCricketForum on May 01, 2013, 02:26:49 PM
Whats the easiest way to do that?
no worries man, you have a link to this theme?
Here you go http://www.simplemachines.org/community/index.php?topic=442036.0 (http://www.simplemachines.org/community/index.php?topic=442036.0)
Awesome. Gimmie sometime to test it and ill get back to you. ;)
Thanks!
Very cool idea. I had to add it manually to my theme but now that it's done I can't wait to populate it. Will have to do after I install the wiki tomorrow so I can put all those links that I want to have some focus into a wiki header. :)
Thanks!
This looks so awesome on my site. Thank you very much.
Any luck with the testing?
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 ;)
Install it anyways since its only 1 edit in index.template.php
Then open the index.template.php file and...
Find:
echo '
</div>
';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
Add before:
//Footer Menu v.1 by: bluedevilcustoms.com
if (!empty($modSettings['fmenu_enabled']))
{
echo'
<br />
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tbody>
<tr>
<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>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title1']) && !empty($modSettings['fmenu_url1']) ? '<a title="' . $modSettings['fmenu_title1'] . '" href="' . $modSettings['fmenu_url1'] . '">' . $modSettings['fmenu_title1'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title2']) && !empty($modSettings['fmenu_url2']) ? '<a title="' . $modSettings['fmenu_title2'] . '" href="' . $modSettings['fmenu_url2'] . '">' . $modSettings['fmenu_title2'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title3']) && !empty($modSettings['fmenu_url3']) ? '<a title="' . $modSettings['fmenu_title3'] . '" href="' . $modSettings['fmenu_url3'] . '">' . $modSettings['fmenu_title3'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title4']) && !empty($modSettings['fmenu_url4']) ? '<a title="' . $modSettings['fmenu_title4'] . '" href="' . $modSettings['fmenu_url4'] . '">' . $modSettings['fmenu_title4'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title5']) && !empty($modSettings['fmenu_url5']) ? '<a title="' . $modSettings['fmenu_title5'] . '" href="' . $modSettings['fmenu_url5'] . '">' . $modSettings['fmenu_title5'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title6']) && !empty($modSettings['fmenu_url6']) ? '<a title="' . $modSettings['fmenu_title6'] . '" href="' . $modSettings['fmenu_url6'] . '">' . $modSettings['fmenu_title6'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title7']) && !empty($modSettings['fmenu_url7']) ? '<a title="' . $modSettings['fmenu_title7'] . '" href="' . $modSettings['fmenu_url7'] . '">' . $modSettings['fmenu_title7'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title8']) && !empty($modSettings['fmenu_url8']) ? '<a title="' . $modSettings['fmenu_title8'] . '" href="' . $modSettings['fmenu_url8'] . '">' . $modSettings['fmenu_title8'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title9']) && !empty($modSettings['fmenu_url9']) ? '<a title="' . $modSettings['fmenu_title9'] . '" href="' . $modSettings['fmenu_url9'] . '">' . $modSettings['fmenu_title9'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title10']) && !empty($modSettings['fmenu_url10']) ? '<a title="' . $modSettings['fmenu_title10'] . '" href="' . $modSettings['fmenu_url10'] . '">' . $modSettings['fmenu_title10'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title11']) && !empty($modSettings['fmenu_url11']) ? '<a title="' . $modSettings['fmenu_title11'] . '" href="' . $modSettings['fmenu_url11'] . '">' . $modSettings['fmenu_title11'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title12']) && !empty($modSettings['fmenu_url12']) ? '<a title="' . $modSettings['fmenu_title12'] . '" href="' . $modSettings['fmenu_url12'] . '">' . $modSettings['fmenu_title12'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title13']) && !empty($modSettings['fmenu_url13']) ? '<a title="' . $modSettings['fmenu_title13'] . '" href="' . $modSettings['fmenu_url13'] . '">' . $modSettings['fmenu_title13'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title14']) && !empty($modSettings['fmenu_url14']) ? '<a title="' . $modSettings['fmenu_title14'] . '" href="' . $modSettings['fmenu_url14'] . '">' . $modSettings['fmenu_title14'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title15']) && !empty($modSettings['fmenu_url15']) ? '<a title="' . $modSettings['fmenu_title15'] . '" href="' . $modSettings['fmenu_url15'] . '">' . $modSettings['fmenu_title15'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title16']) && !empty($modSettings['fmenu_url16']) ? '<a title="' . $modSettings['fmenu_title16'] . '" href="' . $modSettings['fmenu_url16'] . '">' . $modSettings['fmenu_title16'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title17']) && !empty($modSettings['fmenu_url17']) ? '<a title="' . $modSettings['fmenu_title17'] . '" href="' . $modSettings['fmenu_url17'] . '">' . $modSettings['fmenu_title17'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title18']) && !empty($modSettings['fmenu_url18']) ? '<a title="' . $modSettings['fmenu_title18'] . '" href="' . $modSettings['fmenu_url18'] . '">' . $modSettings['fmenu_title18'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title19']) && !empty($modSettings['fmenu_url19']) ? '<a title="' . $modSettings['fmenu_title19'] . '" href="' . $modSettings['fmenu_url19'] . '">' . $modSettings['fmenu_title19'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title20']) && !empty($modSettings['fmenu_url20']) ? '<a title="' . $modSettings['fmenu_title20'] . '" href="' . $modSettings['fmenu_url20'] . '">' . $modSettings['fmenu_title20'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title21']) && !empty($modSettings['fmenu_url21']) ? '<a title="' . $modSettings['fmenu_title21'] . '" href="' . $modSettings['fmenu_url21'] . '">' . $modSettings['fmenu_title21'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title22']) && !empty($modSettings['fmenu_url22']) ? '<a title="' . $modSettings['fmenu_title22'] . '" href="' . $modSettings['fmenu_url22'] . '">' . $modSettings['fmenu_title22'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title23']) && !empty($modSettings['fmenu_url23']) ? '<a title="' . $modSettings['fmenu_title23'] . '" href="' . $modSettings['fmenu_url23'] . '">' . $modSettings['fmenu_title23'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title24']) && !empty($modSettings['fmenu_url24']) ? '<a title="' . $modSettings['fmenu_title24'] . '" href="' . $modSettings['fmenu_url24'] . '">' . $modSettings['fmenu_title24'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title25']) && !empty($modSettings['fmenu_url25']) ? '<a title="' . $modSettings['fmenu_title25'] . '" href="' . $modSettings['fmenu_url25'] . '">' . $modSettings['fmenu_title25'] . '</a>' : '', '</td>
</tr>
</tbody>
</table>
</div>
</div>
<span class="lowerframe"><span></span></span>';
}
//End of Footer Menu v.1
Quote from: Arantor on May 08, 2013, 01:56:42 PM
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 ;)
I know ;)
Thing is, i havent had a chance to experiment with hooks.
When I suggested it 2 years ago, I wasn't suggesting hooks - I was simply suggesting direct file edits to the Sources files. Doing it with hooks is just the icing on the cake.
Thanks that worked well! :)
Thanks for this mod!
I'm using it at http://summerwish.org/forum/index.php
Quote from: Soft Drink on July 19, 2013, 03:03:20 PM
Thanks for this mod!
I'm using it at http://summerwish.org/forum/index.php
awesome. Nice site too!
Thank you! :)
Is there a way to open the links in another tab?
Thanks for this wonderful work.
When i tried to install it, i encountered test failures. I want to know whether i should continue with installation.
Also i dont want many up to 25 links like the one i saw. Is there a way i can manually reduce it. Because i want only 5 links
Always thankful sir
Do not continue installing. It fails because of that custom theme you're using.
Let me repack the mod with hooks so installs flawlessly on custom themes.
Quote from: peterwaalker on August 04, 2013, 10:37:16 PM
Thanks for this wonderful work.
When i tried to install it, i encountered test failures. I want to know whether i should continue with installation.
Also i dont want many up to 25 links like the one i saw. Is there a way i can manually reduce it. Because i want only 5 links
Always thankful sir
Quote from: Mick. on August 05, 2013, 03:50:08 PM
Do not continue installing. It fails because of that custom theme you're using.
Let me repack the mod with hooks so installs flawlessly on custom themes.
Should i go ahead and install them now? I'm using Anacdota theme smf version 2.0.4
Always thankful
This mod is good.
Any hope for repacking it for Anacdota theme without index.php test failure in SMF 2.0.4
I need abit of support if you can help me.
Installed it fine apart from a problem with a custom theme Blackstorm so i edited ./Themes/blackstorm/index.template.php and added the code from the manual install section this sorted it out and showed it fine but i have another problem.
I have large spacing between each link on the custom theme as you will see in the attachment below the default theme shows it fine. What part of index.template.php would i need to edit so i can take out the large spacing.
Here is the code for index.template.php of custom theme.
<?php
/**
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines
* @copyright 2011 Simple Machines
* @license http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0
*/
/* 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';
/* 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'] = false;
/* 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.
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>';
// The ?fin20 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?fin20" />';
// 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['default_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" />';
// Here comes the JavaScript bits!
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?fin20"></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 ()
{
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}
addLoadEvent(fPmPopup);' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>';
echo '
<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'], '" />';
// Show all the relative links, such as help, search, contents, and the like.
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" />';
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];
echo '
</head>
<body>';
}
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div style="width: 1160px; height: 100px; border: 0px double white; text-align: center; overflow: auto;">
<img src="http://keepitrealkeepitgoth.com/images/banner.png">
</div>
</div>
<div id="navibar">
',template_menu(),'
</div>
<div id="bodybg">';
theme_linktree();
}
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
//Footer Menu v.1 by: bluedevilcustoms.com
if (!empty($modSettings['fmenu_enabled']))
{
echo'
<br />
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tbody>
<tr>
<td><strong><font size="3" color="#ffffff">' . (!empty($modSettings['fmenu_heading1']) ? $modSettings['fmenu_heading1'] : '') . '</font></strong></td>
<td><strong><font size="3" color="#ffffff">' . (!empty($modSettings['fmenu_heading2']) ? $modSettings['fmenu_heading2'] : '') . '</font></strong></td>
<td><strong><font size="3" color="#ffffff">' . (!empty($modSettings['fmenu_heading3']) ? $modSettings['fmenu_heading3'] : '') . '</font></strong></td>
<td><strong><font size="3" color="#ffffff">' . (!empty($modSettings['fmenu_heading4']) ? $modSettings['fmenu_heading4'] : '') . '</font></strong></td>
<td><strong><font size="3" color="#ffffff">' . (!empty($modSettings['fmenu_heading5']) ? $modSettings['fmenu_heading5'] : '') . '</font></strong></td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title1']) && !empty($modSettings['fmenu_url1']) ? '<a title="' . $modSettings['fmenu_title1'] . '" href="' . $modSettings['fmenu_url1'] . '">' . $modSettings['fmenu_title1'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title2']) && !empty($modSettings['fmenu_url2']) ? '<a title="' . $modSettings['fmenu_title2'] . '" href="' . $modSettings['fmenu_url2'] . '">' . $modSettings['fmenu_title2'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title3']) && !empty($modSettings['fmenu_url3']) ? '<a title="' . $modSettings['fmenu_title3'] . '" href="' . $modSettings['fmenu_url3'] . '">' . $modSettings['fmenu_title3'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title4']) && !empty($modSettings['fmenu_url4']) ? '<a title="' . $modSettings['fmenu_title4'] . '" href="' . $modSettings['fmenu_url4'] . '">' . $modSettings['fmenu_title4'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title5']) && !empty($modSettings['fmenu_url5']) ? '<a title="' . $modSettings['fmenu_title5'] . '" href="' . $modSettings['fmenu_url5'] . '">' . $modSettings['fmenu_title5'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title6']) && !empty($modSettings['fmenu_url6']) ? '<a title="' . $modSettings['fmenu_title6'] . '" href="' . $modSettings['fmenu_url6'] . '">' . $modSettings['fmenu_title6'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title7']) && !empty($modSettings['fmenu_url7']) ? '<a title="' . $modSettings['fmenu_title7'] . '" href="' . $modSettings['fmenu_url7'] . '">' . $modSettings['fmenu_title7'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title8']) && !empty($modSettings['fmenu_url8']) ? '<a title="' . $modSettings['fmenu_title8'] . '" href="' . $modSettings['fmenu_url8'] . '">' . $modSettings['fmenu_title8'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title9']) && !empty($modSettings['fmenu_url9']) ? '<a title="' . $modSettings['fmenu_title9'] . '" href="' . $modSettings['fmenu_url9'] . '">' . $modSettings['fmenu_title9'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title10']) && !empty($modSettings['fmenu_url10']) ? '<a title="' . $modSettings['fmenu_title10'] . '" href="' . $modSettings['fmenu_url10'] . '">' . $modSettings['fmenu_title10'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title11']) && !empty($modSettings['fmenu_url11']) ? '<a title="' . $modSettings['fmenu_title11'] . '" href="' . $modSettings['fmenu_url11'] . '">' . $modSettings['fmenu_title11'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title12']) && !empty($modSettings['fmenu_url12']) ? '<a title="' . $modSettings['fmenu_title12'] . '" href="' . $modSettings['fmenu_url12'] . '">' . $modSettings['fmenu_title12'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title13']) && !empty($modSettings['fmenu_url13']) ? '<a title="' . $modSettings['fmenu_title13'] . '" href="' . $modSettings['fmenu_url13'] . '">' . $modSettings['fmenu_title13'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title14']) && !empty($modSettings['fmenu_url14']) ? '<a title="' . $modSettings['fmenu_title14'] . '" href="' . $modSettings['fmenu_url14'] . '">' . $modSettings['fmenu_title14'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title15']) && !empty($modSettings['fmenu_url15']) ? '<a title="' . $modSettings['fmenu_title15'] . '" href="' . $modSettings['fmenu_url15'] . '">' . $modSettings['fmenu_title15'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title16']) && !empty($modSettings['fmenu_url16']) ? '<a title="' . $modSettings['fmenu_title16'] . '" href="' . $modSettings['fmenu_url16'] . '">' . $modSettings['fmenu_title16'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title17']) && !empty($modSettings['fmenu_url17']) ? '<a title="' . $modSettings['fmenu_title17'] . '" href="' . $modSettings['fmenu_url17'] . '">' . $modSettings['fmenu_title17'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title18']) && !empty($modSettings['fmenu_url18']) ? '<a title="' . $modSettings['fmenu_title18'] . '" href="' . $modSettings['fmenu_url18'] . '">' . $modSettings['fmenu_title18'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title19']) && !empty($modSettings['fmenu_url19']) ? '<a title="' . $modSettings['fmenu_title19'] . '" href="' . $modSettings['fmenu_url19'] . '">' . $modSettings['fmenu_title19'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title20']) && !empty($modSettings['fmenu_url20']) ? '<a title="' . $modSettings['fmenu_title20'] . '" href="' . $modSettings['fmenu_url20'] . '">' . $modSettings['fmenu_title20'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title21']) && !empty($modSettings['fmenu_url21']) ? '<a title="' . $modSettings['fmenu_title21'] . '" href="' . $modSettings['fmenu_url21'] . '">' . $modSettings['fmenu_title21'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title22']) && !empty($modSettings['fmenu_url22']) ? '<a title="' . $modSettings['fmenu_title22'] . '" href="' . $modSettings['fmenu_url22'] . '">' . $modSettings['fmenu_title22'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title23']) && !empty($modSettings['fmenu_url23']) ? '<a title="' . $modSettings['fmenu_title23'] . '" href="' . $modSettings['fmenu_url23'] . '">' . $modSettings['fmenu_title23'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title24']) && !empty($modSettings['fmenu_url24']) ? '<a title="' . $modSettings['fmenu_title24'] . '" href="' . $modSettings['fmenu_url24'] . '">' . $modSettings['fmenu_title24'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title25']) && !empty($modSettings['fmenu_url25']) ? '<a title="' . $modSettings['fmenu_title25'] . '" href="' . $modSettings['fmenu_url25'] . '">' . $modSettings['fmenu_title25'] . '</a>' : '', '</td>
</tr>
</tbody>
</table>
</div>
</div>
<span class="lowerframe"><span></span></span>';
}
//End of Footer Menu v.1
echo '
</div>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea">
<div id="footer_section">
<div class="frame">
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li class="copyright"><strong>BlackStorm © <a href="http://www.smfskins.com" target="_blank">SMF Skins</a></strong></li>
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span></a></li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span></a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';
echo '
</div></div>', !empty($settings['forum_width']) ? '
</div>' : '';
}
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
</div>
</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;
// Reverse the linktree in right to left mode.
if ($context['right_to_left'])
$context['linktree'] = array_reverse($context['linktree'], true);
echo '
<div class="navigate_section">
<ul>';
// 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"' : '', '>';
// Don't show a separator for the last one (RTL mode)
if ($link_num != count($context['linktree']) - 1 && $context['right_to_left'])
echo '&#171; ';
// 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 && !$context['right_to_left'])
echo ' &#187;';
echo '
</li>';
}
echo '
</ul>
</div>';
$shown_linktree = true;
}
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
<div id="topnav">
<ul>';
foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>', $button['title'], '</a>';
if (!empty($button['sub_buttons']))
{
echo '
<ul>';
foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</a>';
// 3rd level menus :)
if (!empty($childbutton['sub_buttons']))
{
echo '
<ul>';
foreach ($childbutton['sub_buttons'] as $grandchildbutton)
echo '
<li>
<a href="', $grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ' target="' . $grandchildbutton['target'] . '"' : '', '>', $grandchildbutton['title'], '</a>
</li>';
echo '
</ul>';
}
echo '
</li>';
}
echo '
</ul>';
}
echo '
</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();
// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '<a ' . (isset($value['active']) ? 'class="active" ' : '') . 'href="' . $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '><span>' . $txt[$value['text']] . '</span></a>';
}
// No buttons? No button strip either.
if (empty($buttons))
return;
// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>', '<span class="last">', $buttons[count($buttons) - 1]);
echo '
<div class="buttonlist', !empty($direction) ? ' align_' . $direction : '', '"', (empty($buttons) ? ' style="display: none;"' : ''), (!empty($strip_options['id']) ? ' id="' . $strip_options['id'] . '"': ''), '>
<ul>
<li>', implode('</li><li>', $buttons), '</li>
</ul>
</div>';
}
?>
Thanks fantastic mod btw :)
A very big thank you SIR for this great mod.
Forget the later message i sent you for support. This mod is working 100% now and i am testifying to it.
Thank you!! Thank you!! Thank you!! SIR
Also thankful to electricwildflower
Please Sir i dont know how to create page post so that i can link it up.
I dont want to create the post e.g privacy policy with my profile name.
Always thankful
Quote from: peterwaalker on August 12, 2013, 03:42:55 PM
Please Sir i dont know how to create page post so that i can link it up.
I dont want to create the post e.g privacy policy with my profile name.
Always thankful
um, what?
Quote from: Soft Drink on July 20, 2013, 06:19:16 AM
Thank you! :)
Is there a way to open the links in another tab?
Small bump here :)
@Soft Drink, in index.template.php find:
//Footer Menu v.1 by: bluedevilcustoms.com
if (!empty($modSettings['fmenu_enabled']))
{
echo'
<br />
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tbody>
<tr>
<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>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title1']) && !empty($modSettings['fmenu_url1']) ? '<a title="' . $modSettings['fmenu_title1'] . '" href="' . $modSettings['fmenu_url1'] . '">' . $modSettings['fmenu_title1'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title2']) && !empty($modSettings['fmenu_url2']) ? '<a title="' . $modSettings['fmenu_title2'] . '" href="' . $modSettings['fmenu_url2'] . '">' . $modSettings['fmenu_title2'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title3']) && !empty($modSettings['fmenu_url3']) ? '<a title="' . $modSettings['fmenu_title3'] . '" href="' . $modSettings['fmenu_url3'] . '">' . $modSettings['fmenu_title3'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title4']) && !empty($modSettings['fmenu_url4']) ? '<a title="' . $modSettings['fmenu_title4'] . '" href="' . $modSettings['fmenu_url4'] . '">' . $modSettings['fmenu_title4'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title5']) && !empty($modSettings['fmenu_url5']) ? '<a title="' . $modSettings['fmenu_title5'] . '" href="' . $modSettings['fmenu_url5'] . '">' . $modSettings['fmenu_title5'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title6']) && !empty($modSettings['fmenu_url6']) ? '<a title="' . $modSettings['fmenu_title6'] . '" href="' . $modSettings['fmenu_url6'] . '">' . $modSettings['fmenu_title6'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title7']) && !empty($modSettings['fmenu_url7']) ? '<a title="' . $modSettings['fmenu_title7'] . '" href="' . $modSettings['fmenu_url7'] . '">' . $modSettings['fmenu_title7'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title8']) && !empty($modSettings['fmenu_url8']) ? '<a title="' . $modSettings['fmenu_title8'] . '" href="' . $modSettings['fmenu_url8'] . '">' . $modSettings['fmenu_title8'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title9']) && !empty($modSettings['fmenu_url9']) ? '<a title="' . $modSettings['fmenu_title9'] . '" href="' . $modSettings['fmenu_url9'] . '">' . $modSettings['fmenu_title9'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title10']) && !empty($modSettings['fmenu_url10']) ? '<a title="' . $modSettings['fmenu_title10'] . '" href="' . $modSettings['fmenu_url10'] . '">' . $modSettings['fmenu_title10'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title11']) && !empty($modSettings['fmenu_url11']) ? '<a title="' . $modSettings['fmenu_title11'] . '" href="' . $modSettings['fmenu_url11'] . '">' . $modSettings['fmenu_title11'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title12']) && !empty($modSettings['fmenu_url12']) ? '<a title="' . $modSettings['fmenu_title12'] . '" href="' . $modSettings['fmenu_url12'] . '">' . $modSettings['fmenu_title12'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title13']) && !empty($modSettings['fmenu_url13']) ? '<a title="' . $modSettings['fmenu_title13'] . '" href="' . $modSettings['fmenu_url13'] . '">' . $modSettings['fmenu_title13'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title14']) && !empty($modSettings['fmenu_url14']) ? '<a title="' . $modSettings['fmenu_title14'] . '" href="' . $modSettings['fmenu_url14'] . '">' . $modSettings['fmenu_title14'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title15']) && !empty($modSettings['fmenu_url15']) ? '<a title="' . $modSettings['fmenu_title15'] . '" href="' . $modSettings['fmenu_url15'] . '">' . $modSettings['fmenu_title15'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title16']) && !empty($modSettings['fmenu_url16']) ? '<a title="' . $modSettings['fmenu_title16'] . '" href="' . $modSettings['fmenu_url16'] . '">' . $modSettings['fmenu_title16'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title17']) && !empty($modSettings['fmenu_url17']) ? '<a title="' . $modSettings['fmenu_title17'] . '" href="' . $modSettings['fmenu_url17'] . '">' . $modSettings['fmenu_title17'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title18']) && !empty($modSettings['fmenu_url18']) ? '<a title="' . $modSettings['fmenu_title18'] . '" href="' . $modSettings['fmenu_url18'] . '">' . $modSettings['fmenu_title18'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title19']) && !empty($modSettings['fmenu_url19']) ? '<a title="' . $modSettings['fmenu_title19'] . '" href="' . $modSettings['fmenu_url19'] . '">' . $modSettings['fmenu_title19'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title20']) && !empty($modSettings['fmenu_url20']) ? '<a title="' . $modSettings['fmenu_title20'] . '" href="' . $modSettings['fmenu_url20'] . '">' . $modSettings['fmenu_title20'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title21']) && !empty($modSettings['fmenu_url21']) ? '<a title="' . $modSettings['fmenu_title21'] . '" href="' . $modSettings['fmenu_url21'] . '">' . $modSettings['fmenu_title21'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title22']) && !empty($modSettings['fmenu_url22']) ? '<a title="' . $modSettings['fmenu_title22'] . '" href="' . $modSettings['fmenu_url22'] . '">' . $modSettings['fmenu_title22'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title23']) && !empty($modSettings['fmenu_url23']) ? '<a title="' . $modSettings['fmenu_title23'] . '" href="' . $modSettings['fmenu_url23'] . '">' . $modSettings['fmenu_title23'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title24']) && !empty($modSettings['fmenu_url24']) ? '<a title="' . $modSettings['fmenu_title24'] . '" href="' . $modSettings['fmenu_url24'] . '">' . $modSettings['fmenu_title24'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title25']) && !empty($modSettings['fmenu_url25']) ? '<a title="' . $modSettings['fmenu_title25'] . '" href="' . $modSettings['fmenu_url25'] . '">' . $modSettings['fmenu_title25'] . '</a>' : '', '</td>
</tr>
</tbody>
</table>
</div>
</div>
<span class="lowerframe"><span></span></span>';
}
//End of Footer Menu v.1
And replace with:
//Footer Menu v.1 by: bluedevilcustoms.com
if (!empty($modSettings['fmenu_enabled']))
{
echo'
<br />
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tbody>
<tr>
<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>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title1']) && !empty($modSettings['fmenu_url1']) ? '<a title="' . $modSettings['fmenu_title1'] . '" href="' . $modSettings['fmenu_url1'] . '" target="_blank">' . $modSettings['fmenu_title1'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title2']) && !empty($modSettings['fmenu_url2']) ? '<a title="' . $modSettings['fmenu_title2'] . '" href="' . $modSettings['fmenu_url2'] . '" target="_blank">' . $modSettings['fmenu_title2'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title3']) && !empty($modSettings['fmenu_url3']) ? '<a title="' . $modSettings['fmenu_title3'] . '" href="' . $modSettings['fmenu_url3'] . '" target="_blank">' . $modSettings['fmenu_title3'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title4']) && !empty($modSettings['fmenu_url4']) ? '<a title="' . $modSettings['fmenu_title4'] . '" href="' . $modSettings['fmenu_url4'] . '" target="_blank">' . $modSettings['fmenu_title4'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title5']) && !empty($modSettings['fmenu_url5']) ? '<a title="' . $modSettings['fmenu_title5'] . '" href="' . $modSettings['fmenu_url5'] . '" target="_blank">' . $modSettings['fmenu_title5'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title6']) && !empty($modSettings['fmenu_url6']) ? '<a title="' . $modSettings['fmenu_title6'] . '" href="' . $modSettings['fmenu_url6'] . '" target="_blank">' . $modSettings['fmenu_title6'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title7']) && !empty($modSettings['fmenu_url7']) ? '<a title="' . $modSettings['fmenu_title7'] . '" href="' . $modSettings['fmenu_url7'] . '" target="_blank">' . $modSettings['fmenu_title7'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title8']) && !empty($modSettings['fmenu_url8']) ? '<a title="' . $modSettings['fmenu_title8'] . '" href="' . $modSettings['fmenu_url8'] . '" target="_blank">' . $modSettings['fmenu_title8'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title9']) && !empty($modSettings['fmenu_url9']) ? '<a title="' . $modSettings['fmenu_title9'] . '" href="' . $modSettings['fmenu_url9'] . '" target="_blank">' . $modSettings['fmenu_title9'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title10']) && !empty($modSettings['fmenu_url10']) ? '<a title="' . $modSettings['fmenu_title10'] . '" href="' . $modSettings['fmenu_url10'] . '" target="_blank">' . $modSettings['fmenu_title10'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title11']) && !empty($modSettings['fmenu_url11']) ? '<a title="' . $modSettings['fmenu_title11'] . '" href="' . $modSettings['fmenu_url11'] . '" target="_blank">' . $modSettings['fmenu_title11'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title12']) && !empty($modSettings['fmenu_url12']) ? '<a title="' . $modSettings['fmenu_title12'] . '" href="' . $modSettings['fmenu_url12'] . '" target="_blank">' . $modSettings['fmenu_title12'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title13']) && !empty($modSettings['fmenu_url13']) ? '<a title="' . $modSettings['fmenu_title13'] . '" href="' . $modSettings['fmenu_url13'] . '" target="_blank">' . $modSettings['fmenu_title13'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title14']) && !empty($modSettings['fmenu_url14']) ? '<a title="' . $modSettings['fmenu_title14'] . '" href="' . $modSettings['fmenu_url14'] . '" target="_blank">' . $modSettings['fmenu_title14'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title15']) && !empty($modSettings['fmenu_url15']) ? '<a title="' . $modSettings['fmenu_title15'] . '" href="' . $modSettings['fmenu_url15'] . '" target="_blank">' . $modSettings['fmenu_title15'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title16']) && !empty($modSettings['fmenu_url16']) ? '<a title="' . $modSettings['fmenu_title16'] . '" href="' . $modSettings['fmenu_url16'] . '" target="_blank">' . $modSettings['fmenu_title16'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title17']) && !empty($modSettings['fmenu_url17']) ? '<a title="' . $modSettings['fmenu_title17'] . '" href="' . $modSettings['fmenu_url17'] . '" target="_blank">' . $modSettings['fmenu_title17'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title18']) && !empty($modSettings['fmenu_url18']) ? '<a title="' . $modSettings['fmenu_title18'] . '" href="' . $modSettings['fmenu_url18'] . '" target="_blank">' . $modSettings['fmenu_title18'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title19']) && !empty($modSettings['fmenu_url19']) ? '<a title="' . $modSettings['fmenu_title19'] . '" href="' . $modSettings['fmenu_url19'] . '" target="_blank">' . $modSettings['fmenu_title19'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title20']) && !empty($modSettings['fmenu_url20']) ? '<a title="' . $modSettings['fmenu_title20'] . '" href="' . $modSettings['fmenu_url20'] . '" target="_blank">' . $modSettings['fmenu_title20'] . '</a>' : '', '</td>
</tr>
<tr>
<td>', !empty($modSettings['fmenu_title21']) && !empty($modSettings['fmenu_url21']) ? '<a title="' . $modSettings['fmenu_title21'] . '" href="' . $modSettings['fmenu_url21'] . '" target="_blank">' . $modSettings['fmenu_title21'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title22']) && !empty($modSettings['fmenu_url22']) ? '<a title="' . $modSettings['fmenu_title22'] . '" href="' . $modSettings['fmenu_url22'] . '" target="_blank">' . $modSettings['fmenu_title22'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title23']) && !empty($modSettings['fmenu_url23']) ? '<a title="' . $modSettings['fmenu_title23'] . '" href="' . $modSettings['fmenu_url23'] . '" target="_blank">' . $modSettings['fmenu_title23'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title24']) && !empty($modSettings['fmenu_url24']) ? '<a title="' . $modSettings['fmenu_title24'] . '" href="' . $modSettings['fmenu_url24'] . '" target="_blank">' . $modSettings['fmenu_title24'] . '</a>' : '', '</td>
<td>', !empty($modSettings['fmenu_title25']) && !empty($modSettings['fmenu_url25']) ? '<a title="' . $modSettings['fmenu_title25'] . '" href="' . $modSettings['fmenu_url25'] . '" target="_blank">' . $modSettings['fmenu_title25'] . '</a>' : '', '</td>
</tr>
</tbody>
</table>
</div>
</div>
<span class="lowerframe"><span></span></span>';
}
//End of Footer Menu v.1
All links will open in a new browser. If you dont want them all opening a new browser, just remove this part from the links you choose.
target="_blank"
Thank you, Mick! :)
Quote from: Soft Drink on August 22, 2013, 10:15:29 AM
Thank you, Mick! :)
Let me know if it worked out for ya. I didnt test it.
Works perfect at http://summerwish.org
Thanks again :)
Quote from: Soft Drink on August 22, 2013, 11:38:13 AM
Works perfect at http://summerwish.org
Thanks again :)
Awesome. btw, nice site.
Thanks! :)
I customized your footer menu a bit (size, font, color). I hope you don't mind :)
Quote from: Soft Drink on August 23, 2013, 07:17:49 AM
Thanks! :)
I customized your footer menu a bit (size, font, color). I hope you don't mind :)
You can customize any mods to your likings.
Hi, I've used this Mod on my "Black Head" theme, i have now switched themes too "Blackstorm" however, the Footer menu doesn't show up.. How can i fix this? :-/
Uninstall and reinstall the mod... like you would have to do any time you had a mod installed and then changed themes.
Quote from: peterwaalker on August 04, 2013, 10:37:16 PM
Thanks for this wonderful work.
When i tried to install it, i encountered test failures. I want to know whether i should continue with installation.
Also i dont want many up to 25 links like the one i saw. Is there a way i can manually reduce it. Because i want only 5 links
Always thankful sir
i repaired my forum but have forgot how i installed it successfully then
please help
Hello, I'v just installed the mod no problem but I can not find it in the configuration>Modifcations anywhere. Any advice?
Edit: I just downloaded the other footer mod, and it worked.
I'm thinking to install this mod but it gives me error on default theme, everything else seems good. Should I proceed installation without marking the boxes for core theme?
Core Theme
Execute Modification ./Themes/core/index.template.php Test failed
1. Add Before ./Themes/core/index.template.php Test failed
The default theme is curve and not core. Are you using the SMF default theme or the core theme? If you are not using core and are not getting errors on default, then yes- it's ok to install the mod.
1. Execute Modification ./Themes/default/index.template.php Test successful
1. Add Before ./Themes/default/index.template.php Test successful
2. Execute Modification ./Sources/Admin.php Test successful
1. Add After ./Sources/Admin.php Test successful
3. Execute Modification ./Sources/ManageSettings.php Test successful
1. Add After ./Sources/ManageSettings.php Test successful
2. Add Before ./Sources/ManageSettings.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
Core Theme
Execute Modification ./Themes/core/index.template.php Test failed
1. Add Before ./Themes/core/index.template.php Test failed
Tepid
Execute Modification ./Themes/tepid/index.template.php Test successful
http://titanquestfans.byethost11.com/smf/index.php?action=forum
Ok so if the tepid theme and the curve theme have no errors, and only the core theme (which I'm assuming nobody on your forum is using), then yes- you can install and ignore the errors in core