Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: enik on June 29, 2011, 04:54:20 PM

Title: Back To Top
Post by: enik on June 29, 2011, 04:54:20 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3072)

Back To Top 1.0 by

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FAdkmods%2Flogo.png&hash=b7e60a41a3ada5e2ace731e912eef5f3dd40e770) (http://www.smfpersonal.net/)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fuser.png&hash=997d251819d42b9aa15fd08d1b64be6544cd071a) Autores/Authors:
     enik (http://www.smfpersonal.net/profiles/enik-u417.html)
     ^HeRaCLeS^ (http://www.smfpersonal.net/profiles/enik-u259.html)
    
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fpage_white_flash.png&hash=ed86fd5e13fc727a61ef6b0bdbb304d2f610017e) 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 (http://www.smfpersonal.net/) para soporte oficial.

Si tu quieres ayudarnos,por favor visita nuestra seccion de contribuciones: Contribuir (http://www.smfpersonal.net/about.html;sa=contritube-spanish)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2Ffamfamfam%2Fpage_white_flash.png&hash=ed86fd5e13fc727a61ef6b0bdbb304d2f610017e) 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 (http://www.smfpersonal.net/) for official support.

If you want help, please visit our contributions section: Contribute (http://www.smfpersonal.net/about.html;sa=contribute)



(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b) 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

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b) Compatibilidad/Compatibility:
     SMF 2.0*

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smfpersonal.net%2FThemes%2Fdefault%2Fimages%2Fpost%2Ftopicsolved.gif&hash=0a84317c3660ec2368b578377e809aed837f467b) Desarrollador/Developer:

     Adk-Team (http://www.smfpersonal.net/)

Title: Re: Adk Back To Top
Post by: enik on June 29, 2011, 10:23:14 PM
Ohh very good work  ;)
Title: Re: Adk Back To Top
Post by: Apllicmz on July 01, 2011, 12:08:41 PM
Yes good work
Nice Mod
When Update dont forget portuguese file

Title: Re: Adk Back To Top
Post by: enik on July 01, 2011, 07:23:10 PM
Thanks Candidosa added to the package  ;)

Bye enik...
Title: Re: Adk Back To Top
Post by: Adk-Team on July 01, 2011, 07:53:23 PM
Thanks  ;)
Title: Re: Adk Back To Top
Post by: 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 ?
Title: Re: Adk Back To Top
Post by: enik on July 12, 2011, 11:20:00 AM
Because Safari does not support some versions of java.

Bye enik...
Title: Re: Adk Back To Top
Post by: Adk-Team on September 22, 2011, 11:02:20 AM
Updated to SMF 2.0.1  ;)

Regards enik...
Title: Re: Adk Back To Top
Post by: GlitchPC on November 01, 2011, 01:21:38 PM
Only works for Curve theme...not other themes.
Title: Re: Adk Back To Top
Post by: Adk-Team on November 01, 2011, 02:19:34 PM
In other themes you have to make changes through the parse
Title: Re: Adk Back To Top
Post by: GlitchPC on November 01, 2011, 05:22:51 PM
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.
Title: Re: Adk Back To Top
Post by: 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>';
Title: Re: Adk Back To Top
Post by: smartblogz on November 02, 2011, 05:28:01 AM
Will give it a try!
Thanks.
Title: Re: Adk Back To Top
Post by: GlitchPC on November 02, 2011, 01:48:33 PM
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.
Title: Re: Adk Back To Top
Post by: Adk-Team on November 03, 2011, 09:57:26 AM
But you have to make other amendments to mod.
I only told you how to modify the error
Title: Re: Adk Back To Top
Post by: GlitchPC on November 03, 2011, 12:01:44 PM
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...
Title: Re: Adk Back To Top
Post by: GlitchPC on November 23, 2011, 07:00:29 AM
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:

Thanks, in advance...
Title: Re: Adk Back To Top
Post by: GlitchPC on November 23, 2011, 11:57:35 AM
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.
Title: Re: Adk Back To Top
Post by: Adk-Team on January 20, 2012, 01:43:00 PM
Updated to 2.0.2
Title: Re: Adk Back To Top
Post by: simon36 on April 13, 2012, 06:24:32 AM
Would it be possible to have this as a text link instead of a graphic i.e. Back to top
Title: Re: Adk Back To Top
Post by: Adk-Team on April 16, 2012, 09:42:36 PM
Replace the image with the text you want
Title: Re: Adk Back To Top
Post by: Nityananda Maity on July 07, 2012, 10:55:47 AM
Hi,
Pls tell me that how to add this mod with Clear Sky
link http://custom.simplemachines.org/themes/index.php?lemma=2320 (http://custom.simplemachines.org/themes/index.php?lemma=2320)
Thanks
Title: Re: Adk Back To Top
Post by: enik on July 07, 2012, 06:09:46 PM
What is your problem ?

Ragards enik...
Title: Re: Adk Back To Top
Post by: Nityananda Maity on July 08, 2012, 01:33:15 AM
After installing using Package Manager to both theme, it showing on default theme but not showing in Clear Sky theme.
any suggestions?
Thanks
Title: Re: Adk Back To Top
Post by: enik on July 09, 2012, 10:31:08 AM
Attachme index.template of the theme clear sky.

Regards enik...
Title: Re: Adk Back To Top
Post by: Nityananda Maity on July 10, 2012, 08:38:59 AM
Quote from: enik on July 09, 2012, 10:31:08 AM
Attachme index.template of the theme clear sky.

Regards enik...

attachment of index.template.php below
thanks enik.

---- edit -----
attachment removed by me..
Title: Re: Adk Back To Top
Post by: enik on July 10, 2012, 10:14:37 AM
Move the file "scrollToTop.js" to "./Themes/clearsky/scripts".

You find the file in "./Themes/default/scripts".

Test please.

Regards enik...
Title: Re: Adk Back To Top
Post by: Nityananda Maity on July 10, 2012, 11:40:49 AM
Quote from: enik on July 10, 2012, 10:18:41 AM
Move the file "scrollToTop.js" to "./Themes/clearsky/scripts".

You find the file in "./Themes/default/scripts".

And test this index.template please.

Regards enik...
Finally thanks enik, it works fine.
Basically I am not a coder so... i not found main problem.
Thanks again...
Title: Re: Adk Back To Top
Post by: enik on July 10, 2012, 07:27:20 PM
No problem.

Regards enik...
Title: Re: Adk Back To Top
Post by: Adk-Team on February 08, 2013, 09:48:47 AM
SMF 2.0.4 updated  ;)

Regards enik...
Title: Re: Adk Back To Top
Post by: NekoJonez on April 22, 2013, 08:10:51 AM
It doesn't work on two of my themes.
Title: Re: Adk Back To Top
Post by: Adk-Team on May 09, 2013, 04:22:27 AM
I select the themes to install the mod? May be missing making changes in these themes