| Logowanie a news.php/index.php | 
| Dagobah | Dodany dnia 08.01.2007 22:47:29 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 160
 Data rejestracji: 15.08.2006 10:46
 
 
 | Witam! 
 Mam nast?puj?cy problem. Dokona?em modyfikacji na swojej stronie, któr? zrobi? m_i_n  (zamiana news.php na index.php). Wszystko ?adnie. Dokona?em kolejnej modyfikacji - zrobi?em panel logowania na samej górze strony i tu pojawi? si? problem. Po zalogowaniu tam (stary panel z prawej strony wy??czy?em) nie mog? wej?? w panel administracyjny - mam odwo?anie do g?ównej strony (dok?adniej do pliku index.php). Wiem, i? gdzie? jest b??d, lecz niestety nie wiem gdzie.
 
 Kto? by?by mi w stanie pomóc z tym fantem?
 
 edit: strona: www.projektliso.y...
 Edytowane przez Pieka dnia 09.01.2007 00:26:48
 | 
|  | 
 | 
			
				|  | 
			
				| W?cibski Go?? | Dodany dnia 31.10.2025 16:12:25 | 
			
				| Pan Kontekstualny 
 Postów: n^x
 Data rejestracji: Zawsze
 
 
 |   | 
			
				| IP: localhost |  | 
		
|  | 
| Pieka | Dodany dnia 08.01.2007 22:51:32 | 
|  
 
  
 
 Postów: 19887
 Pomógł: 767
 
  v7.02.03 Data rejestracji: 23.02.2005 18:12
 
 
 | Co to jest "sama gora strony"? Header? Jesli wstawiles logowanie do thema, to musisz tam jeszcze dodac $userdata i $aidlink .
 Bez tego zapomnij o PA.
 
 Jestem jaki jestem   | 
|  | 
 | 
|  | 
| Dagobah | Dodany dnia 08.01.2007 23:10:19 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 160
 Data rejestracji: 15.08.2006 10:46
 
 
 | Pieka napisa?/a:Co to jest "sama gora strony"? Header?
 Jesli wstawiles logowanie do thema, to musisz tam jeszcze dodac $userdata i $aidlink .
 Bez tego zapomnij o PA.
 
 Tak doda?em do theme.php jednak?e w formie include THEME."logowanie.php";
 
 Plik logowanie.php wygl?da nast?puj?co:
 
 
 <?php/*--------------------------------------------+
 | PHP-Fusion 5 - Content Management System    |
 |---------------------------------------------|
 | author: Nick Jones (Digitanium) © 2002-2005 |
 | web: http://www.php-fusion.co.uk            |
 | email:                 |
 |---------------------------------------------|
 | Released under the terms and conditions of  |
 | the GNU General Public License (Version 2)  |
 +--------------------------------------------*/
 include LOCALE.LOCALESET."global.php";
 if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
 
 
 if (iMEMBER) {
 echo "<table width='100%' height='20px' border='0' cellspacing='0' cellpadding='0'>
 <tr><td style='color: #555;'>";
 echo "<b style='color: #555;'>Witaj ".$userdata['user_name']." </b>";
 $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'");
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='white'><b style='color: #555;'><font size='1px'>".$locale['081']."</a> ";
 
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php' class='white'><b style='color: #555;'>".$locale['080']."</a>
 <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='white'><b style='color: #555;'>".$locale['082']."</a>\n";
 
 if (iADMIN) {
 echo "<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php' class='white'><b style='color: #555;'>".$locale['083']."</a>\n";
 }
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes' class='white'><b style='color: #555;'>".$locale['084']."</a>\n";
 if ($msg_count) echo "<img src='".THEME."images/bullet.gif'> <b><a href='".BASEDIR."messages.php' class='infobar2'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b>\n";
 echo "</td></tr></table>";
 } else {
 
 echo "<table width='100%' height='20px' border='0' cellspacing='0' cellpadding='0'>
 <tr><td style='color: #555;'>
 <div align='left'>".(isset($loginerror) ? $loginerror : "")."
 <form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']."
 <input type='text' name='user_name' class='textbox2' style='width:60px;'>".$locale['062']."
 <input type='password' name='user_pass' class='textbox2' style='width:60px;'>
 <input type='submit' name='login' value='".$locale['064']."' class='button'>
 <input type='checkbox' class='checkbox2' name='remember_me' value='y' title='".$locale['063']."'> ".$locale['063']."
 </form></div></td><td style='color: #555;'><div align='center'>\n";
 if ($settings['enable_registration']) {
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."register.php' class='white'><font color='#555'>Zarejestruj si?</a>\n";
 }
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."lostpassword.php' class='white'>Zapomniane has?o?</a>
 
 </div></td></tr></table>\n";
 }
 ?>
 
 | 
|  | 
 | 
|  | 
|  wlodekp | Dodany dnia 08.01.2007 23:25:19 | 
|  
 Weteran
 
  
 
 Postów: 3101
 Pomógł: 29
 Data rejestracji: 21.05.2005 22:27
 
 
 | if (iADMIN) .......... 
 <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a> clase i color wstaw swoje
 
 | 
|  | 
 | 
|  | 
| Dagobah | Dodany dnia 08.01.2007 23:34:11 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 160
 Data rejestracji: 15.08.2006 10:46
 
 
 | wlodekp napisa?/a:
if (iADMIN) ..........
 <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a> 
clase i color wstaw swoje 
 Wstawi?em to tak:
 
 
 if (iADMIN) {echo "<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php".$aidlink."' class='white'><b style='color: #555;'>".$locale['083']."</a>\n";
 
 Jednak?e i tak nie chce zalogowa? do PA
 | 
|  | 
 | 
|  | 
|  wlodekp | Dodany dnia 08.01.2007 23:52:36 | 
|  
 Weteran
 
  
 
 Postów: 3101
 Pomógł: 29
 Data rejestracji: 21.05.2005 22:27
 
 
 | if (iADMIN) {echo "<img src='".THEME."images/bullet.gif'><a href='".ADMIN."index.php".$aidlink."' class='white'><span style='color: #FF00FF'><b>".$locale['083']."</b></span></a>\n";
 Edytowane przez wlodekp dnia 08.01.2007 23:54:28
 
 | 
|  | 
 | 
|  | 
| Dagobah | Dodany dnia 08.01.2007 23:56:52 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 160
 Data rejestracji: 15.08.2006 10:46
 
 
 | wlodekp napisa?/a:
if (iADMIN) {echo "<img src='".THEME."images/bullet.gif'><a href='".ADMIN."index.php".$aidlink."' class='white'><span style='color: #FF00FF'><b>".$locale['083']."</b></span></a>\n";
 
 Niestety to równie? nie dzia?a....
 | 
|  | 
 | 
|  | 
|  wlodekp | Dodany dnia 09.01.2007 00:01:40 | 
|  
 Weteran
 
  
 
 Postów: 3101
 Pomógł: 29
 Data rejestracji: 21.05.2005 22:27
 
 
 | to wstaw sobie ca?? sekcj? z panelu u?ytkownika a nie jakie? wynalazki: 
 if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
 }
 echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
 if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
 I ADRES PROSZ?
 Edytowane przez wlodekp dnia 09.01.2007 00:08:59
 
 | 
|  | 
 | 
|  | 
| Pieka | Dodany dnia 09.01.2007 00:19:14 | 
|  
 
  
 
 Postów: 19887
 Pomógł: 767
 
  v7.02.03 Data rejestracji: 23.02.2005 18:12
 
 
 | <?php/*--------------------------------------------+
 | PHP-Fusion 5 - Content Management System |
 |---------------------------------------------|
 | author: Nick Jones (Digitanium) © 2002-2005 |
 | web: http://www.php-fu... |
 | email:  |
 |---------------------------------------------|
 | Released under the terms and conditions of |
 | the GNU General Public License (Version 2) |
 +--------------------------------------------*/
 include LOCALE.LOCALESET."global.php";
 if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
 
 
 if (iMEMBER) {
 echo "<table width='100%' height='20px' border='0' cellspacing='0' cellpadding='0'>
 <tr><td style='color: #555;'>";
 echo "<b style='color: #555;'>Witaj ".$userdata['user_name']." </b>";
 $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'");
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='white'><b style='color: #555;'><font size='1px'>".$locale['081']."</a> ";
 
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php' class='white'><b style='color: #555;'>".$locale['080']."</a>
 <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='white'><b style='color: #555;'>".$locale['082']."</a>\n";
 
 if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
 
 echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>".$locale['083']."</a><br>\n";
 
 }
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."setuser.php?logout=yes' class='white'><b style='color: #555;'>".$locale['084']."</a>\n";
 if ($msg_count) echo "<img src='".THEME."images/bullet.gif'> <b><a href='".BASEDIR."messages.php' class='infobar2'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b>\n";
 echo "</td></tr></table>";
 } else {
 
 echo "<table width='100%' height='20px' border='0' cellspacing='0' cellpadding='0'>
 <tr><td style='color: #555;'>
 <div align='left'>".(isset($loginerror) ? $loginerror : "")."
 <form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']."
 <input type='text' name='user_name' class='textbox2' style='width:60px;'>".$locale['062']."
 <input type='password' name='user_pass' class='textbox2' style='width:60px;'>
 <input type='submit' name='login' value='".$locale['064']."' class='button'>
 <input type='checkbox' class='checkbox2' name='remember_me' value='y' title='".$locale['063']."'> ".$locale['063']."
 </form></div></td><td style='color: #555;'><div align='center'>\n";
 if ($settings['enable_registration']) {
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."register.php' class='white'><font color='#555'>Zarejestruj si?</a>\n";
 }
 echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."lostpassword.php' class='white'>Zapomniane has?o?</a>
 
 </div></td></tr></table>\n";
 }
 ?>
 
 Oraz w theme.php podmien funkcje render_header:
 
 
 function render_header($header_content) {
 
 
 global $theme_width,$settings,$userdata,$aidlink;
 
 Jestem jaki jestem   | 
|  | 
 | 
|  | 
| Dagobah | Dodany dnia 09.01.2007 00:25:08 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 160
 Data rejestracji: 15.08.2006 10:46
 
 
 | wlodekp napisa?/a:to wstaw sobie ca?? sekcj? z panelu u?ytkownika a nie jakie? wynalazki:
 
 Niestety kod, który mi poda?e? nie dzia?a. Stron? poda?em w pierwszym po?cie (tzn. zaedytowa?em posta bo kompletnie o tym zapomnia?em)....
 
 Pieka: DZI?KI - dzia?a bez zarzutu.
 
 Przepraszam za k?opot... a? dziw, ?e z takimi lud?mi jak ja (takiego pokroju) chce si? Wam u?era? :)
 
 T
 | 
|  | 
 | 
|  | 
|  wlodekp | Dodany dnia 09.01.2007 00:29:39 | 
|  
 Weteran
 
  
 
 Postów: 3101
 Pomógł: 29
 Data rejestracji: 21.05.2005 22:27
 
 
 | Pieka jest na bie??co-bo to ma a ja b??dze po omacku-nietrafnie. Fakt by? adres strony. Fajnie, ?e chodzi bo o to tylko chodzi. Ale si? rym?o
 
 | 
|  | 
 | 
|  | 
| Pieka | Dodany dnia 09.01.2007 00:38:16 | 
|  
 
  
 
 Postów: 19887
 Pomógł: 767
 
  v7.02.03 Data rejestracji: 23.02.2005 18:12
 
 
 | Dagobah napisa?/a:
wlodekp napisa?/a:to wstaw sobie ca?? sekcj? z panelu u?ytkownika a nie jakie? wynalazki:
 
Niestety kod, który mi poda?e? nie dzia?a. Stron? poda?em w pierwszym po?cie (tzn. zaedytowa?em posta bo kompletnie o tym zapomnia?em)....
 
Pieka: DZI?KI  - dzia?a bez zarzutu.
 
Przepraszam za k?opot... a? dziw, ?e z takimi lud?mi jak ja (takiego pokroju) chce si? Wam u?era?    
T 
 Powiem Ci cos, co rzadko mowie komus, kto dopiero zaczyna zabawe z Fusionem, co jest zrozumiale ze wzgledu na sredni wiek oraz podejscie do tworzenia strony przecietnego usera.
 Podoba mi sie to, co widze pod podanym adresem: http://profilakty...
 Podoba mi sie chocby dlatego, ze jest inne od reszty i widac tam Twoja inwencje.
 Bede obserwowal rozwoj Twojego projektu
   Edytowane przez Pieka dnia 09.01.2007 00:42:03
 
 Jestem jaki jestem   | 
|  | 
 | 
|  | 
| Dagobah | Dodany dnia 09.01.2007 00:43:15 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 160
 Data rejestracji: 15.08.2006 10:46
 
 
 | Pieka napisa?/a:Powiem Ci cos, co rzadko mowie komus, kto dopiero zaczyna zabawe z Fusionem, co jest zrozumiale ze wzgledu na sredni wiek oraz podejscie do tworzenia strony przecietnego usera.
 Podoba mi sie to, co widze pod podanym adresem.
 Podoba mi sie chocby dlatego, ze jest inne od reszty i widac tam Twoja inwencje.
 Bede obserwowal rozwoj Twojego projektu :)
 
 Cieszy mnie to, ?e moja praca (cho? niewielka) zostaje przez kogo? zauwa?ona. Od dawna chcia?em stworzy? stron?, która w jaki? sposób odbieg?a by od standardowego theme'a (czy te? skórki). Teraz wiem, i? z fusiona mo?na zrobi? portal naprawd? dobry, nie-szablonowy :)
 
 Co do tego serwisu - je?eli interesuje Ci? "jego rozwój" wkrótce podam Ci adres oficjalnej strony - gdzie b?dzie wszystko dopi?te na ostatni guzik...
 Pozdrawiam, jeszcze raz dzi?kuj?c za okazan? cierpliwo?? :)
 | 
|  | 
 | 
|  | 
| Pieka | Dodany dnia 09.01.2007 08:36:56 | 
|  
 
  
 
 Postów: 19887
 Pomógł: 767
 
  v7.02.03 Data rejestracji: 23.02.2005 18:12
 
 
 | Dagobah napisa?/a:Co do tego serwisu - je?eli interesuje Ci? "jego rozwój" wkrótce podam Ci adres oficjalnej strony - gdzie b?dzie wszystko dopi?te na ostatni guzik...
 
 Nie chce Cie martwic, ale ja wlasnie powyzej podalem ten adres
  Zauwazylem, ze YoYo to tylko testowa strona
   
 Jestem jaki jestem   | 
|  | 
 | 
|  | 
| Dagobah | Dodany dnia 09.01.2007 08:41:04 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 160
 Data rejestracji: 15.08.2006 10:46
 
 
 | Pieka napisa?/a:Nie chce Cie martwic, ale ja wlasnie powyzej podalem ten adres   
Zauwazylem, ze YoYo to tylko testowa strona   
 No to mam z g?owy ostateczne zaprezentowanie tamtej strony
    
 Pozdrawiam
 
 Ps. Pieka zajmujesz si? równie? tworzeniem nowych lay'ów podpi?tych pod php-fusion. Szukam kogo?, kto by móg? si? tym ewentualnie zaj??. Z tego co si? dowiedzia?em to jest JazOOn i Sonar...
 | 
|  | 
 | 
|  | 
| Pieka | Dodany dnia 09.01.2007 09:03:05 | 
|  
 
  
 
 Postów: 19887
 Pomógł: 767
 
  v7.02.03 Data rejestracji: 23.02.2005 18:12
 
 
 | Dagobah napisa?/a:
Pieka napisa?/a:Nie chce Cie martwic, ale ja wlasnie powyzej podalem ten adres   
Zauwazylem, ze YoYo to tylko testowa strona   
No to mam z g?owy ostateczne zaprezentowanie tamtej strony      
Pozdrawiam
 
Ps. Pieka zajmujesz si? równie? tworzeniem nowych lay'ów podpi?tych pod php-fusion. Szukam kogo?, kto by móg? si? tym ewentualnie zaj??. Z tego co si? dowiedzia?em to jest JazOOn i Sonar... 
 Wybacz, ale sam sobie jestes winny... Wstawiles do nawigacji link(adres bezwzgledny), zamiast BASEDIR + plik
  Nie robie themow, bo przy moim czesciowym daltonizmie nie mialyby specjalnie wziecia.
 Choc, jak czasami patrze na prace innych to wraca nadzieja
   
 Jestem jaki jestem   | 
|  | 
 | 
|  | 
|  wlodekp | Dodany dnia 09.01.2007 09:30:48 | 
|  
 Weteran
 
  
 
 Postów: 3101
 Pomógł: 29
 Data rejestracji: 21.05.2005 22:27
 
 
 | @Pieka ja te? zapyta?em o adres cho? oba dawno mia?em, ale tyle si? odpowiada-?e u mnie ju? chyba czasami te? wyst?puje daltonizm pami?ci. 
 | 
|  | 
 | 
|  | 
| Dagobah | Dodany dnia 11.01.2007 09:19:34 | 
|  
 Pocz?tkuj?cy
 
  
 
 Postów: 160
 Data rejestracji: 15.08.2006 10:46
 
 
 | ?eby nie zak?ada? nowego tematu pisz? tutaj :) 
 Mam problem nast?puj?cy. U?ywam theme'a grass oraz menu z css (by zszywak). Tzn chce tych obu "elementów" u?ywa? jednak?e ca?y czas co? nie dzia?a. Tzn. Menu rozwijane nie chce si? pojawi? na stronie, a jak ju? jest to i tak rozwala stron?:
 Poni?ej daje kod do theme'a
 Plik, który chc? umie?ci? tam jest includowany ( include THEME."menu.php"; ). Niestety po usuni?ciu menu, które proponuje GRASS strona mi wywala... Macie pomys? gdzie/jak to umie?ci??
 
 Dodam, ?e na innych skórkach to dzia?a... a linijka w theme.php wygl?da nast?puj?co:
 
 
 echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr><td class='white-header'>";include THEME."menu.php";
 echo "</td><td align='right' class='white-header'>".showsubdate()."</td></tr></table>\n";
 
 echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
 
 }
 
 function render_footer($license=false) {
 
 <?// theme settings
 $body_text = "#000000";
 $body_bg = "#ffffff";
 $theme_width = "80%";
 $theme_width_l = "180";
 $theme_width_r = "180";
 
 //The Nature Themes look best with 2 columns.
 //You can enable one side's panels to be switched to the opposite side temporary
 $disable_side = 0; //Disable a Panel column for 2 Column look? (1=left/2=right/0=no) EXPERIMENTAL
 
 //Choose where to display the horizontal navigation
 $topnavi_position = 2; // Position of the horizontal navigation? (1=Above Header/2=below header/3=both/0=off)
 
 //Choose whether you want to show a additional navigation in the footer displaying the links of the top navigation
 $footer_navigation = 0; //Enable the Horizontal Navigation to be shown in the footer, too? (1=yes/0=no)
 
 //Disable the Header if you don't need it, here
 $show_header = 1; //Show the Header? (1=yes/0=no)
 
 //Setting this to 1 will disable the default header background image
 $disable_background = 0; //Disable Background? (1=yes/0=no)
 
 //Descide whether or not to show the date next to the top navigation
 $show_date = 1; //Show date? (1=yes/0=no)
 
 //If this is enabled, the Banner you set in Main Settings will be shown
 //Elsewise the banner.jpg in the Theme folder is displayed
 $default_banner = 0; //Whether or not to use the Banner set in Main Settings (1=yes/0=no)
 
 //Enable this to show a cool CSS-based Rollover Navigation, replacing the default one temporary
 $advanced_navigation = 1; //Fancy Navigation? (1=yes/0=no)
 
 //If you want to have you php-fusion version displayed in the footer, set this to 1
 $show_version = 0; //Show your php-fusion version? (1=yes/0=no)
 
 function render_header($header_content) {
 
 global $theme_width, $settings, $locale, $default_banner, $topnavi_position, $show_header, $navigation_table, $panel_ids, $disable_side, $show_date, $disable_background;
 
 if($disable_side == 1 || $disable_side == 2){
 $panel_query = dbquery("SELECT panel_id FROM ".DB_PREFIX."panels WHERE panel_side = ".($disable_side == 1 ? "1" : "3" )."");
 $panel_ids = array();
 while($panel_id = mysql_fetch_row($panel_query))
 array_push($panel_ids, $panel_id[0]);
 
 dbquery("UPDATE ".DB_PREFIX."panels SET panel_side = ".($disable_side == 1 ? "3" : "1" )." WHERE panel_side = ".($disable_side == 1 ? "1" : "3" )."");
 }
 
 if($show_header == 1){
 $header_table = "
 <table width='100%' cellspacing='0' cellpadding='0'>
 <tr>
 <td>
 <table width='100%' cellspacing='0' cellpadding='0'>
 <tr>
 <td class='full-header' ".($disable_background == 1 ? "style='background-image:none;'" : "").">";
 if($default_banner == 1)
 $header_table .= $header_content;
 else
 $header_table .= "<img src='".THEME."banner.jpg' alt='".$settings['sitename']."'>";
 $header_table .="</td>
 </tr>
 </table>
 </td>
 </tr>
 </table>\n";
 }else{
 $header_table = "";
 }
 
 $navigation_table =
 "<table width='100%' cellspacing='0' cellpadding='0'>
 <tr>
 [color=red]<td class='white-header'>\n";
 $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
 if (dbrows($result) != 0) {
 $i = 0;
 while($data = dbarray($result)) {
 if (checkgroup($data['link_visibility'])) {
 if ($data['link_url']!="---") {
 if ($i != 0) { $navigation_table .= " ·\n"; } else { $navigation_table .= "\n"; }
 $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
 if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
 $navigation_table .= "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
 } else {
 $navigation_table .= "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";[/color]
 }
 }
 $i++;
 }
 }
 }
 $navigation_table .= ($i == 0 ? " " : "")."</td>";
 if($show_date == 1)
 $navigation_table .= "<td align='right' class='white-header' style='padding-right:6px;'>".ucwords(showdate("longdate", time()))."</td>";
 $navigation_table .= "
 </tr>
 </table>\n";
 
 echo "
 <table style='margin:0px auto' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
 <tr>
 <td align='right'><img src='".THEME."images/cornerlefttop.jpg' alt=' '></td>
 
 <td style='background-image: url(".THEME."images/bordertop.jpg); background-repeat: repeat-x;'></td>
 
 <td><img src='".THEME."images/cornerrighttop.jpg' alt=' '></td>
 </tr>
 <tr>
 <td style='background-image: url(".THEME."images/borderleft.jpg); background-repeat: repeat-y; background-position: right; width: 10px;' align='right'> </td>
 <td>
 <table width='100%' class='border' cellspacing='0' cellpadding='0'>
 <tr>
 <td valign='top'>";
 if($topnavi_position == 0)
 echo $header_table;
 elseif($topnavi_position == 1)
 echo $navigation_table.$header_table;
 elseif($topnavi_position == 3)
 echo $navigation_table.$header_table.$navigation_table;
 elseif($topnavi_position == 2)
 echo $header_table.$navigation_table;
 
 
 echo "<table width='100%' cellspacing='0' cellpadding='0'>
 <tr>\n";
 
 }
 
 function render_footer($license=false) {
 
 global $theme_width, $settings, $locale, $footer_navigation, $show_version, $panel_ids, $disable_side;
 
 echo "
 </tr>
 </table>\n";
 if($footer_navigation == 1){
 echo"
 <table width='100%' cellspacing='0' cellpadding='0'>
 <tr>
 <td class='white-header'>";include THEME."menu.php";echo "</td>
 </table>\n";
 }
 
 
 echo "
 <table cellpadding='0' cellspacing='0' width='100%'>
 <tr>
 <td>".stripslashes($settings['footer'])."</td>
 </tr>
 <tr>
 <td align='center' style='padding-bottom:5px;'>
 ".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br>\n" : $locale['141']."<br>\n");
 if ($license == false) {
 echo "Powered by <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion</a> ".($show_version == 1 ? "v".$settings['version']." ©" : "" )."2003-2005 and\n";
 }
 echo "<a href='http://matonor.de/'>Matonor.de</a>";
 echo "</td>
 </tr>
 </table>
 
 </td>
 </tr>
 </table>
 </td>
 <td align='left' style='background-image: url(".THEME."images/borderright.jpg); background-repeat: repeat-y; width: 10px;'> </td>
 </tr>
 <tr>
 <td>
 <img src='".THEME."images/cornerleftbottom.jpg' alt=' '>
 </td>
 
 <td style='background-image: url(".THEME."images/borderbottom.jpg);  background-repeat: repeat-x;'>
 </td>
 
 <td>
 <img src='".THEME."images/cornerrightbottom.jpg' alt=' '>
 </td>
 </tr>
 </table>\n";
 if($disable_side == 1 || $disable_side == 2){
 foreach($panel_ids as $panel_id){
 dbquery("UPDATE ".DB_PREFIX."panels SET panel_side = ".($disable_side == 1 ? "1" : "3" )." WHERE panel_id = ".$panel_id."");
 }
 }
 }
 
 function render_news($subject, $news, $info) {
 
 global $locale;
 
 echo "<table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='capmain'>$subject</td>
 </tr>
 <tr>
 <td>
 <span class='news-date'><a class='news' href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."</span>
 </td>
 </tr>
 </table>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='main-body'>
 $news
 </td>
 </tr>
 </table>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='news-date'>\n";
 if ($info['news_ext'] == "y") echo "<a class='news' href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n";
 if ($info['news_allow_comments']) echo "<a class='news' href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n";
 echo $info['news_reads'].$locale['044']." · <a class='news' href='print.php?type=N&item_id=".$info['news_id']."'>".$locale['045']."</a>";
 
 if (checkrights("N"))
 echo" · <form style='display:inline' name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php?news_id=".$info['news_id']."'><input type='hidden' name='edit' value='edit'><a class='news' href='javascript:document.editnews".$info['news_id'].".submit();'>".$locale['048']."</a></form>
 ";
 
 echo"
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </table>\n";
 
 }
 
 function render_article($subject, $article, $info) {
 
 global $locale;
 
 echo "<table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='capmain'>$subject</td>
 </tr>
 <tr>
 <td>
 <span class='news-date'><a class='news' href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['article_date'])."</span>
 </td>
 </tr>
 </table>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='main-body'>
 ".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
 </td>
 </tr>
 </table>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='news-date'>\n";
 if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n";
 echo $info['article_reads'].$locale['044']."
 · <a class='news' href='print.php?type=A&item_id=".$info['article_id']."'>".$locale['045']."</a>";
 
 echo"
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </table>\n";
 
 }
 
 function opentable($title) {
 
 echo "<table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='capmain'>$title</td>
 </tr>
 </table>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='main-body'>\n";
 
 }
 
 function closetable() {
 
 echo "</td>
 </tr>
 </table>
 </td>
 </tr>
 </table>\n";
 
 }
 
 function openside($title) {
 global $advanced_navigation, $navigation_hidden, $p_data;
 echo "
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='scapmain'>$title</td>
 </tr>
 </table>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='side-body'>\n";
 if($advanced_navigation == 1 AND $p_data['panel_filename'] == 'navigation_panel'){
 $query = dbquery("SELECT * FROM `".DB_PREFIX."panels` WHERE panel_name ='".$title."'");
 if(dbrows($query) != 0){
 $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position<='2' ORDER BY link_order");
 while($data = dbarray($result)) {
 if (checkgroup($data['link_visibility'])) {
 if ($data['link_name'] != "---" && $data['link_url'] == "---") {
 echo "
 <div class='side-label2'><b>".$data['link_name']."</b></div>\n";
 } else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
 echo "
 <hr class='side-hr2'>\n";
 } else {
 $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
 if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
 echo "
 <a href='".$data['link_url']."'".$link_target." class='navigation'>".$data['link_name']."</a><br>\n";
 } else {
 echo "
 <a href='".BASEDIR.$data['link_url']."'".$link_target." class='navigation'>".$data['link_name']."</a><br>\n";
 }
 }
 }
 }
 
 echo "<div style='position: absolute; top:5px; height: 1px; width:1px; overflow:hidden;'>";
 $navigation_hidden = 1;
 }
 }
 
 }
 
 function closeside() {
 global $navigation_hidden , $advanced_navigation;
 if($advanced_navigation == 1){
 if($navigation_hidden == 1){
 echo "</div>";
 $navigation_hidden = 0;
 }
 }
 echo "</td>
 </tr>
 </table>\n";
 tablebreak();
 
 }
 
 function opensidex($title,$open="on") {
 
 if($open=="on"){$box_img="off";}else{$box_img="on";}
 echo "<table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='scapmain'>$title</td>
 <td class='scapmain' align='right'>
 <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>
 </td>
 </tr>
 </table>
 <table width='100%' cellpadding='0' cellspacing='0'>
 <tr>
 <td class='side-body'>
 <div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
 
 }
 
 function closesidex() {
 
 echo "</div>
 </td>
 </tr>
 </table>\n";
 tablebreak();
 
 }
 
 function tablebreak() {
 
 echo "<table width='100%' cellspacing='0' cellpadding='0'>
 <tr>
 <td height='8'></td>
 </tr>
 </table>\n";
 
 }
 ?>
 
 | 
|  | 
 | 
|  | 
| Pieka | Dodany dnia 11.01.2007 15:24:22 | 
|  
 
  
 
 Postów: 19887
 Pomógł: 767
 
  v7.02.03 Data rejestracji: 23.02.2005 18:12
 
 
 | Przerabialem temat grass vs nawigacja js..... Malo mnie szlag nie trafil. Rozwiazan jest kilka, ale najlepszym jest usuniecie wiekszosci lub wszystkich bajerkow Matonora.
 Bylbym wdzieczny, gdybys nie pisal w temacie dotyczacym jednej rzeczy o drugiej, w dodatku zdecydowanie innej.
 Jak ludzie maja pozniej cos znalezc na forum, skoro tak robicie??? Sami sobie gotujecie los, ktory pozniej jest pisany czesci userow.
 
 Jestem jaki jestem   | 
|  | 
 |