Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1226)
Mod adds block with the links to Russian social networks (vkontakte.ru, odnoklassniki.ru, moikrug.ru, my.mail.ru) and LinkedIn to your profile. Languages support: English (+utf8), Russian (windows-1251,utf-8), Ukrainian (windows-1251,utf-8).
The excellent idea - to block this garbage...
This not social network's - this Dating sites for idiots :)))
Lol.. when I first saw this modification, I thought it blocked all Russians from accessing your forum. XD
nice mod
can translate en
Quote$txt['linkedin']='LinkedIn';
$txt['moimir']='Moi Mir';
$txt['moikrug']='Moi Krug';
$txt['odnoklassniki']='Odnoklassniki';
$txt['vkontakte']='VKontakte';
Thank you. Actually I can make a Social Networks block. and after that the series of mods to add Each Social Network to this block.
like:
SocNets block
SocNets.Linkedin
SocNets.Facebook
etc.
if it will be useful for the SMF community
To prevent misunterstanding maybe I'll better rename it to "Box of Soc Nets" ?
Hello some question? why this mod installing twice?
In profile page the input boxex repeat, i understand how to fix this, but why? can anybody help?
nice mod.
But how to protect guests from viewing links? Just in display.template.php ? I'm kinda stuckgot it:
if (!empty($message['member']['options']['vkontakte']) || !empty($message['member']['options']['odnoklassniki']) || !empty($message['member']['options']['moimir']) || !empty($message['member']['options']['moikrug']) || !empty($message['member']['options']['facebook']))
if ($context['can_send_pm'])
echo '<div style="border: 0; width:auto; ">'.$txt['social_nets_hdr'].':<br />';
if (!empty($message['member']['options']['vkontakte']) && ($context['can_send_pm'])) echo '<a href="http://www.vkontakte.ru/id', $message['member']['options']['vkontakte'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/vkontakte.gif" alt="'.$txt['vkontakte'].'" style="margin: 2px;" /></a>';
if (!empty($message['member']['options']['odnoklassniki']) && ($context['can_send_pm'])) echo '<a href="http://www.odnoklassniki.ru/user/', $message['member']['options']['odnoklassniki'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/odnoklassniki.gif" alt="'.$txt['odnoklassniki'].'" style="margin: 2px;" /></a>';
if (!empty($message['member']['options']['moimir']) && ($context['can_send_pm'])) echo '<a href="http://my.mail.ru/', $message['member']['options']['moimir'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/moimir.gif" alt="'.$txt['moimir'].'" style="margin: 2px;" /></a>';
if (!empty($message['member']['options']['moikrug']) && ($context['can_send_pm'])) echo '<a href="http://', $message['member']['options']['moikrug'], '.moikrug.ru" target="_blank"><img border="0" src="' . $settings['images_url'] . '/moikrug.gif" alt="'.$txt['moikrug'].'" style="margin: 2px;" /></a>';
if (!empty($message['member']['options']['facebook']) && ($context['can_send_pm'])) echo '<a href="http://www.facebook.com/profile.php?id=', $message['member']['options']['facebook'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/facebook.gif" alt="'.$txt['facebook'].'" style="margin: 2px;" /></a>';
if (!empty($message['member']['options']['vkontakte']) || !empty($message['member']['options']['odnoklassniki']) || !empty($message['member']['options']['moimir']) || !empty($message['member']['options']['moikrug']) || !empty($message['member']['options']['linkedin']))
echo '</div>';
p.s. i've just added everywhere to protect from guests
Quote($context['can_send_pm'])
p.p.s. i've changed last social network to facebook
thanks for modification!
& i'll ask the last time most popular question - what's about SMF 2.0?
или этот мод и так будет работать там?)
I know this is old, but thought I'd give it a shot anyway.
Just out of curiosity, will this mod work with 1.1.11?
yes, as for me it worked fine with 1.1.11
After i migrated to SMF 2.0 branch i started using built in additional profile fields.