vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - To-the-top button in postbit footer. (https://vborg.vbsupport.ru/showthread.php?t=235530)

Popa Andrei 09-13-2010 05:09 PM

can someone make this to work with 4.0.6?

xinnek 10-08-2010 06:57 PM

I'd really like to use this, PLEASE UPDATE! This should be standard with Vbulletin.

kingmotox 10-16-2010 07:39 AM

any chance to get this to work on 4.0.7?

markwein 10-16-2010 02:16 PM

Quote:

Originally Posted by kingmotox (Post 2110651)
any chance to get this to work on 4.0.7?

Actually it still works on my forum...I'll see if I can copy the code today..

markwein 10-16-2010 02:25 PM

Quote:

Originally Posted by kingmotox (Post 2110651)
any chance to get this to work on 4.0.7?

Quote:

Originally Posted by markwein (Post 2110718)
Actually it still works on my forum...I'll see if I can copy the code today..


ook...from post_bit (i use legacy)

Code:

<!-- ////////start To-The-Top button in postbit////// -->
<span class="seperator">&nbsp;</span><a class='tothetop' href="{vb:raw relpath}#top" onclick="window.scrollTo(0,0); return false;"><img src="{vb:raw vboptions.cleargifurl}" alt="...to the top" />{vb:rawphrase top}</a>
<!-- ////////end To-The-Top button in postbit////// -->

and the postbit.css:

Code:

.postbitlegacy .postfoot .textcontrols a.tothetop, .postbit .postfoot .textcontrols a.tothetop  {
    background: url({vb:stylevar imgdir_button}/tothetop_40b.png) no-repeat transparent {vb:stylevar left};
    padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.tothetop:hover, .postbit .postfoot .textcontrols a.tothetop:hover  {
    background: url({vb:stylevar imgdir_button}/tothetop_40b-hover.png) no-repeat transparent {vb:stylevar left};
    padding-{vb:stylevar left}: 20px;
}


You can see it work on my forum: http://markweinguitarlessons.com/forums/forum.php

white demon 12-07-2010 11:31 AM

...4.1.0...dont work... :(

Fastbird 12-09-2010 10:39 PM

+1 would love to see this working iin 4.1

Sforums 12-22-2010 05:18 PM

1 Attachment(s)
I assumed it does and ruined my site. Look what happened at the footer, can anyone help me fix this? I tried to revert templates to old settings but something happened and looks like sh1t now....

whitedd 03-16-2011 09:28 PM

...hi..i find solution...
...if you need this button more then multiquote button,dont put this codes under...overwrite them...its work on 4.1.2. ... ;)

RedHacker 04-27-2011 08:31 AM

I cant show anything in 4.1.3 Version....

whitedd 04-27-2011 09:58 AM

..in Styles & Templates>Stlye Manager>your skin>edit templates>postbit templates>postbit search for "multiquote" ...then replace
Quote:

<vb:if condition="$show['multiquote_post']">
<a class='multiquote' href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;"

id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:stylevar imgdir_button}/trans_40b.png"

alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a>
</vb:if>
with this
Quote:

<!-- ////////start To-The-Top button in postbit////// -->
<span class="seperator">&nbsp;</span><a class='tothetop' href="{vb:raw relpath}#top" onclick="self.scrollTo(0, 0); return false;"><img src="{vb:raw vboptions.cleargifurl}" alt="...to the top" />{vb:rawphrase top}</a>
<!-- ////////end To-The-Top button in postbit////// -->
...works fine with 4.1.3 ;)

RedHacker 04-27-2011 01:04 PM

Must be Replace...? No put under this

<vb:if condition="$show['multiquote_post']">
<a class='multiquote' href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;"

id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:stylevar imgdir_button}/trans_40b.png"

alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a>
</vb:if>

whitedd 04-28-2011 02:24 PM

must be replace...if you put under dont work...

KEKforce 04-29-2011 03:59 PM

It works but I lose another function (multiquote)...

Don't want that....

steeler7 06-15-2011 08:54 PM

got this working with vB4.1.4

Here's what I did. to be honest I didn't even try this hack first since everyone was saying it didn't work. I came here to get code since I recently updated and forgot to store it in a text document. Anyways, all I did was just matched a little code with some of the existing buttons like "multiquote" and "reply" etc..

In postbit.css

Find :

Code:

.postbitlegacy .postfoot .textcontrols a.multiquote, .postbit .postfoot .textcontrols a.multiquote  {
        background: url({vb:stylevar imgdir_button}/multiquote-back_40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
        padding: {vb:stylevar postbit_control_padding};
        padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
        padding-bottom:1px;
        border: {vb:stylevar postbit_control_border};
}
.postbitlegacy .postfoot .textcontrols a.multiquote:hover, .postbit .postfoot .textcontrols a.multiquote:hover  {
        background: url({vb:stylevar imgdir_button}/multiquote_40b-hover.png) no-repeat {vb:stylevar postbit_control_hover_background} {vb:stylevar left};       
}

Add After :

Code:

.postbitlegacy .postfoot .textcontrols a.tothetop, .postbit .postfoot .textcontrols a.tothetop  {
        background: url({vb:stylevar imgdir_button}/tothetop_40b.png) no-repeat {vb:stylevar postbit_control_background} {vb:stylevar left};
        padding: {vb:stylevar postbit_control_padding};
        padding-{vb:stylevar left}: {vb:math {vb:stylevar postbit_control_padding}+20};
        padding-bottom:1px;
        border: {vb:stylevar postbit_control_border};
}

.postbitlegacy .postfoot .textcontrols a.tothetop:hover, .postbit .postfoot .textcontrols a.tothetop:hover  {
        background: url({vb:stylevar imgdir_button}/tothetop_40b-hover.png) no-repeat transparent {vb:stylevar left};
}

In postbit_legacy

Find:

Code:

<vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>
                                        </vb:if>
                                        <vb:if condition="$show['multiquote_post']">
                                               
                                                <a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a>
                                        </vb:if>

Alter and Add:

Code:

<vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>
                                        </vb:if>
                                        <vb:if condition="$show['multiquote_post']">
                                               
                                                <a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a>
                                        <span class="seperator">&nbsp;</span></vb:if>

Add After :

Code:

<a class='tothetop' href="{vb:raw relpath}#top" onclick="self.scrollTo(0, 0); return false;"><img src="{vb:raw vboptions.cleargifurl}" alt="...to the top" />{vb:rawphrase top}</a>

spillage 11-26-2011 07:00 PM

I just used steeler7's code (above) on 4.1.8.
It didn't show for me until edits to both postbit_legacy and postbit where complete.

The button shows and works fine, but the hover image does not show, only a blank space.
There isn't any text message on hover either.
Any thoughts?

This mod is marked as supported, but trilOByte hasn't posted here for close to a year, despite him having been onsite as recent as Oct... have we been abandoned?

spillage 11-26-2011 08:13 PM

Hover image not showing issue solved;
I had edited the image to add some colour to it... when I saved it, the file extension was changed to uppercase (.PNG)... on changing it back to lowercase (.png) it worked.

Still no hover text... shouldn't it show "...to the top"?

BANDiT600 03-29-2012 08:00 AM

It's nice looking modification, but who can made changes to work it on 4.1.11?

TrIp0d 03-29-2012 04:26 PM

works fine on 4.1.11 PL 1

zascok 07-29-2012 12:46 PM

nice one , thank you. Works 4.2 pl2. If only it could have a little smooth animation instead of jumping ..... :o

datoneer 07-29-2012 11:49 PM

Awesome, installed and rated

tommyxv 11-17-2014 12:22 AM

...,,,

ozzy47 11-17-2014 11:27 PM

Tommy, did you get the issue sorted with the button you were trying to add?

harismoghal 12-06-2014 11:30 PM

I am not sure but I did every thing rite and I can't see the top button
using VB 4.2.2

ozzy47 12-06-2014 11:40 PM

Quote:

Originally Posted by harismoghal (Post 2526052)
I am not sure but I did every thing rite and I can't see the top button
using VB 4.2.2

Try this mod, https://vborg.vbsupport.ru/showthread.php?t=314174

harismoghal 12-07-2014 12:09 AM

Quote:

Originally Posted by ozzy47 (Post 2526057)

All right Thanks

RedHacker 05-24-2016 09:48 AM

Install in vBulletin 4.1.7 and work fine with instroductions in here : https://vborg.vbsupport.ru/showpost....7&postcount=55

But not show the vertical line before the image of top. Anyone to know how to add this line ?


All times are GMT. The time now is 08:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01391 seconds
  • Memory Usage 1,807KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete