News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

New Profile Look

Started by vbgamer45, August 24, 2009, 05:25:37 PM

Previous topic - Next topic

Ferrin

I have done it ourselves now. Thanks for your help. ;)
My English is not the best. German is more my language.

qubbah

how about member goolemap mod installed. where/what code to put in?

sAce

Use the below code, to add g map mod follow instructions below

Code (find) Select
// Finally, if applicable, span the bottom of the table with links to other useful member functions.
echo '
<tr class="titlebg">
<td colspan="3">', $txt[85], ':</td>
</tr>
<tr>
<td class="windowbg2" colspan="3">', $context['member']['signature'], '
</td>
</tr>
</table>';
}


Code (replace) Select
// Finally, if applicable, span the bottom of the table with links to other useful member functions.
echo '
<tr class="titlebg">
<td colspan="3">', $txt[85], ':</td>
</tr>
<tr>
<td class="windowbg2" colspan="3">', $context['member']['signature'], '
</td>
</tr>';


if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view'))) {
if(isset($context['member']['googleMap']['latitude']) && isset($context['member']['googleMap']['longitude'])) {
echo '
<tr>
<td class="windowbg" colspan="3">
<script src="http://maps.google.com/maps?file=api&v=2&key=' . $modSettings['googleMapsKey'] . '" type="text/javascript"></script>
<div id="map" style="width: 600px; height: 350px; color: #000000;"></div>
<input type="hidden" name="latitude" size="50" value="', $context['member']['googleMap']['latitude'], '" />
<input type="hidden" name="longitude" size="50" value="', $context['member']['googleMap']['longitude'], '" />
<script type="text/javascript">';

//Evil hack on this!!!
        echo '
//' . chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

echo "
function LoadMap() {
var map = new GMap2(document.getElementById(\"map\"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . "), 13, ". $modSettings['googleMapsType'] .");
var point = new GLatLng(" . $context['member']['googleMap']['latitude'] . "," . $context['member']['googleMap']['longitude'] . ");
var marker = new GMarker(point);
map.addOverlay(marker);
}

if (GBrowserIsCompatible()) {
window.onload=LoadMap;
}";
//Lets make another evil hack!
echo '
//' . chr(93) . chr(93) . chr(62);
echo "
            </script>
</td>
</tr>";
}
}

</table>';
}



the other template modification is same

Nibogo

One more thing, would be nice if you hide the icon and the text if the field is empty, I mean if the user didn't has an msn account just don't show:

[MSN ICON] MSN:   


rajam

Quote from: S-Ace on August 25, 2009, 01:34:05 PM
Quote from: Rohan_ on August 25, 2009, 11:10:15 AM
S-Ace yes your mod haves the problem in load.php

so here is the solution

Replace
'topics' => comma_format($profile['topics']),

With

'topics' => (isset($profile['topics']) ? comma_format($profile['topics']) : 0),

it worked for me


yes this works , thanks pal, it seems it was 0 topic count which was creating it,

@ rajam
try this file or edit your self as posted by rohan
Quote from: Rohan_ on August 25, 2009, 01:41:41 PM
You're Welcome S-Ace :) also add this in ur mod


Oh Thank you Sir now there is error logging at my forum board thanks a lot i really found a great ... support and even great mod too.
me always cool and happy...... :)

sAce

Quote from: NIBOGO on August 25, 2009, 07:11:24 PM
One more thing, would be nice if you hide the icon and the text if the field is empty, I mean if the user didn't has an msn account just don't show:

[MSN ICON] MSN:   

OK ! added in todo list :)

Zangetsu

Quote from: minos on August 25, 2009, 07:05:51 AM
in spanish

$txt['pr_info'] = 'Información Personal';
$txt['ct_info'] = 'Información de Contacto';
$txt['fr_info'] = 'Perfil del Foro';
$txt['dob'] = 'Cumpleaños:';
$txt['avtr'] = 'Avatar del Usuario';
$txt['ca'] = 'Acción Actual:';
$txt['cs'] = 'Estado Actual';
$txt['id'] = 'Miembro Número:';
$txt['p_pm'] = 'PM:';
$txt['p_name'] = 'Nombre para Mostrar:';
$txt['p_uname'] = 'Nombre de Usuario:';
$txt['p_topics'] = 'Topicos:';


Instead of "Topicos" it would be "Temas", nice mod by the way, thanks

Rohan_

Proud To Be An Indian

sAce


Rohan_

i went to translate.google.com and i wrote topics and selected to convert it to spanish then google showed me Temas :) i dont know spanish :D Hola Amigo Como Estas ..
Proud To Be An Indian

bbmtalk

Hello, thanks for the nice mod. I have manually installed this mod and have one problem with the layout.

In the right column, how to make the heading appear in one line? Thanks for the help.


sAce

looks like you reduced the width or that column, increase it, check spans


bbmtalk

Quote from: S-Ace on August 26, 2009, 03:31:13 PM
looks like you reduced the width or that column, increase it, check spans

