How to add Social Network
- LRAM
- Legend Bludit
- Posts: 200
- Joined: Sat Sep 24, 2016 4:02 pm
- Location: France
- Has thanked: 25 times
- Been thanked: 2 times
- Contact:
Hi
I use all the link available on bludit renaming with the right icone when needed
but I need more
How can I add what I need ?
thanks
I use all the link available on bludit renaming with the right icone when needed
but I need more
How can I add what I need ?
thanks
- Attachments
-
- Social Network Bludit.png (37.41 KiB) Viewed 3093 times
https://sucrepop.com
Candies for the ears
Candies for the ears
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
You can do it with the following steps.
1) site.class.php
Modify in the file site.class.php in the directory /bl-kernel the public $dbFields array (line 4) adding the new network:
Add the following (around line 200):
2) theme.class.php
Modify in the file theme.class.php in the directory /bl-kernel/helpers the $socialNetworks array (line 8) adding the new network:
3) settings.php
Modify the file settings.php in the directory /bl-kernel/admin/views adding to the section Social Network tab (line 339) the following with the name of the new network:
4) Modify the theme
1) site.class.php
Modify in the file site.class.php in the directory /bl-kernel the public $dbFields array (line 4) adding the new network:
Code: Select all
'network'=> '',
Code: Select all
public function network()
{
return $this->getField('network');
}
Modify in the file theme.class.php in the directory /bl-kernel/helpers the $socialNetworks array (line 8) adding the new network:
Code: Select all
$socialNetworks = array(
'github'=>'Github',
'gitlab'=>'GitLab',
'twitter'=>'Twitter',
'facebook'=>'Facebook',
'instagram'=>'Instagram',
'codepen'=>'Codepen',
'linkedin'=>'Linkedin',
'mastodon'=>'Mastodon',
'vk'=>'VK',
'network'=>'Network'
);
Modify the file settings.php in the directory /bl-kernel/admin/views adding to the section Social Network tab (line 339) the following with the name of the new network:
Code: Select all
echo Bootstrap::formInputText(array(
'name'=>'network',
'label'=>'Network',
'value'=>$site->network(),
'class'=>'',
'placeholder'=>'',
'tip'=>''
));
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
- LRAM
- Legend Bludit
- Posts: 200
- Joined: Sat Sep 24, 2016 4:02 pm
- Location: France
- Has thanked: 25 times
- Been thanked: 2 times
- Contact:
Thanks Edi
Yes I need to add other social networks dedicated to musicians
I will try the recommended modification.
But it will be lost with the next update I guess
Yes I need to add other social networks dedicated to musicians
I will try the recommended modification.
But it will be lost with the next update I guess
https://sucrepop.com
Candies for the ears
Candies for the ears
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
I don't know if the following plugin suits your needs:
https://plugins.bludit.com/plugin/social-media-suite
https://plugins.bludit.com/plugin/social-media-suite
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets