News:

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

Main Menu

Go up top

Started by varen sea, September 22, 2009, 05:21:23 PM

Previous topic - Next topic

varen sea

Link to Mod

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:

gbsothere

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!

:)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

franklinrony

excellent work,congrats,very usefull mod
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----

Rafferty

Very nice touch, well done

Don't Follow me I got No Idea what I'm Doing

islam2hamy

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

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





Sudhakar Arjunan

smart work.

Hope it works on all theme.

Let me try it.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum


TC Carl


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!!



Eclipse16V

German Lang

//Go up to
$txt['Scrollgoup'] = '^ Nach Oben';
//Go up to End
I worked with:
SMF 2 in German

Shop:
SID Giessen

playdiune

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
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

varen sea

#10
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="#">

playdiune

/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
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

varen sea

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

playdiune

#13
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 ?
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

varen sea

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..

playdiune

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 ?
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

vicram10

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?

playdiune

i am using the default theme. i realy dont understand... :(
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

varen sea

I understand that if you add the #, when you save the file, it disappears for another Mod?.
because now if I do not understand.

Joker™

for me button appears till the page is loading .... n as page completely loads button disappears

Im using RC2 n firefox web browser
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

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**
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

playdiune

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
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

lucas-ruroken

Updated to Smf 2.0 Rc3
Adk Portal 3.1 is coming....

Design your universe!

cme1st2302

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
SMF Version: 1.1.11
SimplePortal Version: 2.3.2

Admin

He who waits for perfect conditions sees nothing!!
If you need help adding a button or tab PM me!!

lucas-ruroken

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;
Adk Portal 3.1 is coming....

Design your universe!

Biology Forums

What theme is that for 1.x screenshot?

Grammy

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



Advertisement: