vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   End-User Options - floating box Social button for your forum (https://vborg.vbsupport.ru/showthread.php?t=271122)

ngocol 09-28-2011 10:00 PM

floating box Social button for your forum
 
1 Attachment(s)
1. make your forum center so we have space on the left/ right side for the floating box


Code:

open stylevar

find doc_margin

setting

Unit = px
 
Use the 'top' value for all sides : No

right and left : 125


or you can read this link to make your forum center

https://vborg.vbsupport.ru/showthread.php?t=231114


2 Open Headiclude and Add this before </head>



Code:

<!-- Floating start -->
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2'></script>
    <script type="text/javascript">
        $(function() {
            var offset = $("#box").offset();
            var topPadding = 15;
            $(window).scroll(function() {
                if ($(window).scrollTop() > offset.top) {
                    $("#box").stop().animate({
                        marginTop: $(window).scrollTop() - offset.top + topPadding
                    });
                } else {
                    $("#box").stop().animate({
                        marginTop: 0
                    });
                };
            });
        });
    </script>
<!-- Floating end -->



3 add Floating sosial button

Code:

<div id="box">
      <div><script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script> </div>
      <div><script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div>
      <div><script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script></div>
      <div class="fb-like" data-href="{vb:raw $vboptions.vbforum_url}" data-send="false" data-layout="box_count" data-show-faces="false"></div>


      <div><div class="g-plusone" data-size="tall" data-count="true"></div>

                            <!-- Place this render call where appropriate -->
                              <script type="text/javascript">
                                  (function() {var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                                po.src = 'https://apis.google.com/js/plusone.js';
                                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();</script></div>

</div>


4. add CSS

Code:

Open additional css and add


#box{position: absolute;left: 55px; top: 117px;border: 1px dotted; border-right: 10px;padding: 10px; background-color: #FFF;}
#box div{margin: 10px 0;}

demo here Ngocol publik komplain forum

sorry but please dont ask me cause i dont know about coding thank :)

ngocol 09-30-2011 01:15 PM

sory small change on the facebook button

Use this
Code:

<div class="fb-like" data-href="{vb:raw $vboptions.vbforum_url}" data-send="false" data-layout="box_count" data-show-faces="false"></div>
thanks

LifesGreatestGift 10-01-2011 04:53 PM

screenshot would be nice.

ngocol 10-01-2011 09:23 PM

1 Attachment(s)
here the screen shot

on forum home
Attachment 133369

on forum display
Attachment 133370

on forum threat
Attachment 133371

Antonio Pereira 07-02-2012 01:31 PM

Any mod do this? I like so much this float social.


All times are GMT. The time now is 10:42 AM.

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.01329 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete