Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
FTH
BBCoder III
Posts: 124 Joined: 25 Nov 2011, 23:28
BBCodes: 10
Contact:
Post
by FTH » 03 Dec 2011, 23:36
Author : FTH
Description : Add a JQuery effect on "back to top"
Open file styles/prosilver/template/overall_header.html
Find :
Code: Select all
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
Add after :
Code: Select all
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
Find :
Add before :
Code: Select all
<script type="text/javascript">
$(document).ready(function() {
$('a[href=#wrap]').click(function(){
$('html, body').animate({scrollTop: '0px'}, 800);
return false;
});
});
</script>
If you want add a link on index ...
Open file styles/prosilver/template/overall_footer.html
Find :
Code: Select all
<li class="rightside"><!-- IF U_TEAM --><a href="{U_TEAM}">{L_THE_TEAM}</a> • <!-- ENDIF --><!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a> • <!-- ENDIF -->{S_TIMEZONE}</li>
Replace with :
Code: Select all
<li class="rightside"><a href="#wrap" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a> • <!-- IF U_TEAM --><a href="{U_TEAM}">{L_THE_TEAM}</a> • <!-- ENDIF --><!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a> • <!-- ENDIF -->{S_TIMEZONE}</li>
Last edited by
FTH on 04 Dec 2011, 00:17, edited 2 times in total.
martin123456
BBCoder VI
Posts: 765 Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:
Post
by martin123456 » 04 Dec 2011, 00:30
Also works with out the jquery part
Code: Select all
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
Nice snippet ty
slash
BBCoder II
Posts: 57 Joined: 27 Oct 2011, 18:53
BBCodes: 31
Contact:
Post
by slash » 05 Dec 2011, 14:54
very cool effect! thank you so much!
RMcGirr83
BBCoder III
Posts: 104 Joined: 08 Mar 2010, 13:17
Favourite MOD: mChat
Contact:
Post
by RMcGirr83 » 05 Dec 2011, 23:20
Bl4d3 x wrote: Also works with out the jquery part
Code: Select all
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
Not possible as the code in use is jQuery code. It won't work without jQuery being loaded so you must already have some jQuery code within your overall_header.html file...and while I'm at it
Code: Select all
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
To the OP, you should always try and use the latest jQuery code...eg
Code: Select all
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
martin123456
BBCoder VI
Posts: 765 Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:
Post
by martin123456 » 05 Dec 2011, 23:38
Not possible as the code in use is jQuery code. It won't work without jQuery being loaded so you must already have some jQuery code within your overall_header.html file...and while I'm at it
only jquery i use is this
Code: Select all
<script src="{ROOT_PATH}script/jquery-1.7.min.js" type="text/javascript"></script>
We all have mchat or some other mod installed that use's some kind of query so we all have jquery loaded i just pointed out that the jquery posted in the OP post really is not needed.
But i see where your coming from rich.
Citromon
BBCoder II
Posts: 6 Joined: 10 Mar 2012, 15:07
BBCodes: 10
Post
by Citromon » 21 Jun 2012, 19:07
Good afternoon.
Help me please install this snippet.
I did everything according to the instructions - does not work.
Replaced the line as he wrote Sam - does not work.
That's my overall_header.html :
rghost. ru/38797994
matthewtimothy
BBCoder II
Posts: 31 Joined: 27 Jun 2012, 17:48
BBCodes: 1
Post
by matthewtimothy » 22 Jul 2012, 06:27
Is this the mod for the little arrow on the vorto left. I've looked for that mod for several hours.
Blackwolf
BBCoder IV
Posts: 272 Joined: 04 Dec 2010, 12:36
BBCodes: 101
Favourite BBCode: Dropcap
Favourite MOD: mchat
Location: Melbourne Australia
Post
by Blackwolf » 22 Jul 2012, 10:47
Citromon wrote: Good afternoon.
Help me please install this snippet.
I did everything according to the instructions - does not work.
Replaced the line as he wrote Sam - does not work.
That's my overall_header.html :
rghost. ru/38797994
Need to post your overall_header between the
Code: Select all
tags ;)
[attachment=0]Oz.png[/attachment]
Attachments
Works fine on Oz forum.