Traffic Pop jQuery 2.0

SSTrafficPopjQuery2.0

 

  Social Traffic Pop requires very little to run. All you need is jQuery, and the associated social SDK’s for Facebook, Google, and Twitter.Step One – Include the Files

To start off, include the STP CSS file, and all of the required javascript files to run Social Traffic Pop in the <head> section of the page(s) you wat STP to appear on.

Note – In this example we load jQuery from the Google Cache, jQuery should be loaded before all other SDKs. You should also note that you only need ONE of each SDK. If you have multiple plugins that use either one of the jQuery, Facebook, Google +, or Twitter SDKs you should make sure you are only using them once as it will cause social plugins to fail.

 

Data provided by Pastebin.comDownload Raw
  1. <link href=”social-traffic-pop.css” rel=”stylesheet” type=”text/css” />
  2. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js”></script>
  3. <script type=”text/javascript” src=”https://apis.google.com/js/plusone.js”></script>
  4. <script src=”http://connect.facebook.net/en_US/all.js#xfbml=1″></script>
  5. <script src=”http://platform.twitter.com/widgets.js” type=”text/javascript”></script>
  6. <script src=”jquery.stp.js” type=”text/javascript”></script>

Step Two – Call the Function

The next step is to call our function when the page is ready. This is also were you will specify your options to customize Social Traffic Pop.

 

Data provided by Pastebin.comDownload Raw
  1. <script>
  2. $(document).ready(function(){
  3.         $().socialTrafficPop({
  4.                 timeout: 999,
  5.                 title: “Social Traffic Pop”,
  6.                 message: ‘Share my hot new Envato item <em>Social Traffic Pop</em>!’,
  7.                 google_url: “http://tyler.tc/”,
  8.                 fb_url: “http://codecanyon.net/item/social-traffic-pop-for-wordpress/309705″,
  9.                 closeable: true,
  10.                 advancedClose: false,
  11.                 opacity: ’0.45′,
  12.                 twitter_method: “tweet”,
  13.                 tweet_url: ‘http://codecanyon.net/item/social-traffic-pop-for-wordpress/309705′,
  14.                 tweet_text: ‘Just tried out this awesome plugin Social Traffic Pop – Its Amazing!’
  15.         });
  16. });
  17. </script>

The above example will make an STP popup that runs for 30 seconds and not show a close button. The rest of the values are your messages and teh URLs you want to use with the designated social buttons.

Continue on to see all the options / values you can use with STP.

Options & Values


Here are all of the options you can use with Social Traffic Pop and what kind of values you can use with them.

// Configuration Options

  • title – This is the title of your popup.
  • message – This is the message you want to appear in your popup.
  • closeable – Set to true or false to display a close button in the popup. Default is true.
  • advancedClose – Set to true or false to enabled / disable the ability to click outside of the popup or use the escape key to close the popup. Default is true.
  • opacity – The opacity of the popup background shadow in decimal format. The default value is ’0.3′

// Configuration of Social Buttons

Note that when choosing the URLs for your buttons, the URL must be valid, and it must return a valid header OK code of 200.

  • facebook_on – Set this option to false to disable the Like button.
  • google_on – Set this option to false to disable the Google Plus button.
  • twitter_on – Set this option to false to disable the Twitter buttons.
  • google_url – This is the URL you want to share on Google when the Google + button is pressed.
  • google_annotation – This is the new annotation feature google has made. It controls how the text / count is display. You can supply “inline” to show the number of pluses and some freinds names next to the button, “bubble” to show just the count, or “none” to show the button only.
  • google_size – While using “standard” is highly recomended to keep the look of the plugin you can also supply: “small”, “medium”, and “tall”.
  • fb_url – This is the URL you want to share on Facebook when the Like button is pressed.
  • fb_layout – Choose the layout of the facebook button to use. “button_count” is reccomended but you can also supply “boxy_count” or “standard” for the Like button with annotation.
  • fb_showfaces – Set to true or false to enable / disable the show faces feature.
  • fb_color_scheme – Set to either “light” or “dark” to choose which theme to use.
  • twitter_user – This is the username you want to use when using the twitter Follow button. It MUST be set if you have the twitter_method option set to follow.
  • twitter_method – Set this option to either ‘follow’ or ‘tweet’ to display which twitter button you want. Default is ‘tweet’.
  • tweet_url – Enter a valid URL to use in your tweet. This URL will be appended to your tweet and will act as the URL that the counter works for. You can leave this blank to use the current page or set one manually.
  • tweet_text – Enter the predefined, optional text to use in your tweet.
  • tweeted_by – False by default, you can set this option to true to use the tweeted by feature, the username in the twitter_user option will be used for this.

