News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Block of Russian social networks

Started by Scorpionium, May 31, 2008, 09:09:47 PM

Previous topic - Next topic

Scorpionium

Link to Mod

Mod adds block with the links to Russian social networks (vkontakte.ru, odnoklassniki.ru [nofollow], moikrug.ru [nofollow], my.mail.ru [nofollow]) and LinkedIn to your profile. Languages support: English (+utf8), Russian (windows-1251,utf-8), Ukrainian (windows-1251,utf-8).

vladok

The excellent idea - to block this garbage...
This not social network's - this Dating sites for idiots :)))

ccbtimewiz

Lol.. when I first saw this modification, I thought it blocked all Russians from accessing your forum. XD

Apllicmz

nice mod
can translate en

Quote$txt['linkedin']='LinkedIn';
$txt['moimir']='Moi Mir';
$txt['moikrug']='Moi Krug';
$txt['odnoklassniki']='Odnoklassniki';
$txt['vkontakte']='VKontakte';



Scorpionium

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

Scorpionium

To prevent misunterstanding maybe I'll better rename it to "Box of Soc Nets" ?

fadich

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?

Tair

#7
nice mod. But how to protect guests from viewing links? Just in display.template.php ? I'm kinda stuck

got 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

GreenStork

thanks for modification!

& i'll ask the last time most popular question - what's about SMF 2.0?

или этот мод и так будет работать там?)

wodema

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?


Tair

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.

Advertisement: