Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: live627 on October 04, 2013, 08:34:39 PM

Title: Footer Menu
Post by: live627 on October 04, 2013, 08:34:39 PM
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)
Title: Re: Footer Menu
Post by: Tavsih on October 05, 2013, 05:34:27 AM
Good job ;)
Title: Re: Footer Menu
Post by: Matthew K. on October 07, 2013, 12:17:31 AM
I like the membergroup selector...looks familiar.
Title: Re: Footer Menu
Post by: Arantor on October 07, 2013, 12:28:09 AM
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.
Title: Re: Footer Menu
Post by: Colin on October 07, 2013, 01:26:43 AM
Looks good! Thanks Live.
Title: Re: Footer Menu
Post by: siammongkol on October 07, 2013, 01:30:37 AM
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.
Title: Re: Footer Menu
Post by: cieplutki on October 12, 2013, 07:43:45 AM
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-
Title: Re: Footer Menu
Post by: live627 on October 12, 2013, 03:19:49 PM
Place the attached file in ./Themes/default, overwriting the existing file, and try building that link again.
Title: Re: Footer Menu
Post by: cieplutki on October 12, 2013, 03:44:05 PM
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  ;)
Title: Re: Footer Menu
Post by: live627 on October 12, 2013, 04:00:52 PM
oh, I see. Thanks for pointing it out!
Title: Re: Footer Menu
Post by: 99 Cents on October 12, 2013, 07:44:01 PM
I keep getting the error

An Error Has Occurred!

Please try again later
Title: Re: Footer Menu
Post by: Burke ♞ Knight on October 12, 2013, 07:45:28 PM
Where do you get the error, exactly?
Title: Re: Footer Menu
Post by: live627 on October 12, 2013, 09:31:10 PM
Is the error from the dollar store?
Title: Re: Footer Menu
Post by: VojoLaMejo on October 15, 2013, 06:55:26 AM
Hi, I can't delete items, they disappear from the list, but not in the footer of the website...

Thanks.
Title: Re: Footer Menu
Post by: live627 on October 15, 2013, 02:04:21 PM
Fixed in 1.1.2
Title: Re: Footer Menu
Post by: VojoLaMejo on October 20, 2013, 03:32:36 PM
Oh no...

With this update the "items list" was deleted  :o

Now how can I remove or modify it?
Title: Re: Footer Menu
Post by: live627 on October 20, 2013, 08:16:48 PM
Edit an item, make no changes, click save.
Title: Re: Footer Menu
Post by: VojoLaMejo on October 21, 2013, 03:08:26 PM
There aren't items listed to modify...
I have redone all over.
Title: Re: Footer Menu
Post by: FmX on November 25, 2013, 04:59:53 PM
How to make all links to open in new tabs ? Thans :)
Title: Re: Footer Menu
Post by: 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.
Title: Re: Footer Menu
Post by: Arantor on November 25, 2013, 05:07:55 PM
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?
Title: Re: Footer Menu
Post by: Kindred on November 25, 2013, 05:15:57 PM
that is a good question (although it should be addressed in another thread)
Title: Re: Footer Menu
Post by: FmX on November 25, 2013, 05:21:44 PM
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
Title: Re: Footer Menu
Post by: live627 on November 25, 2013, 05:52:59 PM
In the template.
Title: Re: Footer Menu
Post by: 72 454 on December 16, 2013, 02:31:50 PM
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?
Title: Re: Footer Menu
Post by: Kindred on December 16, 2013, 03:36:03 PM
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.
Title: Re: Footer Menu
Post by: Arantor on December 16, 2013, 03:39:57 PM
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.
Title: Re: Footer Menu
Post by: Kindred on December 16, 2013, 04:24:11 PM
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)
Title: Re: Footer Menu
Post by: 72 454 on December 16, 2013, 08:57:18 PM
My confusion. New tab, not new window.
Title: Re: Footer Menu
Post by: 72 454 on December 16, 2013, 09:27:35 PM
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>';
Title: Re: Footer Menu
Post by: Kindred on December 16, 2013, 10:50:47 PM
Quote from: 72 454 on December 16, 2013, 08:57:18 PM
My confusion. New tab, not new window.

essentially the same thing.
Title: Re: Footer Menu
Post by: MaccabeeY on December 29, 2013, 07:22:45 PM
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
Title: Re: Footer Menu
Post by: Arantor on December 29, 2013, 07:38:07 PM
It's reusing the settings.gif that SMF normally comes with... or should be...
Title: Re: Footer Menu
Post by: MaccabeeY on December 29, 2013, 07:47:32 PM
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
Title: Re: Footer Menu
Post by: Arantor on December 29, 2013, 07:48:44 PM
Huh, I could have sworn it did. My bad. (Not my mod, have no idea which)
Title: Re: Footer Menu
Post by: live627 on January 01, 2014, 03:55:10 PM
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.
Title: Re: Footer Menu
Post by: MaccabeeY on January 04, 2014, 01:08:01 AM
Ok, thx, I will modify your php file to use server.gif...ED
Title: Re: Footer Menu
Post by: vkot on January 07, 2014, 04:29:35 AM
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.
Title: Re: Footer Menu
Post by: GamePersia on March 27, 2014, 11:16:12 PM
Now Working in this theme : http://custom.simplemachines.org/themes/index.php?lemma=2755
Help me,..i want to install this amazing mod !! :-*
Title: Re: Footer Menu
Post by: catch101 on June 30, 2014, 09:26:50 AM
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.
Title: Re: Footer Menu
Post by: Kimmie on August 18, 2014, 07:22:11 PM
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?

Title: Re: Footer Menu
Post by: live627 on August 18, 2014, 11:40:36 PM
FooterMenu.php, line 599

Find and remove

min_posts = {int:min_posts}
AND
Title: Re: Footer Menu
Post by: larry007 on September 10, 2014, 01:01:30 PM
Hi

is it possible too change/write this Mod also for the header?
Title: Re: Footer Menu
Post by: larry007 on October 02, 2014, 09:15:29 AM
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 ;-)
Title: Re: Footer Menu
Post by: Kindred on October 02, 2014, 09:19:01 AM
that would reuire all sorts of changes...   and there are already header mods...
Title: Re: Footer Menu
Post by: live627 on October 02, 2014, 05:26:52 PM
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() {}
Title: Re: Footer Menu
Post by: cojeepers on November 07, 2014, 01:52:00 AM
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.
Title: Re: Footer Menu
Post by: MyTime on December 10, 2014, 12:21:38 AM
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
Title: Re: Footer Menu
Post by: live627 on December 11, 2014, 01:00:08 AM
Are the items active and the group permissions set correctly?
Title: Re: Footer Menu
Post by: MyTime on December 11, 2014, 01:26:29 AM
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.
Title: Re: Footer Menu
Post by: live627 on December 11, 2014, 02:48:19 AM
Can you attach zGames/index.template.php?
Title: Re: Footer Menu
Post by: MyTime on December 11, 2014, 06:54:48 PM
Here you go
Title: Re: Footer Menu
Post by: live627 on December 11, 2014, 11:07:11 PM
Attached are two files you can try.
Title: Re: Footer Menu
Post by: ge master on December 22, 2014, 01:53:01 PM
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?
Title: Re: Footer Menu
Post by: live627 on December 22, 2014, 04:02:14 PM
QuoteI'm assuming that the first created items will take the left column?
Yes

Technical details: It uses the default database order.
Title: Re: Footer Menu
Post by: ge master on December 22, 2014, 07:03:31 PM
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!
Title: Re: Footer Menu
Post by: live627 on December 22, 2014, 07:11:18 PM
oh it's fine - post away!
Title: Re: Footer Menu
Post by: ge master on December 22, 2014, 07:30:36 PM
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.
Title: Re: Footer Menu
Post by: Steve on December 22, 2014, 08:27:25 PM
Why would we laugh? It looks good. :D
Title: Re: Footer Menu
Post by: MyTime on January 30, 2015, 07:45:47 PM
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.