Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Bład przy includowaniu w extreme-fusion.
Forum PHP.pl > Forum > Gotowe rozwiązania > Systemy portalowe i CMS'y
andegrand2
Witam!

Zainstalowałem sobie extreme-fusion na moim serwie i wgrałem thema z grafa.biz. Potrzebuje w nim wstawić statystyki serwerów radia. Próbowałem już chyba każdej kombinacji include i require ale za kazdy razem wyzuca mi błąd.

Oto kod gdzie chce wstawic staty strona jest na stacja24.org:

  1. <?php
  2. <table border=&#092;"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  3.  
  4. <tr>
  5. <td background=&#092;"".THEME."images/radio_orange_19.gif\" width=\"211\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"><div style=\"padding-left: 20px; padding-right: 2px; padding-bottom: 20px\">Jakieś statystyki...</div></td>
  6. ?>


Proszę o pomoc pozdrawiam,
Keenic
Moze by tak tresc tego bledu? Z tego co wiem to nikt nie jest tutaj wrozka no chyba, ze sie myle.
andegrand2
Sorry zapomniałem wpisać tongue.gif
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/pc-gielda/ftp/radio/radyjko/themes/radiofm_orange/theme.php on line 177


Odświeżam
Keenic
Podaj jeszcze ten kod, ktory chcesz wkleic
andegrand2
Próbowałem tak:

<include ("xxx.php");>
[INCLUDES. 'xxx.php'];
daris
Spróbuj
Kod
<? include xxx.php ?>
andegrand2
Niestety tym razem wyskoczylo takie cos: Parse error: syntax error, unexpected $end in /home/pc-gielda/ftp/radio/radyjko/themes/radiofm_orange/theme.php on line 119
Keenic
  1. <?php
  2. echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">";
  3. include ("xxx.php");
  4. echo "<tr>
  5. <td background=\"".THEME."images/radio_orange_19.gif\" width=\"211\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"><div style=\"padding-left: 20px; padding-right: 2px; padding-bottom: 20px\">Jakieś statystyki...</div></td>";
  6. ?>
andegrand2
  1. <?php
  2. <table border=&#092;"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  3.  
  4. <tr>
  5. echo "<td background=\"".THEME."images/radio_orange_19.gif\" width=\"211\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"><div style=\"padding-left: 20px; padding-right: 2px; padding-bottom: 20px\">";
  6. include ("status.php");
  7. echo "</div></td>
  8. ?>


Wpisałem tak i wyżuciło mi Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/pc-gielda/ftp/radio/radyjko/themes/radiofm_orange/theme.php on line 180


Keenic
Zle wkleiles ten kod co Ci podalem. Wklej go tak
  1. <?php
  2. echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  3. <tr>
  4. <td background=\"".THEME."images/radio_orange_19.gif\" width=\"211\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"><div style=\"padding-left: 20px; padding-right: 2px; padding-bottom: 20px\">";
  5. include ("status.php");
  6. echo "</div></td>
  7. ?>
andegrand2
wpisane mam dokłądnie tak ja mi teraz wysłałeś czyli:

  1. <?php
  2. echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  3. <tr>
  4. <td background=\"".THEME."images/radio_orange_19.gif\" width=\"211\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtow]\"><div style=\"padding-left: 20px; padding-right: 2px; padding-bottom: 20px\">";
  5. include ("status.php");
  6. echo "</div></td>
  7. ?>


i wyzuca mi to : Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/pc-gielda/ftp/radio/radyjko/themes/radiofm_orange/theme.php on line 177

Nie mam pojęcia czemu sad.gif
Keenic
Ktora to ta linia 177? Bo moze blad jest gdzies wczesniej.
andegrand2
to jest linia 177:

  1. <?php
  2. echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  3. ?>
Keenic
Pokaz wiekszy fragment kodu, tak z 10 linijek przed i 10 po.
andegrand2
proszę bardzo smile.gif a tutaj masz cały kod: http://pc-gielda.nazwa.pl/radio/theme.txt
  1. <?php
  2. <input type='submit' name='login' value='Loguj' class='loguj' ><br><br>
  3. </form>
  4.  
  5. &#092;n";
  6.  
  7. if ($settings['enable_registration']) {
  8.  
  9. echo "<a href='".BASEDIR."register.php' class='text'>Rejestracja</a> / \n";
  10.  
  11. }
  12.  
  13. echo "<a href='".BASEDIR."lostpassword.php' class='text'>Zgubione hasło</a>
  14.  
  15. </div>\n";
  16.  
  17. }
  18. closesidel();
  19.  
  20.  
  21.  
  22.  
  23. echo "</div></td>
  24. <td> <img src=\"".THEME."images/radio_orange_07.gif\" width=\"584\" height=\"247\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></td>
  25.  
  26.  
  27.  
  28.  
  29. </tr></table>
  30. <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  31.  
  32. <tr>
  33. <td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_08.gif\" width=\"163\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  34. <td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_09.gif\" width=\"89\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  35. <td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_10.gif\" width=\"135\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  36. <td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_11.gif\" width=\"110\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  37. <td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_12.gif\" width=\"91\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  38. <td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_13.gif\" width=\"123\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  39. <td> <a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/radio_orange_14.gif\" width=\"115\" height=\"48\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  40.  
  41.  
  42. </tr></table>
  43. <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  44.  
  45. <tr>
  46. <td> <a href=\"".BASEDIR."play.php\"><img src=\"".THEME."images/radio_orange_15.gif\" width=\"211\" height=\"53\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  47. <td> <a href=\"".BASEDIR."play.php\"><img src=\"".THEME."images/radio_orange_16.gif\" width=\"203\" height=\"53\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  48. <td> <a href=\"".BASEDIR."play.php\"><img src=\"".THEME."images/radio_orange_17.gif\" width=\"200\" height=\"53\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  49. <td><a href=\"".BASEDIR."play.php\"> <img src=\"".THEME."images/radio_orange_18.gif\" width=\"212\" height=\"53\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"></a></td>
  50.  
  51.  
  52.  
  53. </tr></table>
  54.  
  55. echo "<table border=&#092;"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  56. <tr>
  57. <td background=&#092;"".THEME."images/radio_orange_19.gif\" width=\"211\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtow]\"><div style=\"padding-left: 20px; padding-right: 2px; padding-bottom: 20px\">";
  58. include ("status.php");
  59. echo "</div></td>
  60. <td background=\"".THEME."images/radio_orange_20.gif\" width=\"203\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"><div style=\"padding-left: 12px; padding-right: 2px; padding-bottom: 20px\">Jakies staty</div></td>
  61.  
  62. <td background=\"".THEME."images/radio_orange_21.gif\" width=\"200\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"><div style=\"padding-left: 10px; padding-right: 2px; padding-bottom: 20px\">Jakies staty</div></td>
  63.  
  64. <td background=\"".THEME."images/radio_orange_22.gif\" width=\"212\" height=\"231\" border=\"0\" alt=\"[Rozmiar: 846 bajtĂłw]\"><div style=\"padding-left: 15px; padding-right: 2px; padding-bottom: 20px\">Jakies staty</div></td>
  65.  
  66.  
  67.  
  68. </tr></table>
  69.  
  70.  
  71. </td>
  72. </tr>
  73. <tr></tr>
  74. <tr>
  75. <td>\n";
  76.  
  77. echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"826\">
  78. <tr>\n";
  79.  
  80. }
  81.  
  82. function render_footer($license=false) {
  83.  
  84. global $theme_width,$settings;
  85.  
  86. echo "</tr>\n</table>\n";
  87. echo "<table cellpadding='0' align='center' cellspacing='0' width='$theme_width'>
  88. <tr>
  89. <td background='".THEME."images/radio_orange_31.gif'width=\"826\" height=\"42\" border=\"0\" align='center' class='side'>".stripslashes($settings['footer'])."
  90. Powered by: <a href='http://php-fusion.co.uk' target='_blank'>PHP-fusion </a> & <a href='http://extreme-fusion.pl/' target='_blank'>eXtreme-fusion</a> | <a href='http://okna.eu.pl/news.php' target='_blank'>Okna</a> | Desing & themes -<a href='http://www.grafa.biz' target='_blank'>Grafa.biz Team</a></small>
  91. ?>
Keenic
Usun echo oraz " (cudzyslow) w tej linijce, gdzie wystepuje blad czyli 177.
andegrand2
usunołem i teraz strona ładuje się ładuje, ładuje i nic sad.gif stacja24.org sam zobacz...
Keenic
Zaladowala mi sie ta strona. Moze masz cos z serwerem, ze tak dlugo laduje?

Ew. moze sie tak dlugo ladowac przez blad tego pliku, ktory includujesz.
andegrand2
Ok już sobie daję rade smile.gif Dzięki wielkie za pomoc !

Pozdrawiam,
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.