News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Back To Top

Started by enik, June 29, 2011, 04:54:20 PM

Previous topic - Next topic

enik

Link to the mod

Back To Top 1.0 by


Autores/Authors:
     enik
     ^HeRaCLeS^
    
Características:

Este mod insertara un boton para ir hacia el top de tu sitio !!

Las opciones de este mod se encuentran en:
Admin -> Modificaciones

Copyright 2011 by SMF Personal @ visita www.smfpersonal.net para soporte oficial.

Si tu quieres ayudarnos,por favor visita nuestra seccion de contribuciones: Contribuir


Features:

This mod will insert a button to go to the top of your site !!

The options of this mod are in:
Admin -> Modification Settings

Copyright 2011 by SMF Personal @ visit www.smfpersonal.net for official support.

If you want help, please visit our contributions section: Contribute



Idiomas/Languages:

o English
o English-utf8
o Spanish_es
o Spanish_es-utf8
o Spanish_latin
o Spanish_latin-utf8
o portuguese_pt
o portuguese_pt-utf8

Compatibilidad/Compatibility:
     SMF 2.0*

Desarrollador/Developer:

     Adk-Team


enik


Apllicmz

Yes good work
Nice Mod
When Update dont forget portuguese file




enik

Thanks Candidosa added to the package  ;)

Bye enik...

Adk-Team


PS4DEV

I installed this mod manually...

It works on Mozilla Firefox and IE

but it doesn´t work for Safari ?? Why ?

enik

Because Safari does not support some versions of java.

Bye enik...

Adk-Team

Updated to SMF 2.0.1  ;)

Regards enik...

GlitchPC

Only works for Curve theme...not other themes.

Adk-Team

In other themes you have to make changes through the parse

GlitchPC

Quote from: Adk-Team on November 01, 2011, 02:19:34 PM
In other themes you have to make changes through the parse

Understood...however, I get this during install using SMF's Package Manager:

To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.

It lists the following changes it will make to the additional theme(s):

Execute Modification    ./Themes/Anecdota_20g/index.template.php    Test failed
      1.    Replace    ./Themes/Anecdota_20g/index.template.php    Test successful
      2.    Add Before    ./Themes/Anecdota_20g/index.template.php    Test successful
      3.    Replace    ./Themes/Anecdota_20g/index.template.php    Test failed
Execute Modification    ./Themes/Anecdota_20g/css/index.css    Test successful
      1.    Add Before    ./Themes/Anecdota_20g/css/index.css    Test successful
      Extract File    ./Themes/Anecdota_20g/images/Adk-top.png

Where the test fails is searching and replacing the following:

Code:  Find
echo '
</body></html>';


The index.template.php file for my theme does not have that, exactly.  My theme shows the following code:
echo '
</div>
</body></html>';


That division container may be what's screwing it up.  Unfortunately, I'm not a coder and do not know what change to make in order to make it work.  It's probably something simple but, could use a hand please...Thanks.

Adk-Team

Replace:

echo '
</div>
</body></html>';


Per:

echo '</div>';
if(!empty($modSettings['enable_adk_back_to_top']))
{
adk_backtotop();
}
echo '
</body></html>';

smartblogz

Will give it a try!
Thanks.

GlitchPC

Quote from: Adk-Team on November 02, 2011, 05:11:24 AM
Replace:

echo '
</div>
</body></html>';


Per:

echo '</div>';
if(!empty($modSettings['enable_adk_back_to_top']))
{
adk_backtotop();
}
echo '
</body></html>';


Gave the code you gave a try and got this error:

Fatal error: Call to undefined function adk_backtotop() in /xxx/www/xxxxx/xxxxxxxx/glitchpc/Sources/Load.php(2177) : eval()'d code on line 311

Not sure if that code was appearing before, or not.  it appeared at the bottom of the theme I currently use as default.

Adk-Team

But you have to make other amendments to mod.
I only told you how to modify the error

GlitchPC

No worries...

I thought I updated this but, apparently didn't.  The fatal error I got was because I did not choose to install the mod on the theme I wanted it on...operator error...my bad.  However...in order to get the mod to work on the additional theme...you have to make sure you upload the JavaScript file to the scripts directory of each theme...

GlitchPC

Feature request...

Would it be possible to add an option for placement of the arrow?  As it stands...it only appears at the bottom-right.  Some suggested options:

  • Upper-left
  • Upper-right
  • Lower-left
  • Lower-right
  • Middle-left
  • Middle-right

Thanks, in advance...

GlitchPC

Quote from: PS4DEV on July 12, 2011, 07:30:10 AM
I installed this mod manually...

It works on Mozilla Firefox and IE

but it doesn´t work for Safari ?? Why ?


Works on Safari 5.1.1.  Tested...and works fine.

Adk-Team


simon36

Would it be possible to have this as a text link instead of a graphic i.e. Back to top

Advertisement: