Page 1 of 1
How to add Social Network
Posted: Sat Jun 20, 2020 3:09 pm
by LRAM
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
Re: How to add Social Network
Posted: Sat Jun 20, 2020 3:48 pm
by Jacob
Can you explain what do you want to do?
Add additional social network which is not exists in the list?
Re: How to add Social Network
Posted: Sat Jun 20, 2020 11:22 pm
by Edi
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):
Code: Select all
public function network()
{
return $this->getField('network');
}
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:
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'
);
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:
Code: Select all
echo Bootstrap::formInputText(array(
'name'=>'network',
'label'=>'Network',
'value'=>$site->network(),
'class'=>'',
'placeholder'=>'',
'tip'=>''
));
4) Modify the theme
Re: How to add Social Network
Posted: Mon Jun 22, 2020 3:21 pm
by LRAM
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
Re: How to add Social Network
Posted: Tue Jun 23, 2020 12:03 pm
by Edi
I don't know if the following plugin suits your needs:
https://plugins.bludit.com/plugin/social-media-suite
Re: How to add Social Network
Posted: Tue Jun 23, 2020 2:13 pm
by lightmat
How do you get that Edi, i can't get to it?
Re: How to add Social Network
Posted: Tue Jun 23, 2020 2:27 pm
by Edi
Seems that it is no longer available...
Re: How to add Social Network
Posted: Tue Jun 23, 2020 2:33 pm
by lightmat
No, it doesn't seem that way. That's also what I came up with.