Pomoc

Started by king13, January 04, 2010, 05:24:23 AM

Previous topic - Next topic

king13

OPET NEZZ KAKO DA NAPRAVIM TIPKU FORUM

JA NAPRAVIM BUTON FORUM I PORTAL KAD STISNEM NA PORTAL IMA PORTAL KAD STISNEM NA FORUM IMA I FORUM ALI NISAM LOGOVANN MOZELI MI KO RECI ILI URADIT.....NEZZ STA JE TOOOO

Zoric

Quote from: king13 on January 04, 2010, 05:24:23 AM
OPET NEZZ KAKO DA NAPRAVIM TIPKU FORUM

JA NAPRAVIM BUTON FORUM I PORTAL KAD STISNEM NA PORTAL IMA PORTAL KAD STISNEM NA FORUM IMA I FORUM ALI NISAM LOGOVANN MOZELI MI KO RECI ILI URADIT.....NEZZ STA JE TOOOO

hahahaha neznam sta oces da kazes ali evo ti moje dugme pa vidi

// Show the [Forum] button.
   echo   '<li><a href="http://www.nisforum.byethost32.com/index.php?action=forum" class="kwick opt3"><span>Forum</span></a></li>';


Pa se snadji u index-u

trazi deo koda


   // Show the [home] button.
   echo   '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
   
   // Show the [help] button.
   echo   '<li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';

   // How about the [search] button?
   if ($context['allow_search'])
      echo '<li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo   '<li><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo '<li><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';


   // The [calendar]!
   if ($context['allow_calendar'])
      echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';

   // the [member] list button
   if ($context['allow_memberlist'])
      echo '<li><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';


   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo '<li><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo '<li><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';


   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
      echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';

   echo '</ul>';

}



pogledaj i pazljivo gledaj provalices kako da ubacis dugme !!!

Evo stavicu ti i uradjeni


   // Show the [home] button.
   echo   '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
   
   // Show the [Forum] button.
   echo   '<li><a href="http://www.nisforum.byethost32.com/index.php?action=forum" class="kwick opt3"><span>Forum</span></a></li>';

   // Show the [help] button.
   echo   '<li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';

   // How about the [search] button?
   if ($context['allow_search'])
      echo '<li><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo   '<li><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '<li><a href="', $scripturl, '?action=profile">' , $txt[79] , '</a></li>';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo '<li><a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a></li>';


   // The [calendar]!
   if ($context['allow_calendar'])
      echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';

   // the [member] list button
   if ($context['allow_memberlist'])
      echo '<li><a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a></li>';


   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo '<li><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo '<li><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';


   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
      echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';

   echo '</ul>';

}


E sada mozes ovo gledati 1 sat ali sigurno mozes nauciti kako da namestis dugme !!!

Ovo sam izvadio deo koda iz mog foruma !!!

king13

ma ok je znam ja samo sam se malo bio zeznuo :D :D :D

Zoric

Quote from: king13 on January 05, 2010, 04:38:58 AM
ma ok je znam ja samo sam se malo bio zeznuo :D :D :D

Ok np ali evo ti vise da ne otvaras teme !!! Imao si tamo kad je bila tema trazena ja sam ti namestio dugme pa mogao si da procitas kodove!!!

Madzgo

Dje je ovo u 2.0 RC4? Dark Mark tema..?

Masterd

U SMF- u 2.0 gumbi se mijenjaju u Surces/Subs.php i takav pristup nije ovisan o temi.

LazarBeliNikolic

 E pozz narode  8)

Vidim da ste eksperti sto se foruma tice pa mi treba pomoc. Skoro sam napravio neki forumcic http://lazarbeli.do-forum.com ali ne znam kako da gore rasporedim dugmice za meni....Da mi recimo prvo bude "Home" pa "Forum" pa td..... Ako znate kako to da resim i td. posaljite mi poruku na e-mail: [email protected] 
Nadam se brzom odgovoru unapred HVALA !  :)

Dzonny

LazarBeliNikolic, ovo je podrška za smf, a ti koristiš phpbb, tako da se obrati na njihovom forumu za pomoć.

Advertisement: