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)
-   -   Mini Mods - [Mod-Mall] Add This fixed in bottom corner - Increase social interaction (https://vborg.vbsupport.ru/showthread.php?t=263478)

nitra1000 05-10-2011 10:00 PM

[Mod-Mall] Add This fixed in bottom corner - Increase social interaction
 
1 Attachment(s)
What Add This Does
Add this is a social media sharing button, that also provides useful analytics. It's looks are customizable, and there is alot of flexability by default.

Add This Website

No demo at the moment (if you install this and use it PM me your sites address to be featured here)

What This Mod Does
This mod inserts the javascript in your header template, saving you from having to edit or revert your templates every upgrade.

It also has built in conditionals to allow you (or your users) to configure who the script is active for


Currently supports
  • Disable for guests
  • Allow users to enable/disable from their options
  • Set which usergroups to show the bar to (i.e only to members who have donated)
  • Set a postcount at which the bar is available
  • More coming soon...

How to install
  1. Import the xml
  2. Register at addthis.com, and configure your sharing button (doesn't matter which you pick)
  3. It should give you some code that looks like the below to insert into your header
    Code:

    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
    <a class="addthis_button_tweet"></a>
    <a class="addthis_counter addthis_pill_style"></a>
    </div>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4dca78e00168c8f1"></script>
    <!-- AddThis Button END -->

  4. copy and paste this into the script box found in your admincp under Settings>Options>Add Wibiya Script
  5. Activate and configure the add on in the same screen

To allow users to turn add this on and off
  1. Do all the steps listed in install
  2. in your admincp go to "Add New User Profile Field"
  3. Select "Single Selection Radio Buttons" and fill in the following
    (you can change these as you see fit but these are my setup)
    • Title: Add This (or whatever you like)
    • Description: Turn the Add This at bottom of page on or off.
    • Profile Field Category: Doesn't matter
    • Options:
      • On
      • Off
    • Display Order: Doesn't Matter
    • Field Required: No
    • Field Editable by User: Yes
    • Private Field: No
    • Field Searchable on Members List: No
    • Show on Members List: No
  4. Save that, and note down the name (note this isn't the title and should be something like "field13"
  5. Go back to Settings>Options>Add addthis Script
  6. Fill in the What is the fieldid box with the name of your field
  7. Fill in the disabled text (in the example above this would "Off" without the quotes)
  8. Select Yes to allow users to enable/disable toolbar

To turn off inline styles
  1. Login to admincp
  2. Go to Style Manager > Edit Templates - of your top template
  3. Open ?CSS Templates? and edit additional.css
  4. Add at the bottom
    Code:

    #addthisleft {position:fixed; left: 5px; bottom: 0px;}
    #addthisright {position:fixed; left: 5px; bottom: 0px;}

  5. Save the Template
  6. JOBS DONE!


How to upgrade
  1. Import the xml, set overwrite to allow/yes/on
  2. Check the settings at Settings>Options>Add addthis Script


Releases
V1.0 - Initial Release

To Do List
  • Allow insert into other hooks (insert button elsewhere)
  • Additional forum checks (Forum ID)
  • Additional style checks

Notes
I will support this modification but not addthis... if you need help signing up or using the service... You can find help on the addthis.com website.

Do not remove the copyright link without getting permission... If you REALLLY want to PM me and ask for permission

Please note I have nothing to do with add this


All times are GMT. The time now is 10:24 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.00948 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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