Personal License FREE

1 site, unlimited servers No source distribution Non-commercial use only Can modify source Read full license

Personal License $19.99

1 site, unlimited servers No source distribution Commercial use allowed Can modify source Read full license

Personal License $29.99

1 site, unlimited servers No source distribution Commercial use allowed Can modify source Read full license

You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

Starting from FREE

View Pricing 14 days money-back guarantee
(3 ratings)

jDrawer

Adding SocialNetwork Tabs to your Website.

Description

Adding SocialNetwork Tabs to your Website: jDrawer plugin allows to you add tabs in the left or the right side of the web pages

Back to top

Installation

  1. Unzip jDrawer.zip.

  2. Copy jDrawer folder and jDrawerTest.html into document root folder (into the root or in a subfolder), for example: C:/wamp/www/ or

C:/wamp/www/mysubfolder/

  1. Open your browser and enter the url to access to test.html for example: http://localhost/jDrawerTest.html or http://localhost/mysubfolder/jDrawerTest.html

  2. Making jDrawerTest.html:

Version 2.0:

Include this code into your head tag:

<script type="text/javascript" src="jDrawer/jDrawerInit.js"></script>

Call jDrawer function to insert the social tabs : Include this code before close body tag:

$(document).ready(function() 
{
    $.jDrawer(
    {
        align : "top",/* drawer alignment: left,right,top,bottom*/
        twitter : true,/* show twitter tab*/
        facebook : false,/*show facebook tab*/
        youtube : false,/*show youtube tab*/
        twitter_screen_name : "alexanderwebdev",/*Twitter screen name*/
        twitter_count : 5,/*Maximum of Tweets to show in tab*/
        height:300
    });
    $.jDrawer(
    {
        align : "left",
        twitter : false,
        facebook : false,
        youtube : true,
        youtube_user_name : "acruzcontreraswebdev",
        height:600
    });

});

Version 1.x:

Include this code into your head tag:

<link href="jDrawer/jDrawer.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jDrawer/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jDrawer/jDrawer.js"></script>

Include divs to render tabs:

<div class="drawerleft"></div>
<div class="drawerright"></div>

Call jDrawer function from the object where social tabs will be inserted (In this example are two divs: div.drawerleft and div.drawerright): Include this code before close body tag:

$(document).ready(function() 
{
    $(".drawerright").jDrawer(
    {
        align : "right",/* drawer alignment: left,right*/
        twitter : true,/* show twitter tab*/
        facebook : true,/*show facebook tab*/
        youtube : false,/*show youtube tab*/
        twitter_screen_name : "alexanderwebdev",/*Twitter screen name*/
        twitter_count : 5,/*Maximum of Tweets to show in tab*/
        facebook_profile_id : "alexander.webdeveloper",/*facebook profile id or profile alias*/
        height:300
    });
    $(".drawerleft").jDrawer(
    {
        align : "left",
        twitter : false,
        facebook : false,
        youtube : true,
        youtube_user_name : "acruzcontreraswebdev",
        height:600
    });

});
  1. You should be able to view socialnetworks tabs.
Back to top

Video Demo

Read all 2 comments »

Questions & Comments

  • Agnimyo said:

    5 months ago
    Version 1.x
    My English is not good
    Why
    facebook_profile_id : "alexander.webdeveloper.co",-is good
    facebook_profile_id : "2078......",/* -is wrong
    Could not retrieve id for the specified page. Please verify correct href was passed in.


    • Alexander WebDeveloper Author said:

      5 months ago
      Hi Agnimyo, no worries :), I already added version 1.2.2 for webdevelopers and 1.2.3 as a Joomla 1.5.x module, these versions have a fix for parameter "facebook_profile_id".

      If you want put a facebook page then you need to set the paramater fbtype to "page".

      Mi Facebook page have an alias so the parameter "facebook_profile_id" is set to : "alexander.webdeveloper.co"; if your facebook page doesn't have an alias then look at this example:

      Facebook Page url: https://www.facebook.com/pages/abbie-mexican-fans-cornish/164851753575744

      Then put this code:

      facebook_profile_id : "pages/abbie-mexican-fans-cornish/164851753575744",
      fbtype:"page"



      If you want put your facebook profile then you need to set the paramater fbtype to "profile".

      If your facebook profile has an alias then put the alias in the parameter "facebook_profile_id", for example:

      facebook_profile_id : "alexander.webdeveloper"

      If your facebook profile doesn't have an alias then put the profile id:

      facebook_profile_id : "100002677688696".

      I hope this helps you :)

Leave a comment

You must be logged-in to leave a comment.
Log-in now or register for a free account.
You must be logged-in to vote. Log-in to your account or register now.
View all 2 reviews »

User Reviews

    It's so fast and makes life easy while creating a website.
    - Fred Kawooya, 3 months ago
    Flag review
    Was this helpful? Yes No
    Demo works straight out of the box, so I assume that code quality is good. Seems like a very handy addition to any website.
    - Ken Lyle, 6 months ago
    Flag review
    Was this helpful? Yes No

Starting from FREE

View Pricing 14 days money-back guarantee