Author Topic: SHARE (using from addthis.com) Facebook and Email integration  (Read 1137 times)

rbaybayan

  • Full Member
  • ***
  • Posts: 54
SHARE (using from addthis.com) Facebook and Email integration
« on: January 25, 2010, 07:09:59 PM »
Hi,
I have one more final touch on my  book is to add a community share button from "addthis.com".
How can I incorporate this function to have it work with their API.

The navigation button as "SHARE" will have a dropdown list (from my button) of community sharing icon (i.e. facebook) generated by the "addthis.com API".

I appreciate your help.

Regards,

Ruel

rbaybayan

  • Full Member
  • ***
  • Posts: 54
Re: SHARE (using from addthis,.com: SOLVED
« Reply #1 on: January 27, 2010, 09:57:56 AM »
Hi,

I had attached a code for adding automatically your book website into a community (i.e. facebook, diggs) and email application using "addthis.api".

The API is residing at "addthis.com" so there is no need to place API into your folder.
Files affected:
1) Add two button:
    SHARE BUTTON
    MAIL BUTTON

2) Update "STYLE" from "navigationalbar.asul"
Code: (xml)
  1. <asul><style><![CDATA[
  2.    button.share box { background: image(gui/customimage/functionbutton/btnrecshare3.png); }
  3.    button.email box { background: image(gui/customimage/functionbutton/btnrecemail3.png); }

3) Update "<hflow" from "navigationalbar.asul" (after the thumbnail declaration or depends your button position)
ADD THIS CODE:
Code: (xml)
  1.    <!-- Addthis.SHARE  -->
  2.    <button
  3.        name="btn_share"
  4.        style="common share"
  5.        title="localize(LNG_SHARE, Share)"
  6.        url="http://api.addthis.com/oexchange/0.8/offer?width=300&url=http%3a%2f%[YOURDOMAINNAME]%[YOUR INDEX.html] &height=350"
  7.    >
  8.        <box name="$up$"/>
  9.        <box name="$over$" style="over"/>
  10.        <box name="$down$" style="down"/>
  11.    </button>
  12.  
  13.    <!-- Addthis.Mail   -->
  14.    <button
  15.        name="btn_email"
  16.        style="common email"
  17.        title="localize(LNG_EMAIL, Send Email)"
  18.        url="http://api.addthis.com/oexchange/0.8/view?width=300&url=http%3a%2f%[YOURDOMAINNAME]%[YOUR INDEX.html]&height=350&dest=email"
  19.    >
  20.        <box name="$up$"/>
  21.        <box name="$over$" style="over"/>
  22.        <box name="$down$" style="down"/>
  23.    </button>
 

4) Validation:
     a) SHARE: Upong clicking on button: your DOMAIN NAME should be shown on "addthis.com" community active icon. you canclick on either facebook but make sure you have the account created.

 b) MAIL: Upon clicking the button; a browser will open an "addthis.com" mail. Youl should see different email sites.
     try to send to your own email and you should be receiving the link of you website flipbook.

I hope this simple code helps...It's good for sharing your flippbook using either mail or community network.


Florian Nücke: took the liberty of adding code tags for readability. Thanks for sharing!
« Last Edit: January 27, 2010, 02:28:31 PM by Florian Nücke »

hnuecke

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 402
  • MegaZine3 Sales Manager
Re: SHARE (using from addthis,.com
« Reply #2 on: January 27, 2010, 10:36:47 AM »
Thanks for sharing!
I'm shure many will be interested and try it out..
Hans

We will move this to the "contribution" section...