News:

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

Main Menu

Botão Hi5

Started by FlyingBug, November 29, 2005, 12:50:47 PM

Previous topic - Next topic

FlyingBug

Olá todos,
gostaria de saber se é possível aos membros do meu fórum colocarem no perfil o link para o seu Hi5, como fazem para o messenger, icq, etc...

Era porreiro esse mesmo icone aparecesse junto do icone da PM, MSN, etc nos posts desses mesmos utilizadores.

Obrigado,
Flyingbug

huguito

sería algo muy bueno ojala se pueda
Yo soy hincha de Emelec por siempre

Darkness_Black

#2
Esta é uma adaptação do mod MySpace Field que tem originalmente a função de acrescentar Myspace modifiquei todos os fixeiros manualmente para Hi5 pois não sei fazer o arquivo de instalação entao apenas adaptei para por Hi5 tera que mexer em todos os fixeiros manualmente.
Este mod foi criado por snork13

Boa Sorte:

Vamos lah mas terá que mexer nos fixeiros:
Não esquecer de fazer backup de todos estes fixeiros antes de iniciar para uma eventual falha subir o original novamente via ftp.
Apos terminado Hospede uma imagem pequena do hi5 Na pasta imagens do thema defaut e do thema que usas.


./Sources/Load.php

Encontre:
'msn' => $profile['MSN'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => &$profile['MSN'],
'href' => 'http://members.msn.com/' . $profile['MSN'],
'link' => '<a href="http://members.msn.com/' . $profile['MSN'] . '" target="_blank"><img src="' . $settings['images_url'] . '/msntalk.gif" alt="' . $profile['MSN'] . '" border="0" /></a>',
'link_text' => '<a href="http://members.msn.com/' . $profile['MSN'] . '" target="_blank">' . $profile['MSN'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),


Adcione Após:
'Hi5' => $profile['Hi5'] !='' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
'name' => &$profile['Hi5'],
'href' => 'http://www.hi5.com/' . $profile['Hi5'],
'link' => '<a href="http://www.hi5.com/' . $profile['Hi5'] . '" target="_blank"><img src="' . $settings['images_url'] . '/hi5.gif" alt="' . $profile['Hi5'] . '" border="0" /></a>',
'link_text' => '<a href="http://www.myspace.com/' . $profile['Hi5'] . '" target="_blank">' . $profile['Hi5'] . '</a>'
) : array('name' => '', 'href' => '', 'link' => '', 'link_text' => ''),


Encontre:
mem.birthdate, mem.memberIP, mem.memberIP2, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin,

Substitua Por:
mem.birthdate, mem.memberIP, mem.memberIP2, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin, mem.Hi5,

Encontre:
mem.birthdate, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin, mem.karmaGood,

Substitua por:
mem.birthdate, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin, mem.karmaGood, mem.Hi5,

./Sources/Memberlist.php

Encontre:
'MSN' => array(
'label' => $txt['MSN'],
'width' => '25'
),


Adcione Depois:

'Hi5' => array(
'label' => $txt['Hi5'],
'width' => '25'
),


Encontre:
'MSN' => array(
'down' => 'LENGTH(mem.MSN) > 0 DESC, ISNULL(mem.MSN) ASC, mem.MSN ASC',
'up' => 'LENGTH(mem.MSN) > 0 ASC, ISNULL(mem.MSN) DESC, mem.MSN DESC'
),


Adcione Depois:
'Hi5' => array(
'down' => 'LENGTH(mem.Hi5) > 0 DESC, ISNULL(mem.Hi5) ASC, mem.MYSPACE ASC',
'up' => 'LENGTH(mem.Hi5) > 0 ASC, ISNULL(mem.Hi5) DESC, mem.Hi5 DESC'
),


./Sources/News.php

Encontre:
if ($profile['yim']['name'] != '' && !(!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']))
$data['yim'] = $profile['yim']['name'];


Adcione Depois:

if ($profile['Hi5']['name'] != '' && !(!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']))
$data['Hi5'] = $profile['Hi5']['name'];


./Sources/Profile.php

Encontre:
'msn' => array('name' => empty($user_profile[$memID]['MSN']) ? '' : $user_profile[$memID]['MSN']),

Adcione Depois:
'Hi5' => array('name' => empty($user_profile[$memID]['Hi5']) ? '' : $user_profile[$memID]['Hi5']),

Encontre:
'signature', 'personalText', 'avatar',

Adcione Depois:
'Hi5',

Encontre:
'msn' => array(
'name' => empty($_POST['msn']) ? '' : stripslashes($_POST['MSN'])
),


Adcione Depois:

'Hi5' => array(
'name' => empty($_POST['Hi5']) ? '' : stripslashes($_POST['Hi5'])
),


Continuação Abaixo :P

Translator - Brazilian

Não respondo MP de ajuda, Poste sua duvida no forum!!! Se alguém te Ajudou Agradeça!!!

Darkness_Black

./Sources/Subs-Members.php

Encontre:
'MSN' => "''",

Adcione Depois:
'Hi5' => "''",

./Themes/default/Display.template.php


Encontre:
', $message['member']['yim']['link'], '<br />';

Substitua Por:

', $message['member']['yim']['link'], '
',$message['member']['Hi5']['link'],'<br />';


./Themes/default/PersonalMessage.template.php

Encontre:
', $message['member']['aim']['link'], '<br />';

Substirua por:

', $message['member']['aim']['link'], '
         ', $message['member']['Hi5']['link'],'<br />';


./Themes/default/Profile.template.php

Encontre:
<td>', $context['member']['yim']['link_text'], '</td>

Adcione Apos:
</tr><tr><td><b>', $txt['Hi5'], ': </b></td><td>', $context['member']['Hi5']['link_text'], '</td>

Encontre:
<tr class="titlebg">
<td colspan="8" height="26">


Substitua por:
<tr class="titlebg">
<td colspan="9" height="26">


Encontre:
<td align="center">', $txt['MSN'], '</td>

Adcione Apos:
<td align="center">', $txt['hi5'], '</td>

Encontre:
if (empty($context['buddies']))
echo '
<tr class="windowbg">
<td colspan="8" align="center"><b>', $txt['no_buddies'], '</b></td>
</tr>';


Substitua por:
if (empty($context['buddies']))
echo '
<tr class="windowbg">
<td colspan="9" align="center"><b>', $txt['no_buddies'], '</b></td>
</tr>';


Encontre:
<td align="center">', $buddy['msn']['link'], '</td>

Adcione Apos:
<td align="center">', $buddy['Hi5']['link'], '</td>

Encontre:
<td><input type="text" name="YIM" maxlength="32" size="24" value="', $context['member']['yim']['name'], '" /></td>

Adcione Apos:
</tr><tr>
<td width="40%"><b>', $txt['Hi5'], ': </b><div class="smalltext">', $txt['Hi5Input'], '</div></td>
<td><input type="text" name="Hi5" maxlength="32" size="24" value="', $context['member']['Hi5']['name'], '" /></td>



Parte Final Abaixo :P

Translator - Brazilian

Não respondo MP de ajuda, Poste sua duvida no forum!!! Se alguém te Ajudou Agradeça!!!

Darkness_Black

#4
./Themes/default/Memberlist.template.php

Encontre:
<td class="windowbg2">', $member['msn']['link'], '</td>

Adcione Apos:
<td class="windowbg2">', $member['Hi5']['link'], '</td>

Encontre:
<tr>
<td colspan="12" class="windowbg">', $txt[170], '</td>
</tr>';


Substitua Por:
<tr>
<td colspan="13" class="windowbg">', $txt[170], '</td>
</tr>';


Encontre:
<tr class="titlebg">
<td colspan="12">';


Substitua Por:
<tr class="titlebg">
<td colspan="13">';


Encontre:
<tr>
<td colspan="12" class="', empty($settings['use_tabs']) ? 'catbg' : 'titlebg', '">';


Substitua Por:
<tr>
<td colspan="13" class="', empty($settings['use_tabs']) ? 'catbg' : 'titlebg', '">';


Encontre:
<tr>
<td class="titlebg" colspan="12">', $txt[139], ': ', $context['page_index'], '</td>
</tr>
</table>';


Substitua Por:
<tr>
<td class="titlebg" colspan="13">', $txt[139], ': ', $context['page_index'], '</td>
</tr>
</table>';


./Themes/default/Who.template.php

Encontre:
', $member['icq']['link'], ' ', $member['msn']['link'], ' ', $member['yim']['link'], ' ', $member['aim']['link'], '

Substitua Por:
', $member['icq']['link'], ' ', $member['msn']['link'], ' ', $member['yim']['link'], ' ', $member['aim']['link'], ' ',$member['Hi5']['link'], '

./Themes/default/languages/index.english.php

Encontre:
$txt['MSN'] = 'MSN';

Adcione Apos:
$txt['Hi5'] = 'Hi5';
  $txt['Hi5Input'] = '(ex: http://www.hi5.com/_________)';


Chegamos ao Fim não esquecer de fazer backup de todos estes fixeiros antes de iniciar para uma eventual falha subir o original novamente via ftp.
Apos terminado Hospede uma imagem pequena do hi5 Na pasta imagens do thema defaut e do thema que usas.

Translator - Brazilian

Não respondo MP de ajuda, Poste sua duvida no forum!!! Se alguém te Ajudou Agradeça!!!

jiraya

#5

./Sources/News.php

Encontre:
if ($profile['yim']['name'] != '' && !(!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']))
$data['yim'] = $profile['yim']['name'];


Adcione Depois:

if ($profile['Hi5']['name'] != '' && !(!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']))
$data['Hi5'] = $profile['Hi5']['name'];





Penso que seja assim

jiraya

#6
http://www.megaupload.com/?d=ZHF5G4RF

aqui tens o ficheiro de instalação.
penso estar a funcionar, alguém que experimente.

Darkness_Black

Quote from: jiraya on March 13, 2009, 05:30:45 AM

./Sources/News.php

Encontre:
if ($profile['yim']['name'] != '' && !(!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']))
$data['yim'] = $profile['yim']['name'];


Adcione Depois:

if ($profile['Hi5']['name'] != '' && !(!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']))
$data['Hi5'] = $profile['Hi5']['name'];





Penso que seja assim

Concertado o pequeno erro.

Quote from: jiraya on March 13, 2009, 06:11:19 AM
http://www.megaupload.com/?d=ZHF5G4RF

aqui tens o ficheiro de instalação.
penso estar a funcionar, alguém que experimente.

Vou dar uma olhada neste ficheiro muito obrigado pela dica.

Translator - Brazilian

Não respondo MP de ajuda, Poste sua duvida no forum!!! Se alguém te Ajudou Agradeça!!!

Darkness_Black


Translator - Brazilian

Não respondo MP de ajuda, Poste sua duvida no forum!!! Se alguém te Ajudou Agradeça!!!

Costa

alguém me pode mostrar uma imagem disto funcionando?
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

Advertisement: