Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: varen sea on September 22, 2009, 05:21:23 PM

Title: Go up top
Post by: varen sea on September 22, 2009, 05:21:23 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2145)

Go up top v1




Author: - waren
collaborator - lucas-ruroken


Descripcion (Spanish):
mod que nos dara la posibilidad por medio de un botn el hacer Scroll hacia la parte de arriba del foro..


Description (English):
Modification will give us the possibility by means of a button to scroll towards the top of the forum ..

Languages:
english
english-utf8
spanish_es
spanish_es-utf8
spanish_latin


Imagenes:
(http://img9.imageshack.us/img9/5541/02gouptop.jpg)
Title: Re: Go up top
Post by: gbsothere on September 22, 2009, 05:37:14 PM
Very nice, Waren!

I like the fact that I can play with the style.css and change the color or move it or keep it at the bottom, instead of fixed.  Very versatile, great job!

:)
Title: Re: Go up top
Post by: franklinrony on September 22, 2009, 11:57:04 PM
excellent work,congrats,very usefull mod
Title: Re: Go up top
Post by: Rafferty on September 23, 2009, 02:55:23 AM
Very nice touch, well done

Title: Re: Go up top
Post by: islam2hamy on September 23, 2009, 03:52:43 AM
nice mode

Arabic-utf8 translation :

//Go up to           
$txt['Scrollgoup'] = 'للأعلى ^';
//Go up to End


please before put the translation in the file be sure that the file encode is UTF-8
Title: Re: Go up top
Post by: Sudhakar Arjunan on September 26, 2009, 02:43:20 PM
smart work.

Hope it works on all theme.

Let me try it.
Title: Re: Go up top
Post by: Smog on October 02, 2009, 06:52:27 PM
Simple but clever mod, txs!  :)
Title: Re: Go up top
Post by: TC Carl on October 30, 2009, 02:40:56 PM

I gotta tell you, Ive been hankering for this feature ever since I first clicked the Go Up button and did not Go Up to the main header area.

Well done!!


Title: Re: Go up top
Post by: Eclipse16V on January 07, 2010, 03:51:19 AM
German Lang

//Go up to
$txt['Scrollgoup'] = '^ Nach Oben';
//Go up to End
Title: Re: Go up top
Post by: playdiune on January 22, 2010, 10:03:01 PM
For me it doesnt work properly. when i click the button it redirects for the forum URL. so, it loads the page again, instead of scrll up.

what can it be ?

thanks
Title: Re: Go up top
Post by: varen sea on January 22, 2010, 11:52:27 PM
Quote from: playdiune on January 22, 2010, 10:03:01 PM
For me it doesnt work properly. when i click the button it redirects for the forum URL. so, it loads the page again, instead of scrll up.

what can it be ?

thanks

/Themes/default/index.template.php

Find:
<a id="toTop" href="">

Replace With:
<a id="toTop" href="#">
Title: Re: Go up top
Post by: playdiune on January 23, 2010, 08:26:40 AM
/Themes/default/index.template.php

Find:
<a id="toTop" href="">

Replace With:
<a id="toTop" href="#">

[/quote]

Still doesnt work. the link is still the forum URL. I am using last version of Internet Explorer.

What could it be ?

Thanks
Title: Re: Go up top
Post by: varen sea on January 23, 2010, 08:48:59 AM
I do not understand well the problem is with IE, simply add the "#" as indicated,
for an example Site: http://waren.zobyhost.com/index.php/topic,3.0.html
Title: Re: Go up top
Post by: playdiune on January 23, 2010, 11:03:21 AM
I have the code like this;

//Scroll Go up
   
    echo '
       <a href="#" id="toTop">',$txt['Scrollgoup'],'</a></body></html>';
}


Could you take a look here ?

http://www.new-digital.net

Maybe i miss something on manual installation.... could you see, please ?
Title: Re: Go up top
Post by: varen sea on January 23, 2010, 02:06:22 PM
Sorry for the delay, here I leave some captures image
What I see in site,
(http://img94.imageshack.us/img94/2375/gouptop01.png)

and what I see on my site is this
(http://img94.imageshack.us/img94/7404/gouptop02.png)

as you will appreciate, the difference is in the #,
if not put the #. always going to refresh the page, but with IE, with Ferefox, Chrome..
Title: Re: Go up top
Post by: playdiune on January 24, 2010, 09:45:48 AM
Well, i really have the code like this;

//Scroll Go up       echo '       <a href="#" id="toTop">',$txt['Scrollgoup'],'</a></body></html>';}

but than if i look on the page source code, it appear without "#". i dont understand ...

can it be caused by another MOD ?
Title: Re: Go up top
Post by: vicram10 on January 24, 2010, 09:59:17 AM
Quote from: playdiune on January 24, 2010, 09:45:48 AM
Well, i really have the code like this;
//Scroll Go up       echo '       <a href="#" id="toTop">',$txt['Scrollgoup'],'</a></body></html>';}
but than if i look on the page source code, it appear without "#". i dont understand ...
can it be caused by another MOD ?

You change the index.template.php of your current theme or of the default theme?
Title: Re: Go up top
Post by: playdiune on January 24, 2010, 05:14:38 PM
i am using the default theme. i realy dont understand... :(
Title: Re: Go up top
Post by: varen sea on January 24, 2010, 05:28:07 PM
I understand that if you add the #, when you save the file, it disappears for another Mod?.
because now if I do not understand.
Title: Re: Go up top
Post by: Joker™ on January 26, 2010, 05:36:05 AM
for me button appears till the page is loading .... n as page completely loads button disappears

Im using RC2 n firefox web browser
Title: Re: Go up top
Post by: Joker™ on February 02, 2010, 05:23:38 AM
Quote from: sid2varun on January 26, 2010, 05:36:05 AM
for me button appears till the page is loading .... n as page completely loads button disappears

Im using RC2 n firefox web browser

bump**
Title: Re: Go up top
Post by: playdiune on February 03, 2010, 08:52:13 PM
Quote from: varen sea on January 22, 2010, 11:52:27 PM
Quote from: playdiune on January 22, 2010, 10:03:01 PM
For me it doesnt work properly. when i click the button it redirects for the forum URL. so, it loads the page again, instead of scrll up.

what can it be ?

thanks

/Themes/default/index.template.php

Find:
<a id="toTop" href="">

Replace With:
<a id="toTop" href="#">



Changed today the code ( for test ) from

<a id="toTop" href="#">

to this one

<a id="toTop" href="#top">

and it now works like a charm ;)

hope can help some others
Title: Re: Go up top
Post by: lucas-ruroken on May 02, 2010, 11:52:52 PM
Updated to Smf 2.0 Rc3
Title: Re: Go up top
Post by: cme1st2302 on May 11, 2010, 09:08:49 PM
I was wondering if anyone can tell me how to add another button right below this one that says "home" and redirect the user to the forums home page ("www.mysite.com/forums/index.php").  Any help would be greatly appreciated.

Thanks,
Chris
Title: Re: Go up top
Post by: lucas-ruroken on May 11, 2010, 09:21:33 PM
index.template.php
search

<a href="#" id="toTop">',$txt['Scrollgoup'],'</a>


and replace with:

<a href="http://YOURSITE.com" id="toTop">',$txt['Scrollgoup'],'</a>


if you want another image, you will search in the index.css/style.css (Smf 2 or Smf 1):
#toTop {

add after:
background-image: url(http://yourimage.jpg) no-repeat;
Title: Re: Go up top
Post by: Biology Forums on August 17, 2011, 03:08:02 PM
What theme is that for 1.x screenshot?
Title: Re: Go up top
Post by: Grammy on June 29, 2016, 03:24:48 PM
I'm always tinkering around with things and ran across this little mod.  I just wanted to say that it works beautifully in 2.0.11 and throws no errors.  However, instead of the first "Find" string in index.template.php

<script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?rc2"></script>

You need to search for this, instead:

<script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?fin20"></script>

(and then follow the rest of the parsing instructions, which includes downloading the zip and moving a JS directory to Themes/default.)   Dead easy.   :)

(I know there are other versions of this type of thing, but I liked the look of this one so....   just putting this out into the universe.)   :D