|
: Nowe przyciski theme Urban : serafin 14.07.2009 18:17:57 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 :) : Odp: Nowe przyciski theme Urban : roco 14.07.2009 18:32:32 Emka! :)
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 :) roco : Odp: Nowe przyciski theme Urban : serafin 14.07.2009 19:03:57 tak akcja to gallery i na forum akcja =forum galerie mam SMF Gallery Lite niewiem czy tobie to wystarczy jak co? to pisz
pozdro :) : Odp: Nowe przyciski theme Urban : roco 14.07.2009 19:58:39 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 :) roco : Odp: Nowe przyciski theme Urban : serafin 14.07.2009 20:14:52 zerknij bo jest tylko index.php to stronka niewiem czy mozna pokazywac jak cos to usun adres tu :)
http://portal.matrixelite.pl/index.php (http://portal.matrixelite.pl/index.php) : Odp: Nowe przyciski theme Urban : roco 14.07.2009 21:28:44 Spoko, ?eby? chocia? co? reklamowa?.. hehe a Ty pytasz tylko to linka w menu nie? Mozna wsio co si? chce ok? przynajmniej na razie, chyba, ?eby jacy? ludzie zacz?li si? ?re?, to insza inszo??..
Dobra sorki, ale dzi? wszystko robi? na raty.. Masz bardzo wygodne menu, gdzie ?atwo mo?na dopisywa? ró?ne linki.. Ale rozumiem, ?e chodzi?o tu o stron? g?ówn?, poniewa? masz tam portal. Link na g?ówn? zostawi?em jako Home, natomiast dopisa?em Forum. Podmie? sobie kod i sprawd? czy dzia?a, czy nie ma errorów, pisze to z r?ki, sadz?, ?e tak powinno by?, ale w tej chwili nie mog? sprawdzi?, poniewa? mam w??czony inny server, (produkcyjny) i w tej chwili nie mog? swojej testowalni, ok? Tu podaj? Ci kod, pami?taj, ?eby robi? wszystko uwa?nie i pracowac wy??cznie na kopiach. GeSHi -› 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', 'home', 'forum', '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'; if ($context['current_action'] == 'home') $current_action = 'home'; if ($context['current_action'] == 'forum') $current_action = 'forum'; // 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></li> <li' , $current_action=='home' ? ' class="active"' : '' , '><a href="', $scripturl, '?action=forum">Forum</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>'; // Drugie menu 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>'; // Trzecie menu 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>'; } Za?atw to i co? napisz, jak b?dzie ?le to poprawi?. Opisz? co zrobi?em równie? wtedy kiedy b?dzie na stewke ok. Pozdrówka :) roco : Odp: Nowe przyciski theme Urban : serafin 14.07.2009 21:56:58 Dzia?a super dzi?ki wielkie tylko zapomia?e? dodac gallery Galeria
:) Pozdrówka : Odp: Nowe przyciski theme Urban : roco 14.07.2009 22:06:38 siax! fakt niezaprzeczalny!
Napisz w którym miejscu mo?e zostawi? te wolne, rozwijane i da? oddzielnie przed "Link" ? Napisz gdzie ma by? link? Jestem on-line, to zmieni? zaraz.. ;) : Odp: Nowe przyciski theme Urban : roco 14.07.2009 22:16:47 OK, tam jednak by?o ?le, poniewa? powinienem jeszcze ustawic akcj? dla forum, a tak jest 2x powtórzone, (w samych linkach), akcja = home..
Dopisa?em Ci przed Link, a po Forum, ok? Oto kod: GeSHi -› 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', 'home', 'forum', 'gallery', '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'; if ($context['current_action'] == 'home') $current_action = 'home'; if ($context['current_action'] == 'forum') $current_action = 'forum'; if ($context['current_action'] == 'gallery') $current_action = 'gallery'; // 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></li> <li' , $current_action=='forum' ? ' class="active"' : '' , '><a href="', $scripturl, '?action=forum">Forum</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>'; // [Galeria] echo ' <li' , $current_action=='gallery' ? ' class="active"' : '' , '><a href="', $scripturl, '?action=gallery">Galeria</a></li>'; // Drugie menu 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>'; // Trzecie menu 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>'; } Mo?e si? okaza?, ?e galleria wymaga czego? jeszcze, podmie? kod, podmie? plik i napisz czy jest ok? Narka :) roco : Odp: Nowe przyciski theme Urban : serafin 14.07.2009 22:29:52 teraz jest super :) niechc? by? natretny ale powiedz mi tylko jeszcze jak zrobi?e? u siebie w galeri ze jak klikne na fotke to si? tak fajnie powieksza fotka :)
Pozdro :) : Odp: Nowe przyciski theme Urban : roco 14.07.2009 22:34:52 Zastosowałem efekt Lightboxa, jednak ostatnia wersja ..jego skrypty gryzą się ze skryptami smf.
W chwili obecnej brak mi na to czasu, ale przypomnij się to pomyśle, co można u Ciebie, ok? Teraz jest ok? Akcja w linkach powoduje, ze jak np. jesteś na Forum, to link forum jest wyróżniony.. Chciałem się rozpisac, ale to jest tak proste, i wszystko tu jest w tym topie, wystarczy porównać.. Oczywiście w razie niejasności, rozwieje je. Pozdrawiam :) roco : Odp: Nowe przyciski theme Urban : serafin 14.07.2009 22:41:58 Przypomne sie napewno, teraz wszystko ?adnie dzia?a dzieki jeszcze raz za pomoc :drinks: zimny browar sie nale?y
Pozdro :) : Odp: Nowe przyciski theme Urban : roco 14.07.2009 22:49:12 Dzi?ki, w?a?nie si? uraczy?em.. jutro pewnie burza b?dzie, co? tak czuj? w gnatach..
Kodu si? nie obawiaj, b?d? tylko uwa?ny i ka?d? zmian? testuj/sprawdzaj.. Okay, id? rze?bi? dalej w kodzie hehe czasami my?l?, ze to jakie? nienormalne.. jak nie b?dzie burzy to siadam na rower! ;) Pozdrawiam :) roco |