// Configuration of Timers

  • timeout – This is how long you want the popup timer to run for before it closes itself. Default is 25 seconds.
  • wait – This is the number of minuets you want to wait between showings of the popup. For example, if set to ’3′ the popup will only show every 3 minuets the user is on the site. You can also set this value to ’0′ (zero) to show the popup on every page load until the user completes a social action.
  • delay – Set to ’0′ by default, set this timer to the number of seconds you want the page to wait before showing the popup. For example if set to 10, the user will be on the page reading, browsing etc. for 10 seconds before the popup is shown.
Tags: , , , , , , , ,

admin - smoke weed everyday

21 Responses to "Traffic Pop jQuery 2.0"
  1. February 9, 2012 01:17

    Rhymi3

    Rhymi3…

    Wonderful blog post, saw on…

  2. February 9, 2012 03:21

    Skyz3

    Toplink3…

    Wonderful blog post, saw on…

  3. February 10, 2012 04:44

    Escort girl Paris

    Websites we think you should visit…

    [...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]……

  4. February 10, 2012 21:03

    table à langer

    News…

    I was reading slowly the Reddit news and info and I saw this really super interesting and super fresh topic…

  5. February 11, 2012 16:23

    sorbetiere

    Looking around…

    I am really into looking quite much in many great locations on the really vast web, very much often I do usually go ahead to Digg and read a lot and check things out…

  6. February 12, 2012 20:32

    casque audio sans fil

    Hard Day…

    It was a really really tough day for me today, so I decided just now to take to piddeling around for a while on the internet and very fast I found…

  7. February 14, 2012 17:34

    trampoline pas cher

    Useful and precise…

    It is incredibly super hard to find real honest and quality informative and accurate fresh information but today about noon I happily noted…

  8. February 15, 2012 10:09

    sacoche homme

    It is really hard these days to find enough support…

    My friend is truly forever but in a rash manner proclaiming that in all honesty that it is difficult to really easily get some good online support, but there is…

  9. February 15, 2012 11:54

    white ceramic watches for women

    Weebly article…

    I saw a nice guy writing in a good way about this interesting stuff on Diggg and it linked today right to…

  10. February 15, 2012 20:47

    robot cuisine

    Yahoo News…

    When reading a lot on Google and of course Bing for the latest news just right now I happily found this…

  11. February 17, 2012 08:43

    robot ménager

    News…

    I was reading slowly the Reddit news and info and I saw this really super cool and super fresh topic…

  12. February 18, 2012 00:43

    air purifier whole house

    Sources…

    [...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]……

  13. February 18, 2012 09:37

    air purifier for house

    Recommeneded websites…

    [...]Here are some of the sites we recommend for our visitors[...]……

  14. February 18, 2012 10:51

    reverse mortgage interest rates

    Check this out…

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

  15. February 18, 2012 18:18

    air home purifier

    Links…

    [...]Sites of interest we have a link to[...]……

  16. February 18, 2012 19:20

    mold air purifiers

    Recent Blogroll Additions……

    [...]usually posts some very interesting stuff like this. If you’re new to this site[...]……

  17. February 19, 2012 16:38

    HYIP

    HYIPS…

    This is my really great HYIP MONITOR….

  18. February 19, 2012 18:20

    Lopare

    LOPARE…

    Info about Majevica….

  19. February 19, 2012 20:44

    My Directory

    My Directory…

    List your site for free….

  20. February 20, 2012 08:35

    HYIP

    HYIP MONITOR…

    Check this amazing HYIP monitor….

  21. February 21, 2012 11:30

    echelle telescopique

    Tumblr and Digg…

    Tumblr and Digg just now linked to this super interesting website…

You must be logged in to post a comment..