Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bugo on August 09, 2012, 12:52:39 PM

Title: Scrolling Buttons
Post by: Bugo on August 09, 2012, 12:52:39 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3433)

Nice buttons for quick scrolling of your forum's pages.

You can enable/disable these buttons at Configuration => Themes and layout => Member options or for each member separately, via Profile => Look and Layout
Title: Re: Scrolling Buttons
Post by: BaghdadGhost on August 10, 2012, 07:15:45 PM
Hi Bugo,

how to make it work with custom theme?

thanks
Title: Re: Scrolling Buttons
Post by: Bugo on August 11, 2012, 12:22:02 AM
It works with custom themes.
Title: Re: Scrolling Buttons
Post by: BaghdadGhost on August 11, 2012, 01:48:12 AM
it does not on mine. Is it because I have another similar mod installed? I disabled it though. let me try uninstall it and see how things go.

Title: Re: Scrolling Buttons
Post by: Jessica. on August 18, 2012, 06:15:35 PM
good mod
Title: Re: Scrolling Buttons
Post by: mgrmgr on September 17, 2012, 08:14:12 AM
A good mod, thank you.

But (sorry) as usual for me I have two suggestions.

a) enable (rather implement) such buttons also in other areas of the forum. There are a lot of places (f.x. in the Admin-areas) where  I sorely miss such a scroll help (browse modifications to the version change at the bottom of that page)

b) can you put a changelog in the description/readme text? As of now I have to dig in the changes just to find out that don't need the correction of a typo which I corrected already for my installation.

But thank you as well :)
Title: Re: Scrolling Buttons
Post by: Bugo on September 17, 2012, 08:20:00 AM
a) Did you try new version?
b) I don't like changelogs :)
Title: Re: Scrolling Buttons
Post by: mgrmgr on September 17, 2012, 10:13:02 AM
Quote from: Bugo on September 17, 2012, 08:20:00 AM
a) Did you try new version?
b) I don't like changelogs :)

a) Because there is no change log I did not yet know there was such a change in V 0.2.0.2 :)

b) well - me too (when writing) for reading see a)
Title: Re: Scrolling Buttons
Post by: mgrmgr on September 18, 2012, 02:38:35 PM
Quote from: Bugo on September 17, 2012, 08:20:00 AM
a) Did you try new version?
...

I did today - Just hugs and thank you
Title: Re: Scrolling Buttons
Post by: teos55 on January 19, 2013, 02:11:37 PM
Bugo,

  I know this topic is old, but is it possible to place the buttons somewhere near the bottom right corner ?

A very handy tool indeed, thanks.
Title: Re: Scrolling Buttons
Post by: OCJ on April 23, 2013, 11:48:14 AM
I used a friends iPad while on holiday to access the site and some problems with SMF and the scroll buttons - they didnt work. If you don't have one I guess its hard to test.
The iPad was 2 or 3 years old - thats all I know. The scroll buttons just stuck at the top of the template and didnt move down as they usually do.

Title: Re: Scrolling Buttons
Post by: pocttopus on June 29, 2020, 04:07:49 AM
What is today's update?
Also it would be awesome if there is an option to change color with css style's instead of using .png file's for 2.1rc2 version.
Title: Re: Scrolling Buttons
Post by: Bugo on June 29, 2020, 04:15:01 AM
Quote from: pocttopus on June 29, 2020, 04:07:49 AM
What is today's update?
Fixes for SMF 2.0.x.

Quote from: pocttopus on June 29, 2020, 04:07:49 AM
Also it would be awesome if there is an option to change color with css style's instead of using .png file's for 2.1rc2 version.
Thanks for your idea. I'll think about that.
Title: Re: Scrolling Buttons
Post by: Bugo on September 27, 2020, 07:22:21 AM
v0.6, smf21
Experimental version, uses CSS only, without sprites, without JS.
Title: Re: Scrolling Buttons
Post by: pocttopus on September 27, 2020, 03:56:21 PM
Amazing.
It works v0.6 on smf 2.1rc2.  ;)
Thanks! :)
Title: Re: Scrolling Buttons
Post by: pocttopus on October 22, 2020, 01:47:44 AM
So, what's the latest update? It's still the latest version.
Title: Re: Scrolling Buttons
Post by: FrizzleFried on February 22, 2022, 10:17:03 AM
FEATURE REQUEST: I have some users who love these buttons.  I also have some users who continually complain they clutter up the look.  If would be incredible if you were to add functionality to allow users to choose if they want to see the buttons or not in their profile.  Any chance they could happen one day?
Title: Re: Scrolling Buttons
Post by: Bugo on February 23, 2022, 12:28:08 PM
99.9%
Title: Re: Scrolling Buttons
Post by: FrizzleFried on February 23, 2022, 05:37:33 PM
If you're in the mood to take requests...

:)

... there is different form software that uses buttons that look almost like yours... but they locate the buttons at the bottom right rather than centered right.  An option to choose location (top/middle/bottom) would be pretty darned great too.

:)

Thank you for doing what you do. 
Title: Re: Scrolling Buttons
Post by: chadon on February 27, 2022, 10:36:29 AM
Hi, I have been using this mod for a long time but with the last version some users under Android or Mozilla browsers have issues with the arrows' display.

Title: Re: Scrolling Buttons
Post by: Bugo on February 27, 2022, 01:16:47 PM
Try to replace Unicode arrows with emoji (https://unicode-table.com/en/emoji/symbols/arrow/)

/Sources/Class-ScrollingButtons.php:


$context['insert_after_template'] .= '
<a class="arrow_up" href="#top_section">⬆</a>
<a class="arrow_down" href="#footer">⬇</a>';

Title: Re: Scrolling Buttons
Post by: chadon on February 28, 2022, 06:05:56 AM
Thank you Bugo, the problem is solved.  :) ☮
Title: Re: Scrolling Buttons
Post by: pikeman on March 13, 2022, 08:00:12 AM
Is it possible to change the color of the arrows?
Title: Re: Scrolling Buttons
Post by: Bugo on March 13, 2022, 08:37:22 AM
Try to change color via Themes/default/css/scrolling_buttons.css
Title: Re: Scrolling Buttons
Post by: pikeman on March 13, 2022, 09:03:22 AM
It works, thanks Bugo!
Title: Re: Scrolling Buttons
Post by: mickjav on March 13, 2022, 12:30:10 PM
This works On Most of my Themes except Alien Shades By @Shades., It works on the down but not Up.

This is my test site https://www.databasedreams.co.uk/testing/index.php

Title: Re: Scrolling Buttons
Post by: Shades. on March 13, 2022, 12:48:18 PM
Quote from: mickjav on March 13, 2022, 12:30:10 PMThis works On Most of my Themes except Alien Shades By @Shades., It works on the down but not Up.

This is my test site https://www.databasedreams.co.uk/testing/index.php



I fixed this in the last update. ;)

Open Alien_Shades_21_1/index.template.php and

Find:
<li class="floatright"><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', (!empty($modSettings['requireAgreement'])) ? '| <a href="' . $scripturl . '?action=agreement">' . $txt['terms_and_rules'] . '</a>' : '', ' | <a href="#top_section">', $txt['go_up'], ' &#9650;</a></li>';
Replace with:
<li class="floatright"><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', (!empty($modSettings['requireAgreement'])) ? '| <a href="' . $scripturl . '?action=agreement">' . $txt['terms_and_rules'] . '</a>' : '', ' | <a href="#header">', $txt['go_up'], ' &#9650;</a></li>';
Basically just changing "#top_section" to #header 8)
Title: Re: Scrolling Buttons
Post by: Kira_ on May 31, 2022, 02:21:16 AM
If someone wants arrows not in the bottom corner, but in the center, change
bottom: 70px; to bottom: calc(50% + 23px); for the top arrow
and
bottom: 20px; to bottom: calc(50% - 23px); for the bottom arrow
in the scrolling_buttons.css file.

Note: css files are cached by the browser. You won't see any changes until this file in your browser cache is updated.
Title: Re: Scrolling Buttons
Post by: Chyandour on January 24, 2023, 08:15:22 AM
Hi,

SMF 2.1.3.  Scrolling buttons mod installs okay without error and displays the buttons on android phones, but on the laptop in Firefox or Chrome the button placeholders are there but no button arrows show.
You cannot view this attachment.
Any clues as to what might be causing this?
Title: Re: Scrolling Buttons
Post by: Chyandour on January 24, 2023, 12:16:09 PM
Quote from: Bugo on February 27, 2022, 01:16:47 PMTry to replace Unicode arrows with emoji (https://unicode-table.com/en/emoji/symbols/arrow/)

[Solved]

/Sources/Class-ScrollingButtons.php:


$context['insert_after_template'] .= '
<a class="arrow_up" href="#top_section">⬆</a>
<a class="arrow_down" href="#footer">⬇</a>';