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:
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!
:)
excellent work,congrats,very usefull mod
Very nice touch, well done
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
smart work.
Hope it works on all theme.
Let me try it.
Simple but clever mod, txs! :)
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!!
German Lang
//Go up to
$txt['Scrollgoup'] = '^ Nach Oben';
//Go up to End
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
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="#">
/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
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
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 ?
Sorry for the delay, here I leave some captures image
What I see in site,
and what I see on my site is this
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..
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 ?
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?
i am using the default theme. i realy dont understand... :(
I understand that if you add the #, when you save the file, it disappears for another Mod?.
because now if I do not understand.
for me button appears till the page is loading .... n as page completely loads button disappears
Im using RC2 n firefox web browser
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**
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
Updated to Smf 2.0 Rc3
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
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;
What theme is that for 1.x screenshot?
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