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.
http://www.addthis.com/
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- Import the xml
- Register at http://www.addthis.com/, and configure your sharing button (doesn't matter which you pick)
- 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 -->
- copy and paste this into the script box found in your admincp under Settings>Options>Add Wibiya Script
- Activate and configure the add on in the same screen
To allow users to turn add this on and off- Do all the steps listed in install
- in your admincp go to "Add New User Profile Field"
- 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:
- 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
- Save that, and note down the name (note this isn't the title and should be something like "field13"
- Go back to Settings>Options>Add addthis Script
- Fill in the What is the fieldid box with the name of your field
- Fill in the disabled text (in the example above this would "Off" without the quotes)
- Select Yes to allow users to enable/disable toolbar
To turn off inline styles- Login to admincp
- Go to Style Manager > Edit Templates - of your top template
- Open CSS Templates and edit additional.css
- Add at the bottom
Code:
#addthisleft {position:fixed; left: 5px; bottom: 0px;}
#addthisright {position:fixed; left: 5px; bottom: 0px;}
- Save the Template
- JOBS DONE!
How to upgrade- Import the xml, set overwrite to allow/yes/on
- 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 http://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