Advertisement:

Author Topic: Lokacija  (Read 10800 times)

Offline tarantula14

  • Semi-Newbie
  • *
  • Posts: 86
Lokacija
« 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.

Offline srbija

  • Semi-Newbie
  • *
  • Posts: 33
Re: Lokacija
« Reply #1 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 :)

Offline tarantula14

  • Semi-Newbie
  • *
  • Posts: 86
Re: Lokacija
« Reply #2 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.

Offline tarantula14

  • Semi-Newbie
  • *
  • Posts: 86
Re: Lokacija
« Reply #3 on: February 28, 2007, 05:06:08 AM »
Ljudi, jel zna neko gde ima taj kod. Ne mogu da ga nadjem. :(

Offline MarkoWeb

  • SMF Hero
  • ******
  • Posts: 2,690
  • Gender: Male
    • A2-Soft.Com - Web Portal
Re: Lokacija
« Reply #4 on: February 28, 2007, 08:21:10 AM »
profil.template.php

Offline tarantula14

  • Semi-Newbie
  • *
  • Posts: 86
Re: Lokacija
« Reply #5 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  :-[

Offline MarkoWeb

  • SMF Hero
  • ******
  • Posts: 2,690
  • Gender: Male
    • A2-Soft.Com - Web Portal
Re: Lokacija
« Reply #6 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.

Offline tarantula14

  • Semi-Newbie
  • *
  • Posts: 86
Re: Lokacija
« Reply #7 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! :)

Offline Alarm

  • Semi-Newbie
  • *
  • Posts: 14
Re: Lokacija
« Reply #8 on: November 03, 2010, 07:55:55 AM »
Gde se nalazi ovo na SMF 2.0 RC4 ??

Offline Skipper.

  • SMF Hero
  • ******
  • Posts: 2,433
  • Gender: Male
  • Ako si nekom pomogao spremi se da trpiš posledice.
    • FMBalkan on Facebook
    • @FM_Balkan on Twitter
    • FM-Balkan
Re: Lokacija
« Reply #9 on: November 03, 2010, 02:53:36 PM »
Imaš mod za to. Instaliraj ga ručno i radiće ti  ;)
Klik
      

It's very simple. Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and—as it always has—rock crushes scissors.