- You are here:
- Main › Forum › Application Support
[cbb Portal] Add Linkedin to share block
3 posts
• Page 1 of 1
-
- 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?
- IvanPF
- Administrator
- Posts: 2029
- 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:
3. Add Before:
4. Open '/portal/block/share_block.php'
5. Find:
6. Add After:
7. Open the ACP and update the configuration of the block.
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.
-
- 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.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
- External Links
- phpBB Official
- phpBB Official (Spanish)
- Raul Arroyo Monzo
- PasionReef
- About CaniDev
- Terms of use
- Privacy Policy
- About Us
- Contact
- © 2011-2024 CaniDev