Thanks for the quick response. I didn't change any code during the installation. Since I am not familiar with the code, any suggestion? Also, I have right alignment but it still doesn't show. Could this be a browser problem? I am using FireFox.

// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg2" width="340" colspan="2" valign="top" align="right">
<table class="tborderp" width="340" border="0" cellspacing="0" cellpadding="2" bgcolor="ffffff">
<tr class="catbg">
<td width="340" height="26" colspan="2" align="right"><img src="', $settings['images_url'], '/picons/fprofile.png" alt="" align="top" />&nbsp; ', $txt['fr_info'], '</td><td></td></tr>
<tr><td width="40%" valign="top">&nbsp;<b>', $txt['p_name'], '</b></td>
<td valign="top"><b>', $context['member']['link'], '</b></td>
</tr><tr><td>&nbsp;<b>', $txt['p_uname'], '</b></td>
<td>', $context['member']['username'], '</td>
</tr>';

sAce

<tr class="catbg">
<td width="340" height="26" colspan="2" align="center"><img src="', $settings['images_url'], '/picons/fprofile.png" alt="" align="top" />&nbsp; ', $txt['fr_info'], '</td><td></td></tr>


this is the original code, you modified it after installation,

islam2hamy

Nice mod , Thank you.

Arabic-utf8 translation :


$txt['pr_info'] = 'المعلومات الشخصية';
$txt['ct_info'] = 'معلومات الإتصال';
$txt['fr_info'] = 'الملف الشخصى الخاص بالمنتدى';
$txt['dob'] = 'تاريخ الميلاد:';
$txt['avtr'] = 'الصورة الشخصية';
$txt['ca'] = 'الإجراء الحالى:';
$txt['cs'] = 'الحالة';
$txt['id'] = 'رقم العضوية:';
$txt['p_pm'] = 'الرسائل الشخصية:';
$txt['p_name'] = 'إسم العرض:';
$txt['p_uname'] = 'إسم المستخدم:';
$txt['p_topics'] = 'المواضيع:';

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





funkenwerner

Works fine thanks!!

But i have a little Problem

Your  "Forum Profile"  is Rightsite

http://custom.simplemachines.org/mods/index.php?action=download;mod=2092;id=112424;image

but in my is this in leftSite under "PersonalInfo"




Why?

Sorry my little English

i leave in Vienna and have very little shoolenglish

by Werner
SMF 1.1.11 in Verwendung


bbmtalk

Quote from: S-Ace on August 26, 2009, 04:12:47 PM
<tr class="catbg">
<td width="340" height="26" colspan="2" align="center"><img src="', $settings['images_url'], '/picons/fprofile.png" alt="" align="top" />&nbsp; ', $txt['fr_info'], '</td><td></td></tr>


this is the original code, you modified it after installation,

Yes I modified align="center" to align="right"

It still doesn't display correctly.

Mina Domadios

#58
in arabic
$txt['pr_info'] = 'المعلومات الشخصية';
$txt['ct_info'] = 'معلومات الإتصال';
$txt['fr_info'] = 'الملف الشخصى الخاص بالمنتدى';
$txt['dob'] = 'تاريخ الميلاد:';
$txt['avtr'] = 'الصورة الشخصية';
$txt['ca'] = 'الإجراء الحالى:';
$txt['cs'] = 'الحالة';
$txt['id'] = 'رقم العضوية:';
$txt['p_pm'] = 'الرسائل الشخصية:';
$txt['p_name'] = 'إسم العرض:';
$txt['p_uname'] = 'إسم المستخدم:';
$txt['p_topics'] = 'المواضيع:';

translated by islam2hamy

Costa

Congrats! :)
Can you update language strings?

Modifications.portuguese_pt.php
$txt['pr_info'] = 'Informação Pessoal';
$txt['ct_info'] = 'Informação de Contacto';
$txt['fr_info'] = 'Perfil no Fórum';
$txt['dob'] = 'Aniversário:';
$txt['avtr'] = 'Avatar do Membro';
$txt['ca'] = 'Acção Actual:';
$txt['cs'] = 'Estado Actual';
$txt['id'] = 'Membro Nº:';
$txt['p_pm'] = 'MP:';
$txt['p_name'] = 'Nome Visível:';
$txt['p_uname'] = 'Nome de Usuário:';
$txt['p_topics'] = 'Tópicos:';


Modifications.portuguese_brazilian.php
$txt['pr_info'] = 'Informação Pessoal';
$txt['ct_info'] = 'Informação de Contato';
$txt['fr_info'] = 'Perfil no Fórum';
$txt['dob'] = 'Aniversário:';
$txt['avtr'] = 'Avatar do Membro';
$txt['ca'] = 'Ação Atual:';
$txt['cs'] = 'Estado Atual';
$txt['id'] = 'Membro Nº:';
$txt['p_pm'] = 'MP:';
$txt['p_name'] = 'Nome Visível:';
$txt['p_uname'] = 'Nome de Usuário:';
$txt['p_topics'] = 'Tópicos:';
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: