CPCWiki forum

General Category => CPCWiki Discussion => Topic started by: Devilmarkus on 15:06, 31 December 11

Title: Workaround for Gryzor: "Go Up" button
Post by: Devilmarkus on 15:06, 31 December 11
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!
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Gryzor on 18:17, 31 December 11
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
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Devilmarkus on 18:22, 31 December 11
Yes, it's a button which scrolls the page up, also on sites, where no threads are shown:
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Gryzor on 19:11, 31 December 11
Like... PageUp?
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Devilmarkus on 19:12, 31 December 11
No, like "home" :P
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Gryzor on 19:20, 31 December 11
Oh!


...there: solved :D
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Devilmarkus on 19:23, 31 December 11
Yes, sure...
Makes fun to search the "home" button after you had been comfortably clicking through the forum with your mouse ;)
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Metr on 19:36, 31 December 11
Works great from mobile! Now I need a Go Down button-poke for 'infinite fun'!! :)
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Devilmarkus on 19:44, 31 December 11
:P
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Metr on 19:55, 31 December 11
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 :D -  Stellt Euch vor... (http://cpc-live.com/forum/index.php?board=7.0) ? :D)
Title: Re: Workaround for Gryzor: "Go Up" button
Post by: Devilmarkus on 20:09, 31 December 11
"Stellt euch vor" means "Introduce yourself" ;)
Powered by SMFPacks Menu Editor Mod