TinyPortal

Development => Resources => Topic started by: Mick on April 14, 2010, 04:11:59 PM

Title: [Block] Footer Menu
Post by: Mick on April 14, 2010, 04:11:59 PM
Name of Snippet: Footer Menu
SMF/TP versions tested: SMF2/TP1 beta 5-1
Block Type:: html & javascript
Author: BlueDevil
Other Requirements: SMF RC3 Installation
Demo: (look at footer) http://www.chevyavalancheclub.com/index.php

Description:
Don't like the "go to top" scripts?  Hate scrolling back to the top after reading a long thread?

If you use SMF RC2 or SMF RC3, this little code will add a quick menu of your choice in the footer of your website.  It would make it easier for you and your forum members to navigate.

-Create an HTML block in "Bottom Panel Blocks" section and position it.
-Do not use title/frame styles
-Do not allow block to collapse
-Check All membergroups
-Check All actions and articles
-Display on all boards

<div class="buttonlist align_right">
<ul>
    <li><a rel="nofollow" href="http://www.chevyavalancheclub.com" class="button_strip_reply active"><span>Home</span></a></li>
    <li><a rel="nofollow" href="http://www.chevyavalancheclub.com/index.php?action=forum" class="button_strip_add_poll"><span>Community</span></a></li>
    <li><a rel="nofollow" href="http://www.chevyavalancheclub.com/index.php?action=pages" class="button_strip_add_poll"><span>Nationals</span></a></li>
    <li><a rel="nofollow" href="http://www.chevyavalancheclub.com/index.php?action=articles" class="button_strip_add_poll"><span>Tech Articles</span></a></li>
    <li><a rel="nofollow" href="http://www.chevyavalancheclub.com/index.php?action=gallery" class="button_strip_add_poll"><span>Gallery</span></a></li>
</ul>
</div>


Simply replace the menu names and links.   You can add as many as want.

That's it.  Have fun. ;)
Title: Re: [Tip] Footer Menu
Post by: ZarPrime on April 14, 2010, 04:25:14 PM
Mick,

Nice. O0 Why don't you consider adding this to our new Block Code Snippets Board --> http://www.tinyportal.net/index.php?board=216.0

You'll need to check out the Posting Guidelines for that board first as snippets added there must be approved first --> http://www.tinyportal.net/index.php?topic=31641.0

ZarPrime
Title: Re: [Tip] Footer Menu
Post by: Mick on April 14, 2010, 04:27:27 PM
Quote from: ZarPrime on April 14, 2010, 04:25:14 PM
Mick,

Nice. O0 Why don't you consider adding this to our new Block Code Snippets Board --> http://www.tinyportal.net/index.php?board=216.0

You'll need to check out the Posting Guidelines for that board first as snippets added there must be approved first --> http://www.tinyportal.net/index.php?topic=31641.0

ZarPrime

Im off limits on both links.
Title: Re: [Tip] Footer Menu
Post by: ZarPrime on April 14, 2010, 04:29:27 PM
Really?  Hmmm, could be.  That was setup by Ichbin and freddy as I recall.  Maybe one of them will put it in there for you or something.
Title: Re: [Tip] Footer Menu
Post by: Mick on April 14, 2010, 04:33:55 PM
Quote from: ZarPrime on April 14, 2010, 04:29:27 PM
Really?  Hmmm, could be.  That was setup by Ichbin and freddy as I recall.  Maybe one of them will put it in there for you or something.

The topic or board you are looking for appears to be either missing or off limits to you.

Must be the Alpha-Tester tag.
Title: Re: [Tip] Footer Menu
Post by: ZarPrime on April 14, 2010, 04:41:41 PM
No, I doubt that.  It may just not have been open to the public by Ichbin since there isn't too much in there yet.  Maybe Ichbin or Freddy will comment.

ZarPrime
Title: Re: [Tip] Footer Menu
Post by: IchBin on April 14, 2010, 04:48:44 PM
Try again, you should be able to access now.
Title: Re: [Tip] Footer Menu
Post by: Mick on April 14, 2010, 04:54:58 PM
Thank you, i see them now. ;)
Title: Re: [Block] Footer Menu
Post by: Mick on April 14, 2010, 05:06:02 PM
I edited my first post.  Is this being moved?  If so, do you mind cleaning these posts?

Thanx.
Title: Re: [Block] Footer Menu
Post by: IchBin on April 14, 2010, 05:13:10 PM
No moving. This can be a topic for support. Topics in that board are moderated by the team and should not show up until we have approved them. You post it, I'll approve it. (if it's working the way we intend it too) lol.
Title: Re: [Block] Footer Menu
Post by: RoarinRow on April 14, 2010, 05:49:50 PM
Very cool snippet Mick!  I did something similar on AVS.  I edited the 'Go Up' and 'Go Down' links to make it look like this:

Go Down | Forum  | Unread Posts | 24 Hours | Last 100

In the Default theme edit the Display.template.php

Find

<strong>' . $txt['go_down'] . '</strong></a>

Add immediately after

| <a href="http://www.avalanchestyle.com/forum/index.php?action=forum"><b>Forum</b></a> | <a href="http://www.avalanchestyle.com/forum/index.php?action=unread"><b>Unread Posts</b></a> | <a href="http://www.avalanchestyle.com/forum/index.php?page=64;type=hours;count=24"><b>24 Hours</b></a> | <a href="http://www.avalanchestyle.com/forum/index.php?page=64;count=100"><b>Last 100</b></a>

This will show up on the top of the page.  Repeat the same thing for the bottom link.

Find

<strong>' . $txt['go_up'] . '</strong></a>

Add immediately after

| <a href="http://www.avalanchestyle.com/forum/index.php?action=forum"><b>Forum</b></a> | <a href="http://www.avalanchestyle.com/forum/index.php?action=unread"><b>Unread Posts</b></a> | <a href="http://www.avalanchestyle.com/forum/index.php?page=64;type=hours;count=24"><b>24 Hours</b></a> | <a href="http://www.avalanchestyle.com/forum/index.php?page=64;count=100"><b>Last 100</b></a>

It will look something like this.

Title: Re: [Block] Footer Menu
Post by: Ken. on April 14, 2010, 10:32:34 PM
Works nice. :up:

Had to make my links relative before they would work correctly, kept going to the home page when the full link was used.
http://www.ourfamilyforum.org/FamilyForum/index.php
Title: Re: [Block] Footer Menu
Post by: Mick on April 14, 2010, 10:42:08 PM
Simple but effective ;)
Title: Re: [Block] Footer Menu
Post by: othg_weasel on April 17, 2010, 03:49:36 AM
Is there a way that you could make all the buttons come out one color?

see attached
Title: Re: [Block] Footer Menu
Post by: Mick on April 17, 2010, 10:06:30 PM
I have not tried this but if you want them all 'blue'...

try replacing...
class="button_strip_add_poll">
for...
class="button_strip_reply active">

If that doesnt work, im afraid you'd have to add a new image and edit the CSS file.
Title: Re: [Block] Footer Menu
Post by: othg_weasel on April 19, 2010, 01:59:10 AM
Cool that worked great...

Thank you bluedevil
Title: Re: [Block] Footer Menu
Post by: Mick on April 19, 2010, 02:03:50 AM
Quote from: rjez on April 19, 2010, 01:59:10 AM
Cool that worked great...

Thank you bluedevil

Youre most welcome.