TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 02, 2024, 08:38:01 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 151
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 86
  • Total: 87
  • @rjen

[Block] Footer Menu

Started by bluedevil, April 14, 2010, 04:11:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mick

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. ;)

ZarPrime

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

Mick

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.

ZarPrime

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.

Mick

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.

ZarPrime

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

IchBin

Try again, you should be able to access now.

Mick


Mick

I edited my first post.  Is this being moved?  If so, do you mind cleaning these posts?

Thanx.

IchBin

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.

RoarinRow

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.


SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Ken.

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
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Mick


othg_weasel

Is there a way that you could make all the buttons come out one color?

see attached

Mick

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.

othg_weasel

Cool that worked great...

Thank you bluedevil

Mick

Quote from: rjez on April 19, 2010, 01:59:10 AM
Cool that worked great...

Thank you bluedevil

Youre most welcome.