Advertisement:

Author Topic: Adk Back To Top  (Read 5333 times)

Offline Adk-Team

  • Jr. Member
  • **
  • Posts: 398
    • SMF Personal
Adk Back To Top
« on: June 29, 2011, 04:54:20 PM »
Link to Mod

Adk Back To Top 1.0 by


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

     Esta versión es solamente para SMF 2.0.x !!!

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 version is only for SMF 2.0.x !!!

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

Compatibilidad/Compatibility:

     SMF 2.0.x

Desarrollador/Developer:

     Adk-Team

« Last Edit: February 08, 2013, 09:47:50 AM by Adk-Team »
SMF Personal
Follow us on Facebook


I don't know if we're the best.... but We'll try it ;) (Lead Dev)

Offline enik

  • SMF Hero
  • ******
  • Posts: 1,424
  • Gender: Male
  • Adkimode Developer
    • Smf Personal.
Re: Adk Back To Top
« Reply #1 on: June 29, 2011, 10:23:14 PM »
Ohh very good work  ;)
SMF Personal Project Manager



Official Mods 51

Offline Joomlamz

  • SMF Hero
  • ******
  • Posts: 2,479
  • Gender: Male
  • Suporte Joomla.co.mz
    • http://www.facebook.com/aplicnet.hosting on Facebook
    • @aplichosting on Twitter
    • Webdesign
Re: Adk Back To Top
« Reply #2 on: July 01, 2011, 12:08:41 PM »
Yes good work
Nice Mod
When Update dont forget portuguese file


Offline enik

  • SMF Hero
  • ******
  • Posts: 1,424
  • Gender: Male
  • Adkimode Developer
    • Smf Personal.
Re: Adk Back To Top
« Reply #3 on: July 01, 2011, 07:23:10 PM »
Thanks Candidosa added to the package  ;)

Bye enik...
SMF Personal Project Manager



Official Mods 51

Offline Adk-Team

  • Jr. Member
  • **
  • Posts: 398
    • SMF Personal
Re: Adk Back To Top
« Reply #4 on: July 01, 2011, 07:53:23 PM »
Thanks  ;)
SMF Personal
Follow us on Facebook


I don't know if we're the best.... but We'll try it ;) (Lead Dev)

Offline PS4DEV

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
Re: Adk Back To Top
« Reply #5 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 ?

Offline enik

  • SMF Hero
  • ******
  • Posts: 1,424
  • Gender: Male
  • Adkimode Developer
    • Smf Personal.
Re: Adk Back To Top
« Reply #6 on: July 12, 2011, 11:20:00 AM »
Because Safari does not support some versions of java.

Bye enik...
SMF Personal Project Manager



Official Mods 51

Offline Adk-Team

  • Jr. Member
  • **
  • Posts: 398
    • SMF Personal
Re: Adk Back To Top
« Reply #7 on: September 22, 2011, 11:02:20 AM »
Updated to SMF 2.0.1  ;)

Regards enik...
SMF Personal
Follow us on Facebook


I don't know if we're the best.... but We'll try it ;) (Lead Dev)

Offline GlitchPC

  • Full Member
  • ***
  • Posts: 422
  • Gender: Male
  • Gotta glitch?
    • Glitch PC - Free Computer Help
Re: Adk Back To Top
« Reply #8 on: November 01, 2011, 01:21:38 PM »
Only works for Curve theme...not other themes.

Offline Adk-Team

  • Jr. Member
  • **
  • Posts: 398
    • SMF Personal
Re: Adk Back To Top
« Reply #9 on: November 01, 2011, 02:19:34 PM »
In other themes you have to make changes through the parse
SMF Personal
Follow us on Facebook


I don't know if we're the best.... but We'll try it ;) (Lead Dev)

Offline GlitchPC

  • Full Member
  • ***
  • Posts: 422
  • Gender: Male
  • Gotta glitch?
    • Glitch PC - Free Computer Help
Re: Adk Back To Top
« Reply #10 on: November 01, 2011, 05:22:51 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
Code: [Select]
echo '
</body></html>';

The index.template.php file for my theme does not have that, exactly.  My theme shows the following code:
Code: [Select]
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.

Offline Adk-Team

  • Jr. Member
  • **
  • Posts: 398
    • SMF Personal
Re: Adk Back To Top
« Reply #11 on: November 02, 2011, 05:11:24 AM »
Replace:
Code: [Select]
echo '
</div>
</body></html>';

Per:
Code: [Select]
echo '</div>';
if(!empty($modSettings['enable_adk_back_to_top']))
{
adk_backtotop();
}
echo '
</body></html>';
SMF Personal
Follow us on Facebook


I don't know if we're the best.... but We'll try it ;) (Lead Dev)

Offline smartblogz

  • Jr. Member
  • **
  • Posts: 134
    • African Community in Russia
Re: Adk Back To Top
« Reply #12 on: November 02, 2011, 05:28:01 AM »
Will give it a try!
Thanks.

Offline GlitchPC

  • Full Member
  • ***
  • Posts: 422
  • Gender: Male
  • Gotta glitch?
    • Glitch PC - Free Computer Help
Re: Adk Back To Top
« Reply #13 on: November 02, 2011, 01:48:33 PM »
Replace:
Code: [Select]
echo '
</div>
</body></html>';

Per:
Code: [Select]
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:

Code: [Select]
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.

Offline Adk-Team

  • Jr. Member
  • **
  • Posts: 398
    • SMF Personal
Re: Adk Back To Top
« Reply #14 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
SMF Personal
Follow us on Facebook


I don't know if we're the best.... but We'll try it ;) (Lead Dev)

Offline GlitchPC

  • Full Member
  • ***
  • Posts: 422
  • Gender: Male
  • Gotta glitch?
    • Glitch PC - Free Computer Help
Re: Adk Back To Top
« Reply #15 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...

Offline GlitchPC

  • Full Member
  • ***
  • Posts: 422
  • Gender: Male
  • Gotta glitch?
    • Glitch PC - Free Computer Help
Re: Adk Back To Top
« Reply #16 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:
  • Upper-left
  • Upper-right
  • Lower-left
  • Lower-right
  • Middle-left
  • Middle-right

Thanks, in advance...

Offline GlitchPC

  • Full Member
  • ***
  • Posts: 422
  • Gender: Male
  • Gotta glitch?
    • Glitch PC - Free Computer Help
Re: Adk Back To Top
« Reply #17 on: November 23, 2011, 11:57:35 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.

Offline Adk-Team

  • Jr. Member
  • **
  • Posts: 398
    • SMF Personal
Re: Adk Back To Top
« Reply #18 on: January 20, 2012, 01:43:00 PM »
Updated to 2.0.2
SMF Personal
Follow us on Facebook


I don't know if we're the best.... but We'll try it ;) (Lead Dev)

Offline simon36

  • Jr. Member
  • **
  • Posts: 111
Re: Adk Back To Top
« Reply #19 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