PDA

View Full Version : Forum Display Enhancements - YBMF-Back to Top Hack ( Finger Saver )


TimberFloorAu
09 Jan 2009, 05:32
This little SIMPLE stupid ridiculous crazy WHY DIDNT I THINK OF IT BEFORE hack ... will make you so popular on your forum. It will save MILLIONS of miles of unnecessary Mouse Wheel spinning !

Requested by many members.

Just been reading a question asked about "Back to Top" for forum posts, saves the long scrolling !

So I have created some code for you, enjoy.

1. admincp > styles & Templates > style manager >

search for postbit_legacy or postbit

then in search box for this template, look for <!-- controls -->

Right after this add:

<a href="#top" onclick="scroll(0,0); return false;">
<img src="expats/images/misc/top.gif" alt="" width="70" height="22" border="0"
style="margin-right:0.4em;"/></a>



Where expats is our style ( substitute for your own )

so if your style is called DAVE then the link would be DAVE/images/misc/top.gif

Then ftp this image to your forum/style folder.

in my case this would be forum/expats/images/misc/

Image Included.

Enjoy

TimberFloorAu
09 Jan 2009, 05:34
Please if you use, MARK as INSTALLED.

I dont mind creating a few graphics or PSD's if necessary, as always full support freely given. Do not PM me, please respond in the thread, for those marked INSTALLED ;)


Added BUTTON PSD ( with common buttons )

Such as:
speak , vote, spanks, thanks, www. , forward, send pm, reply, email, find, top, edit, quote

Font: Verdanna

djbaxter
09 Jan 2009, 05:58
An even simpler method is just to press the Home button on your keyboard.

No template edits at all and it works on any version of vBulletin or any other forum software.

TimberFloorAu
09 Jan 2009, 06:02
Thanks for your imput mate .

:down:

Dax IX
09 Jan 2009, 08:27
An even simpler method is just to press the Home button on your keyboard.

No template edits at all and it works on any version of vBulletin or any other forum software.

That may be true, but I'd say that 99% of your users wouldn't know that, necessarily. (Not to mention one-handed mouse browsers ;) )

This is a great little [Template Modification] for my forums! :)

Sorry, didn't use your button, TimberFloorAu. ;)

Lizard King
09 Jan 2009, 09:15
Template Modification...

TimberFloorAu
09 Jan 2009, 11:52
Template Modification...

Please note this is in the Template Modification forum.

Ste

killerkraft
09 Jan 2009, 13:35
Greetings,

Indeed a simple but efective mod.

In order to install it however i need the button in portuguese, i.e., instead of TOP should say TOPO, could you do it for me as i am a completely stupid as graphics are concern ?

:D

KK

GrendelKhan{TSU
09 Jan 2009, 15:12
omg THANK YOU!!!!

so simple and userful. I really wish it was default as I always have to add it back. grrr.

Dax IX
09 Jan 2009, 17:03
Greetings,

Indeed a simple but efective mod.

In order to install it however i need the button in portuguese, i.e., instead of TOP should say TOPO, could you do it for me as i am a completely stupid as graphics are concern ?

:D

KK

If you use the standard buttons, here's one for you. :)

killerkraft
09 Jan 2009, 18:02
Many thank's.

Obrigado pelo botão.

KK

**** Installed

TimberFloorAu
09 Jan 2009, 20:52
Thanks for doing that Chani .

I will produce some Images this morning and post them here with PSD ;)

Dax IX
09 Jan 2009, 21:10
I don't know how many forum owners actually know about this, but anyone with Photoshop can make their own buttons in the default style using the vB image files here: http://members.vbulletin.com/membersupport.php

:)

TimberFloorAu
09 Jan 2009, 21:38
Escellent Chani :up:


I have added my custom PSD for members to use, see POST 2

TimberFloorAu
12 Jan 2009, 10:16
Mod deleted no longer supported

Dax IX
12 Jan 2009, 20:45
I'm sorry you feel the need to pull this one. :( Personally, I think this is a great little mod. :)

TimberFloorAu
12 Jan 2009, 21:00
Without going into further detail, i made a rash decision, so please accept my Apologies.

The mod is supported.

Images included :) :up:

OhSoBlonde
13 Jan 2009, 22:14
Thank you for reconsidering. We like this one!

TimberFloorAu
13 Jan 2009, 23:51
Thankyou OhSoBlonde ! :)

Dax IX
14 Jan 2009, 01:40
Thank you for reconsidering. We like this one!
I agree. :)

TimberFloorAu
14 Jan 2009, 02:20
I agree. :)


Cheers Mate, Im just about to release a new template hack, going down a storm with our members !

:up:

scottny
19 Feb 2009, 04:16
Ok I have a question. I got it installed on my system but the pic is not showing up. I do have custom styles up. I did put the names of the styles in. Is there something I am missing to get it to have the same pic as the others or does it not do that and I totally misunderstood? It does work, just a blank photo in a box.

Thank you.

TimberFloorAu
19 Feb 2009, 09:10
have u got a link 2 ur site plz

