News:

Wondering if this will always be free?  See why free is better.

Main Menu

Scrolling Buttons

Started by Bugo, August 09, 2012, 12:52:39 PM

Previous topic - Next topic

Bugo

Try to replace Unicode arrows with emoji

/Sources/Class-ScrollingButtons.php:


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


chadon

Thank you Bugo, the problem is solved.  :)

pikeman

Is it possible to change the color of the arrows?

Bugo

Try to change color via Themes/default/css/scrolling_buttons.css

pikeman


mickjav

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


Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

Shades.

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)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kira_

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.
а нас
за що?

Chyandour

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?

Chyandour

Quote from: Bugo on February 27, 2022, 01:16:47 PMTry to replace Unicode arrows with hxxp:unicode-table.com/en/emoji/symbols/arrow/ [nonactive]

[Solved]

/Sources/Class-ScrollingButtons.php:


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



Advertisement: