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)

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


All times are GMT. The time now is 06:17 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.01101 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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