SMF HELP! SMF.org
*
Welcome! Guest. Please Login Or Register

Last News: Zarejestruj si?, a zobaczysz wi?cej! Na tym Forum mo?ecie o wiele wi?cej, ni? na jakimkolwiek innym! U?miech
advanced  
  HOME   FORUM   CHAT HELP SEARCH GALLERY LOGIN REGISTER  
  Strony: 1 2 [Wszystkie]   Bottom Do dołu
  Drukuj  
ico Autor    
[EN] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [RU]
      Topic: Nowe przyciski theme Urban  [Przeczytany 65990 razy]
0 użytkowników i 2 Gości przegląda ten wątek.
8: Array to string conversion
Plik: /home/roco/sites/roco/www/ricoroco/poligon/fora/smf/Sources/Subs.php
Linia: 2466
Customer
*
Offline
26.02.2011 19:59:04
Topic Starter
 Poland Mężczyzna
Poland
  WWW
DATA: [14.07.2009 18:17:57]Nowe przyciski theme Urban
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=311.msg879#msg879  
Witam mam problem z  przyciskami niemoge doda? przycisku Forum i Galeria moze kto? mi by pomóg? pozdro.

Oto kawa?ek kodu



Code: [select]
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'managegames', 'arcadesettings', 'arcadecategory', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Are we using right-to-left orientation?
   if ($context['right_to_left'])
   {
      $first = 'last';
      $last = 'first';
   }
   else
   {
      $first = 'first';
      $last = 'last';
   }

   // Show the start of the tab section.
      echo '
         <div id="horiz-menu">
            <ul class="topnav" style="overflow: visible; float: left;">
               <li' , $current_action=='home' ? ' class="active"' : '' , '><a href="', $scripturl, '">' , $txt[103] , '</a>';

                  

               echo '<ul style="overflow: hidden; visibility: visible; opacity: 1;">
                     <li><a href="', $scripturl, '?action=help">' , $txt[119] , '</a></li>';


                     if ($context['allow_search'])
                  echo '<li' , $current_action=='search' ? ' class="active"' : '' , '><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';

                     if ($context['allow_admin'])
                  echo '<li><a href="', $scripturl, '?action=admin">' , $txt[2] , '</a></li>';

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

                     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>';

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

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

            echo '<li' , $current_action=='#' ? ' class="active"' : '' , '><a href="#">link</a>
                  <ul style="overflow: hidden; visibility: visible; opacity: 1;">
                     <li><a href="#">Link</a></li>

                     <li><a href="#">Dummy Item 2</a></li>
                   </ul>
               </li>';

            echo '<li' , $current_action=='#' ? ' class="active"' : '' , '><a href="#">przycisk</a>
                  <ul style="overflow: hidden; visibility: visible; opacity: 1;">
                    
                     <li><a href="#">link2</a></li>

                     <li><a href="#">Dummy Item 3</a></li>
                  </ul>
               </li>';

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

               if ($context['user']['is_guest'])
               {
                   echo '<li' , $current_action=='login' ? ' class="active"' : '' , '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a>
                              <ul style="overflow: hidden; visibility: visible; opacity: 1;">
                                  <li><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>
                              </ul>
               </li>';
               }
         echo '
            </ul>
         </div>';

}


Przy okazji Roco jak zrobi?es w galeri ?e tak fajnie sie fotka powi?ksza jaki? mod do tego jest??
Pozdrowionka U?miech



Attention! Testing modifications - Steam Profile

IP IP Zapisane

-= Najlepsz? obron? jest Atak =-
Administrator
*****
3wProducer
Imagination is more Important than Knowledge
Offline
08.05.2017 21:24:16
 United States Mężczyzna
United States
  WWW
DATA: [14.07.2009 18:32:32]Odp: Nowe przyciski theme Urban
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=311.msg880#msg880 Post #1 
Emka! U?miech

Nie ma sprawy, tylko jak wygl?daj? przywi?zane akcje? Normalnie button Home to akcja "index.php", je?li masz stron? g?ówn?, to powinno si? dopisa? akcje do Home i do buttona Forum. Nie wiem czy o to chodzi, ale b?d? móg? Ci pomóc z tym kodem, dopiero wtedy, kiedy b?d? wiedzia? o co chodzi, ok? To samo z Galeri??
Jaka to Galeria, czy jej akcja to ="gallery" ? Bo mo?e to media gallery? S? ró?ne galerie i te? nie wiem o jak? chodzi.

Napisz dok?adniej jakie maj? by? buttony i co ma si? wydarza? po klikni?ciu na te buttony.

Pozdrawiam U?miech
roco



Attention! Testing modifications - Steam Profile

IP IP Zapisane
Customer
*
Offline
26.02.2011 19:59:04
Topic Starter
 Poland Mężczyzna
Poland
  WWW
DATA: [14.07.2009 19:03:57]Odp: Nowe przyciski theme Urban
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=311.msg881#msg881 Post #2 
tak akcja to gallery i na forum akcja =forum  galerie mam SMF Gallery Lite niewiem czy tobie to wystarczy jak co? to pisz
pozdro U?miech



Attention! Testing modifications - Steam Profile

IP IP Zapisane

-= Najlepsz? obron? jest Atak =-
Administrator
*****
3wProducer
Imagination is more Important than Knowledge
Offline
08.05.2017 21:24:16
 United States Mężczyzna
United States
  WWW
DATA: [14.07.2009 19:58:39]Odp: Nowe przyciski theme Urban
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=311.msg882#msg882 Post #3 
Jeszcze pytanie.. skoro Forum ma akcję forum, to jaka akcję ma Home?

- index.php? (czyli w linku tylko: ', $scripturl, ')
- czy ation=home ? (czyli w linku: ', $scripturl, '?action=home)

Co widzisz w pasku przeglądarki, kiedy jesteś na stylu w którym masz jak powinno być, tj. interesuje mnie co widzisz na końcu linka czyli po "?" po kliknięciu na button Home, a co po kliknięciu na button Forum?

To żaden problem, jednak potrzebne mi dokładne info, dlatego pytam.

Narka U?miech
roco



Attention! Testing modifications - Steam Profile

IP IP Zapisane
Customer
*
Offline
26.02.2011 19:59:04
Topic Starter
 Poland Mężczyzna
Poland
  WWW
DATA: [14.07.2009 20:14:52]Odp: Nowe przyciski theme Urban
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=311.msg883#msg883 Post #4 
zerknij bo jest tylko index.php          to stronka niewiem czy mozna pokazywac jak cos to usun adres tu  U?miech          
http://portal.matrixelite.pl/index.php



Attention! Testing modifications - Steam Profile

IP IP Zapisane

-= Najlepsz? obron? jest Atak =-