down.low
19 Mar 2009, 03:48
I have this installed right now and it works fine, I was wondering how to change this to work as a Bottom button?? I thought it would've been a change of #top to #foo but I guessed wrong?? Thanks for help and the useful Top hack.

down.low
19 Mar 2009, 03:55
Ok I have a question. I got it installed on my system but the pic is not showing up. I do have custom styles up. I did put the names of the styles in. Is there something I am missing to get it to have the same pic as the others or does it not do that and I totally misunderstood? It does work, just a blank photo in a box.

Thank you.


Try changing the code from:

<img src="STYLENAME/images/misc/top.gif"

to

<img src="images/STYLENAME/misc/top.gif"

This could be your problem, it was for me.

blackwolf062
19 Mar 2009, 12:39
thanks good work

syrus.xl
19 Mar 2009, 13:03
The correct way of coding the image path in vBulletin should be like this...
<a href="#top" onclick="scroll(0,0); return false;">
<img src="$stylevar[imgdir_misc]/top.gif" alt="" width="70" height="22" border="0" style="margin-right:0.4em;"/></a>

Stylevars should be used, not relative urls. ;)

down.low
19 Mar 2009, 22:38
I have this installed right now and it works fine, I was wondering how to change this to work as a Bottom button?? I thought it would've been a change of #top to #foo but I guessed wrong?? Thanks for help and the useful Top hack.
Could someone help me if they have a chance?

TimberFloorAu
20 Mar 2009, 01:03
Essentially , it uses the anchor text.

change #top to #bottom

add an anchor in your footer. called #bottom.

So basic code:


<a href="#Bottom">Bottom</a>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<a name="Bottom">Footer Anchor Point</a>


<a href="#Bottom">Bottom</a> is your link

<a name="Bottom">Footer Anchor Point</a> is your anchor in your footer

down.low
20 Mar 2009, 02:06
All I get out of putting:

<a href="#Bottom">Bottom</a>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<a name="Bottom">Footer Anchor Point</a>

Into my footer is a link at the bottom of the page that says "Bottom" and a statement saying "anchor",




Do I need to post this after "<!-- controls -->" for a functional "bottom" button:
<a href="#bottom" onclick="scroll(0,0); return false;">
<img src="expats/images/misc/bottom.gif" alt="" width="70" height="22" border="0"
style="margin-right:0.4em;"/></a>





And then this one for a "top" button:
<a href="#top" onclick="scroll(0,0); return false;">
<img src="expats/images/misc/top.gif" alt="" width="70" height="22" border="0"
style="margin-right:0.4em;"/></a>





After doing this all I get is a "top" that takes me up, & a "bottom" that takes me up. I'm guessing I'm messing up with the anchor for the bottom?? Thanks in advance for any help.

TimberFloorAu
21 Mar 2009, 04:30
All I get out of putting:

Into my footer is a link at the bottom of the page that says "Bottom" and a statement saying "anchor",




Do I need to post this after "<!-- controls -->" for a functional "bottom" button:





And then this one for a "top" button:






After doing this all I get is a "top" that takes me up, & a "bottom" that takes me up. I'm guessing I'm messing up with the anchor for the bottom?? Thanks in advance for any help.


Lol nope you got the wrong end of the stick.

Original Code was:

<a href="#top" onclick="scroll(0,0); return false;">
<img src="expats/images/misc/top.gif" alt="" width="70" height="22" border="0"
style="margin-right:0.4em;"/></a>

Change this to:

<a href="#bottom" onclick="scroll(0,0); return false;">
<img src="expats/images/misc/top.gif" alt="" width="70" height="22" border="0"
style="margin-right:0.4em;"/></a>

Also create a new gif called bottom.gif and change in the above code to read:

images/misc/bottom.gif


Then in your footer add:

<a name="Bottom">Footer Anchor Point</a>

Footer Anchor Point is just any old text you want , could be just a full stop .

Ste

down.low
21 Mar 2009, 10:04
Still doesn't work for me:

The "Top" button is there- and it takes me to the top.

The "Bottom" button is there- and it takes me to the top instead of the bottom.


Here's my postbit_legacy: ("<!-- controls -->" is highlighted to find easier.)

$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

<div class="smallfont">
&nbsp;<br />
$post[crowns]$post[champtext]<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<else />
<td class="alt1" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
</if>
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

$template_hook[postbit_signature_end]

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
$post[onlinestatus]
<if condition="$show['reputationlink']">
<span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
<if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
</if>
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
&nbsp;
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
<else />
<td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
</if>
<!-- controls --><a href="#top" onclick="scroll(0,0); return false;">
<img src="images/mekarsenja/misc/top.gif" alt="" width="12" height="12" border="0"
style="margin-right:0.4em;"/></a><a href="#bottom" onclick="scroll(0,0); return false;">
<img src="images/mekarsenja/misc/bottom.gif" alt="" width="12" height="12" border="0"
style="margin-right:0.4em;"/></a>
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['spam']">
<img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" />
</if>
<if condition="$show['deletedpost']">
<if condition="$show['managepost']">
<a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a>
<else />
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
</if>
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
$template_hook[postbit_controls]
<!-- / controls -->
</td>
</tr>
</table>
$template_hook[postbit_end]

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
</if>
$template_hook[postbit_user_popup]
</table>
</div>
<!-- / post $post[postid] popup menu -->|
|
|
|
|

