Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3787)
Footer Menu 1.1.2 by live627
This mod appends a menu to the bottom of the page. It shows everywhere.
Admin settings are under the Forum sub-menu in the admin panel.
Changelog
1.1.2 - 15 Oct 2013
! Footer cache would not refresh upon link deletion and some other actions
1.1.1 - 12 Oct 2013
! Encoring: UTF-8 was forced on all inputs
! URL got truncated to 40 characters; set the new length to 400
1.0 - 02nd Oct 2013
Initial release submitted freely to mod site
Licence: ISC (http://opensource.org/licenses/ISC)
GitHub (https://github.com/live627/smf-footer-menu)
Good job ;)
I like the membergroup selector...looks familiar.
Yeah, it reminds me of the inline permissions handling in SMF, where a settings page has permissions embedded, e.g. the calendar, only without the collapsible title.
Looks good! Thanks Live.
useful mods.!
I try to make it by my self on theme file. this mods is my answer.
install completed and good work.
Thank you.
Hi,
I need some help with this mod:
correct link:http://ewmapa.pl/ogloszenia/rejestracja-na-forum/
but mod displays
http://ewmapa.pl/ogloszenia/rejestracja-
Place the attached file in ./Themes/default, overwriting the existing file, and try building that link again.
sorry not working :'( still display http://ewmapa.pl/sprawy-techniczne-i-opi
40 characters
to increase the display url
find:
<input type="text" name="url" value="', $context['item']['url'], '" size="20" maxlength="40">
replace
<input type="text" name="url" value="', $context['item']['url'], '" size="20" maxlength="256">
or more ;)
oh, I see. Thanks for pointing it out!
I keep getting the error
An Error Has Occurred!
Please try again later
Where do you get the error, exactly?
Is the error from the dollar store?
Hi, I can't delete items, they disappear from the list, but not in the footer of the website...
Thanks.
Fixed in 1.1.2
Oh no...
With this update the "items list" was deleted :o
Now how can I remove or modify it?
Edit an item, make no changes, click save.
There aren't items listed to modify...
I have redone all over.
How to make all links to open in new tabs ? Thans :)
you would have to edit the actual code to add target="_blank"
I will note, however, that it is actually considered bad form these days to force a user to open a new window on links.
Quote from: Kindred on November 25, 2013, 05:07:36 PM
I will note, however, that it is actually considered bad form these days to force a user to open a new window on links.
So why do we still do it?
that is a good question (although it should be addressed in another thread)
Quote from: Kindred on November 25, 2013, 05:07:36 PM
you would have to edit the actual code to add target="_blank"
I will note, however, that it is actually considered bad form these days to force a user to open a new window on links.
I know that new tabs are bad but I use my menu for advertisement and want to open new tabs. Can you tell where I need to put this code. Thanks
In the template.
If it's bad form, why can I click on various icons under member info and it opens a new tab? I personally think it's of great use so visitor's won't be completely drawn away from the original site.
"In the template"? What template would that be?
72 454,
It is bad form to FORCE the new window... the icons under the user info actually do NOT open new windows, unless you have set your own browser to do so... (for example, in my browser, they all open in the SAME window).
That is considered "good form". Allow the USER to specify the preferred behavior in their own browser settings and then respect that.
Except links in posts all direct off site and have done for years.
There is a valid logic to links that will be off-site going into a new tab, though.
that is true, Arantor... although the logic that SMF uses for that (because of the delays in the previous releases) is, sadly, outdated... current logic suggests that all links should obey the user's browser settings and not force same or new... (even though I tend to AGREE with forcing a new window for offsite links)
My confusion. New tab, not new window.
Quote from: FmX on November 25, 2013, 04:59:53 PM
How to make all links to open in new tabs ? Thans :)
File: Themes/Default/FooterMenu.template.php
Find:foreach ($cat['items'] as $item)
echo '
<a href="', $item['url'], '">', $item['name'], '</a>';
Replace with:foreach ($cat['items'] as $item)
echo '
<a href="', $item['url'], '" target="_blank">', $item['name'], '</a>';
Quote from: 72 454 on December 16, 2013, 08:57:18 PM
My confusion. New tab, not new window.
essentially the same thing.
Quote from: MaccabeeY on December 29, 2013, 07:15:35 PM
Hi,
Nice mod, footer menu! I would have posted this in the SMF community topic for this mod (instead of pm'ing), but one has not been started and I thought it best if a mod thread started by the author.
Anyway, all is great except on things. in FooterMenu.php, there is an entry for an icon, "settings.gif", but the package does not include or install it. Thus there is the ole standard 'X' placeholder in the dropmenu tab/button where the icon should when menu icons are enabled.
'icon' => 'settings.gif',
$admin_areas['layout']['areas']['footermenu'] = array(
'label' => $txt['footer_menu'],
'icon' => 'settings.gif',
'function' => 'FooterMenu',
'subsections' => array(
'index' => array($txt['footer_menu_menu_index']),
'edit' => array($txt['footer_menu_menu_edit']),
'categories' => array($txt['footer_menu_categories']),
'editcategory' => array($txt['footer_menu_editcategory']),
),
Do you already have a "settings.gif" file created? If so, could you send a link to it so I can drop it in the ...images/admin/ folder where it is looking for it?
Thanks,
ED
It's reusing the settings.gif that SMF normally comes with... or should be...
Quote from: Arantor Beeblebrox the First on December 29, 2013, 07:38:07 PM
It's reusing the settings.gif that SMF normally comes with... or should be...
Unfortunately, SMF does not come with a settings.gif, according to my search of the 2.0.6 full install package. It does have a search.gif, security.gif, selected.gif, and a server.gif, but no settings.gif
Let me know which SMF included image you intend on reusing and I will edit my FooterMenu.php to use that one.
ED
Huh, I could have sworn it did. My bad. (Not my mod, have no idea which)
I thought it came with that, too. Maybe it got renamed. Or removed. I don't remember which image it was supposed to be. server.gif seems good to use.
Ok, thx, I will modify your php file to use server.gif...ED
It seems that there is a confict with SMF Classifieds mod. When I installed Footer Menu, the SMF Classifieds page did not work (blank page). The rest of the forum (and the Footer Menu) was working OK. When I uninstalled Footer Menu, SMF Classifieds page was OK again.
Now Working in this theme : http://custom.simplemachines.org/themes/index.php?lemma=2755
Help me,..i want to install this amazing mod !! :-*
Might be just me, but I can't see the admin menu for "Footer Menu". Tried installing it through Package Manager and Manually. Using SMF 2.0.8.
Where do you go to see it?
Admin -> Forum -> ??? or Admin -> Configuration -> Modification Settings -> ???
Please advise.
I like this mod however I have an issue. When I make a new item, it doesn't populate any of my membergroups it only populates non post count groups. Is there any way to fix that?
FooterMenu.php, line 599
Find and remove
min_posts = {int:min_posts}
AND
Hi
is it possible too change/write this Mod also for the header?
Quote from: larry007 on September 10, 2014, 01:01:30 PM
Hi
is it possible too change/write this Mod also for the header?
push ;-)
that would reuire all sorts of changes... and there are already header mods...
In ./Themes/default/FooterMenu.template.php, find
template_footer_menu_below
Replace with
template_footer_menu_above
Find
template_footer_menu_above() {}
Replace with
template_footer_menu_below() {}
how can we sort the columns? i have one column called "my account" and another called "follow us". "follow us" comes first but i want "my account" to be first. tia.
I installed the mod with no problem, I added some categories and items, but I can't see the mod any where on my site
Are the items active and the group permissions set correctly?
I actually had left out the permissions, So now I can see it work, but it's hard to see because it's transparent and shows the background, If you see on my site , Forum.cannabisgamerclub.com I have something that looks similar to a footer, I was wondering if I could create a background for the footer to help it be more clear, or if you check out my site, If I could just move the mod down in place of the footer that's kind of already there by default from my theme. I'm just trying to get it to be nice and neat and have a background on the footer so it stands over the background image.
Can you attach zGames/index.template.php?
Here you go
Attached are two files you can try.
- FooterMenu.php - moves the template layer just inside html; put this file in ./Sources
- FooterMenu.template.php - modifies markup to match your theme; put this file in ./Themes/default
This is a fantastic mod thank you! As somebody previously mentioned, the order seems a bit confusing. It's a minor quibble and I'm working it out. I can't seem to figure out what triggers the decision for a category to be listed in the left column vs. a right column. Adding or tweaking an entry can cause the category position to change. I think I will just build from scratch now that I know what links I'm adding. I'm assuming that the first created items will take the left column?
QuoteI'm assuming that the first created items will take the left column?
Yes
Technical details: It uses the default database order.
Great thank you for the clarification on that. I will rebuilt it from scratch on that basis.
Also, I did a few quick css adjustments which you may or may not like. If anyone wants the css tweaks, I can post them. Not sure if that's appropriate or not though. I'll post a link: http://www.vegaspuck.com/forum/index.php
I'm just setting up, but to me your mod is a must have for anyone using SMF. Thanks!
oh it's fine - post away!
Ok thanks, I don't want to be disrespectful to your works.
In the "footermenu.css" I made a few minor tweaks, but design is always in the eyes of the beholder. You can see an example from my site link above.
#footermenu p
{
padding-bottom: 0.25em;
color: #d97b33;
font-size: 1.25em;
}
#footermenu
{
table-layout: fixed;
width: 100%;
margin-top: 2em;
}
Please don't LOL. I know it's not much, but I want to at least offer it up. My implementation is on the default SMF theme.
Why would we laugh? It looks good. :D
Hey Live, I actually have been experiencing a bug going on with my footer, I removed one of the categories and its not being removed from the site but it's not in the mod admin options anymore. I'v been trying to get a three section footer using your amazing mod.
Also have a section where all the smf credits, and theme credits are in a section but i'm trying to just minimize the font a little bit so they all fit on the very bottom out of the way of the 3 sections I was trying to create. Please let me know if that doesn't make any sense.