[cbb Portal] Add Linkedin to share block


no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Mon Sep 03, 2012 12:00 am • via Web
How to add a Linked in share button to Share (Social Networks) block?
User avatar
IvanPF
Administrator
 
Posts: 2028
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)
 Tue Sep 04, 2012 9:15 pm • via Web
Hi,

To add a LinkedIn button, follow this steps:
1. Open '/styles/{your_style}/template/portal/block/share_block.html'
2. Find:
Code: Select all
<!-- IF S_TUENTI_SHOW -->

3. Add Before:
Code: Select all
<!-- IF S_LINKEDIN_SHOW -->
   <div class="share-button">
      <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
      <script type="IN/Share" data-url="{U_SHARE_URL}" data-counter="{S_LINKEDIN_SIZE}"></script>
   </div>
<!-- ENDIF -->


4. Open '/portal/block/share_block.php'
5. Find:
Code: Select all
      'tuenti'   => array('id' => 4),

6. Add After:
Code: Select all
      'linkedin'   => array('id' => 5,   'small' => 'none,0*0',      'medium' => 'right,0*0',   'big' => 'top,0*0')


7. Open the ACP and update the configuration of the block.
no_avatar
mladiucitelj
 
Posts: 153
Joined: Sun Sep 02, 2012 11:40 pm
Location: Slovenia, Europe
 Wed Sep 05, 2012 9:19 pm • via Web
Thank you. Will try it.

Who is online

Users browsing this forum: No registered users and 0 guests