down.low
21 Mar 2009, 10:05
Continued from above-

Here is my footer with the anchor on the very bottom:
$ad_location[ad_footer_start]

<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

$spacer_close
<!-- /content area table -->

<form action="$vboptions[forumhome].php" method="get" style="clear:$stylevar[left]">
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>
<td class="tfoot" align="$stylevar[right]" width="100%">
<div class="smallfont">
<strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow" accesskey="9">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
$template_hook[footer_links]
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<if condition="$vboptions[tosurl]"><a href="$vboptions[tosurl]">$vbphrase[terms_of_service]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>
</div>
</td>
</tr>
</table>

<br />

<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>

<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->

$vboptions[copyrighttext]
</div><div class="smallfont" align="center">
<a href="https://www.SultanTheme.com/">SultanTheme.com vBulletin Skins</a></div>
</div>

</form>

$ad_location[ad_footer_end]

<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->

</if>



</td>
</tr>
<tr>
<td class="footwrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="footL">&nbsp;</td>
<td>&nbsp;</td>
<td class="footR">&nbsp;</td>
</tr>
</table></td>
</tr>
</table>

<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
<a name="bottom">Bottom</a>As far as I know, everything is correct- the "top" works but the "bottom" doesn't. Would you mind having a look at these and if possible make the changes for me?? Thanks for putting up with me for so long.

TimberFloorAu
21 Mar 2009, 23:14
Try editing FORUMHOME for any particular style you are working on.

Go to bottom look for:

$footer
</body>
</html>

Change to

<a name="bottom">Bottom</a>
$footer
</body>
</html>


If this works, you will need to amend FORUMDISPLAY also

down.low
22 Mar 2009, 02:55
Still no luck buddy, I refuse to give up hope- but you don't have to keep helping if you don't want to. Your hack worked fine for the "Top"- I'm stuck on why this isn't working for a bottom.


Here my working "Top" and my non-working bottom:
https://www.vbulletin.org/forum/


Here's my anchor that is on almost every single page, directory, thread:
https://www.vbulletin.org/forum/



Any chance of it just being a particular style I'm using- don't see why it would be. I'd hate to have to re-mod the default style to make it current with my style. Any other suggestions maybe?

TimberFloorAu
22 Mar 2009, 06:31
Still no luck buddy, I refuse to give up hope- but you don't have to keep helping if you don't want to. Your hack worked fine for the "Top"- I'm stuck on why this isn't working for a bottom.


Here my working "Top" and my non-working bottom:
http://i472.photobucket.com/albums/rr88/ps_auction/vbex.jpg


Here's my anchor that is on almost every single page, directory, thread:
http://i472.photobucket.com/albums/rr88/ps_auction/vbex2.jpg



Any chance of it just being a particular style I'm using- don't see why it would be. I'd hate to have to re-mod the default style to make it current with my style. Any other suggestions maybe?

I see no reason why it should work. I have never used it, but then its just a Html Anchor, so should work.

Have you looked at source code of your page, to see if both parts of the code are being called?
Or pm me a link.

Ste

down.low
22 Mar 2009, 10:14
I pm'd you a link to the site.

down.low
22 Mar 2009, 22:35
That was the problem my man, works like a charm now. Thanks for all the help, did you want to be unregistered or do you care?

TimberFloorAu
22 Mar 2009, 23:28
No its cool.

Your very welcome :up:

WhiteNewsNow
23 Mar 2009, 01:30
Great work. Easy install and exactly what our forum needed. Thanks a ton! :up:

TimberFloorAu
23 Mar 2009, 02:27
Your very welcome, it really is the most "underestimated" mod available in my opinion !

WhiteNewsNow
23 Mar 2009, 04:22
Could not agree with you more. My board is new and has few members and I already got 2 pm saying they loved it. A lot easier than hitting the home button on the keyboard. Thanks again for you efforts.

kalliey
25 Mar 2009, 13:08
Could not agree with you more. My board is new and has few members and I already got 2 pm saying they loved it. A lot easier than hitting the home button on the keyboard. Thanks again for you efforts.

Yes my Members love it too. :D

TimberFloorAu
25 Mar 2009, 20:20
Please click Installed if you have it Installed, this way we can offer updates on the fly.

Ste

chick
25 Jul 2009, 01:25
Count me in as one of the 99% have no idea where the home button is unless you mean the little house which open up all my sites... so I'm lost.

This is great and will come in very handy, thanks yo

Eplexx
26 Nov 2010, 05:42
Doesn't work, thanks tho...

kenfuzed
13 Jan 2011, 18:31
Worked for me though I changed this up slightly since I wanted a text link instead of a button. The code now reads:
<a href="#top" onclick="scroll(0,0); return false;">
Back to Top</a>

adwade
14 Jan 2011, 21:29
Worked for me though I changed this up slightly since I wanted a text link instead of a button.

Thanxx Kenfused, simple, quick, & efficient! *Clicking Installed*