Simple Machines Community Forum

SMF Support => Language Specific Support => Bosanski/Hrvatski/Srpski (Bosnian/Croatian/Serbian) => Topic started by: tarantula14 on February 27, 2007, 06:15:15 PM

Title: Lokacija
Post by: tarantula14 on February 27, 2007, 06:15:15 PM
Ljudi, jedno verovatno glupo pitanje... ::)

Koristim SMF 1.0.8 i želim da mi se ispod avatara korisnika vidi lokacija, ko je ispunio to polje u svom profilu. Ubi se tražeći gde da uključim to, al´ ne nađoh.

Kako da uključim to?
Hvala.
Title: Re: Lokacija
Post by: srbija on February 27, 2007, 07:32:17 PM
Koliko znam moras rucno da ubacis kod da bi se prikazala lokacija, a to imas negde ovde na forumu kako se radi, potrazi, ili ubaci neki mod sa zastavicama :)
Title: Re: Lokacija
Post by: tarantula14 on February 27, 2007, 07:49:26 PM
Ma znam za taj mod, ali mi se nešto ne dopada.
Mislio sam da to možda može u Admin panelu negde da se uključi.

Nema veze, naći ću kod.
Hvala.
Title: Re: Lokacija
Post by: tarantula14 on February 28, 2007, 05:06:08 AM
Ljudi, jel zna neko gde ima taj kod. Ne mogu da ga nadjem. :(
Title: Re: Lokacija
Post by: MarkoWeb on February 28, 2007, 08:21:10 AM
profil.template.php
Title: Re: Lokacija
Post by: tarantula14 on February 28, 2007, 01:52:14 PM
profil.template.php

Hvala Marko!

Nego...

Video sam ovo:

Quote
// Gender, birthdate and location.
   echo '
                     <tr>
                        <td width="40%">
                           <b>', $txt[563], ':</b>
                           <div class="smalltext">', $txt[566], ' - ', $txt[564], ' - ', $txt[565], '</div>
                        </td>
                        <td class="smalltext">
                           <input type="text" name="bday3" size="4" maxlength="4" value="', $context['member']['birth_date']['year'], '" /> -
                           <input type="text" name="bday1" size="2" maxlength="2" value="', $context['member']['birth_date']['month'], '" /> -
                           <input type="text" name="bday2" size="2" maxlength="2" value="', $context['member']['birth_date']['day'], '" />
                        </td>
                     </tr><tr>
                        <td width="40%"><b>', $txt[227], ': </b></td>
                        <td><input type="text" name="location" size="50" value="', $context['member']['location'], '" /></td>
                     </tr>
                     <tr>
                        <td width="40%"><b>', $txt[231], ': </b></td>
                        <td>
                           <select name="gender" size="1">
                              <option value="0"></option>
                              <option value="1"', ($context['member']['gender']['name'] == 'm' ? ' selected="selected"' : ''), '>', $txt[238], '</option>
                              <option value="2"', ($context['member']['gender']['name'] == 'f' ? ' selected="selected"' : ''), '>', $txt[239], '</option>
                           </select>
                        </td>
                     </tr><tr>
                        <td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
                     </tr>';

Ali ne kapiram ispod/iznad cega to sada da ubacim u Display.template  :-[
Title: Re: Lokacija
Post by: MarkoWeb on February 28, 2007, 02:24:40 PM
Preveliko "parce" koda si uzeo :)

Evo parce kod-a koji ja koristim:

Code: [Select]
// lokacija
if (!empty($message['member']['location']))
echo '
Lokacija: ', $message['member']['location'], '<br />';

Ne znam gde tacno da ubacis posto je to kod mene sve izpremestano :D
ali probaj pre ovoga:
Code: [Select]
// Show how many posts they have made.
Title: Re: Lokacija
Post by: tarantula14 on February 28, 2007, 02:36:39 PM
Aha, uspeo sam!

Izbacio sam ranije ovo
Code: [Select]
// Show how many posts they have made.ali sam ga ubacio "tu negde" i radi!

Hvala puno Marko! :)
Title: Re: Lokacija
Post by: Alarm on November 03, 2010, 07:55:55 AM
Gde se nalazi ovo na SMF 2.0 RC4 ??
Title: Re: Lokacija
Post by: Skipper. on November 03, 2010, 02:53:36 PM
Imaš mod za to. Instaliraj ga ručno i radiće ti  ;)
Klik (http://custom.simplemachines.org/mods/index.php?mod=1404)