News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Devilmarkus

Workaround for Gryzor: "Go Up" button

Started by Devilmarkus, 15:06, 31 December 11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Devilmarkus

Hello Themis,
I also installed SMF on my server and found it boring that there's no "Go Up" button on the pages.
So I coded it.

Here's a little workaround for you:
Edit Themes/default/index.template.php

Search for:
function template_body_below()
{
    global $context, $settings, $options, $scripturl, $txt, $modSettings;


Add after:
    echo "<div class=\"buttonlist floatleft\"><ul><li><a class=\"button_strip_add_poll\" href='javascript:scroll(0,0);'><span>Go Up!</span>[/url]</li></ul></div>";

Have fun!
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor

Hey, not sure what this does :D If I understand this correctly, there *is* such a button: it's called "Home" and it's available on all keyboards? :D

Devilmarkus

#2
Yes, it's a button which scrolls the page up, also on sites, where no threads are shown:
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor


Devilmarkus

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor


Devilmarkus

Yes, sure...
Makes fun to search the "home" button after you had been comfortably clicking through the forum with your mouse ;)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Metr

Works great from mobile! Now I need a Go Down button-poke for 'infinite fun'!! :)

Devilmarkus

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Metr

OMG, infinite fun in german goes NACH INFINITY !! (And beyond!)
Awesome! Lucky my 'ESC Button' works so I could scape from the loop ! (couldnt find an offtopic to say it there :DStellt Euch vor... ? :D)

Devilmarkus

"Stellt euch vor" means "Introduce yourself" ;)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Powered by SMFPacks Menu Editor Mod