Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP]Wywoływanie zawartości w div-e
Forum PHP.pl > Forum > Przedszkole
Diego22

Witam,
Chce zbudować własny panel 3 blokowy , czy mógłby mi ktoś napisać jak mogę wywołać zawartość panelu np ostatnio na forum aby było to w konkretnym div-e obecny kod mam taki:

Kod
echo"<div class='statystyki'>
         <div class='statystyki1'><br><br><br><br>
Lolek: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxx'></script>
</div>
                        <div></div>
                        <div class='statystyki3'>gg</div>

        

</div>\n";
b4rt3kk
Szczerze mówiąc to nie wiem w czym problem. Tworzysz zapytanie wybierające temat (może datę, treść) ostatniego posta na forum, czy tam może kilku, do wyboru, do koloru i zwyczajnie wyświetlasz wyniki opakowując to w <div>...</div>
Diego22
Popatrz na to że zrobiłem 3 blokowy div w każdym bloku chce dać coś innego w jednym z nich chce dac np wtyczkę z php-fusion np ostatnio na stronie aby to wyświetlało w bloku w moim kodzie a nie w nowym panelu rozumiesz?

tutaj kod panelu
Kod
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: forum_threads_list_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

global $lastvisited;

if (!isset($lastvisited) || !isnum($lastvisited)) { $lastvisited = time(); }

$data = dbarray(dbquery(
    "SELECT tt.thread_lastpost
    FROM ".DB_FORUMS." tf
    INNER JOIN ".DB_THREADS." tt ON tf.forum_id = tt.forum_id
    WHERE ".groupaccess('tf.forum_access')." AND thread_hidden='0'
    ORDER BY tt.thread_lastpost DESC LIMIT ".($settings['numofthreads']-1).", ".$settings['numofthreads']
));

$timeframe = empty($data['thread_lastpost']) ? 0 : $data['thread_lastpost'];

$result = dbquery(
    "SELECT tt.thread_id, tt.thread_subject, tt.thread_views, tt.thread_lastuser, tt.thread_lastpost,
    tt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tt.thread_postcount, tu.user_id, tu.user_name,
    tu.user_status
    FROM ".DB_THREADS." tt
    INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
    INNER JOIN ".DB_USERS." tu ON tt.thread_lastuser=tu.user_id
    WHERE ".groupaccess('tf.forum_access')." AND tt.thread_lastpost >= ".$timeframe." AND tt.thread_hidden='0'
    ORDER BY tt.thread_lastpost DESC LIMIT 0,".$settings['numofthreads']
);

if (dbrows($result)) {
    $i = 0;
    opentable($locale['global_040']);
    echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
    echo "<td class='tbl2'>&nbsp;</td>\n";
    echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
    echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_045']."</strong></td>\n";
    echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_046']."</strong></td>\n";
    echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_047']."</strong></td>\n";
    echo "</tr>\n";
    while ($data = dbarray($result)) {
        $row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
        echo "<tr>\n<td class='".$row_color."'>";
        if ($data['thread_lastpost'] > $lastvisited) {
            $thread_match = $data['thread_id']."\|".$data['thread_lastpost']."\|".$data['forum_id'];
            if (iMEMBER && ($data['thread_lastuser'] == $userdata['user_id'] || preg_match("(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)", $userdata['user_threads']))) {
                echo "<img src='".get_image("folder")."' alt='' />";
            } else {
                echo "<img src='".get_image("foldernew")."' alt='' />";
            }
        } else {
            echo "<img src='".get_image("folder")."' alt='' />";
        }
        if ($data['thread_poll']) {
            $thread_poll = "<span class='small' style='font-weight:bold'>[".$locale['global_051']."]</span> ";
        } else {
            $thread_poll = "";
        }
        echo "</td>\n";
        echo "<td width='100%' class='".$row_color."'>".$thread_poll."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a><br />\n".$data['forum_name']."</td>\n";
        echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".$data['thread_views']."</td>\n";
        echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".($data['thread_postcount']-1)."</td>\n";
        echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
        echo "</tr>\n";
        $i++;
    }
    echo "</table>\n";
    if (iMEMBER) {
        echo "<div class='tbl1' style='text-align:center'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a> ::\n";
        echo "<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a> ::\n";
        echo "<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['global_043']."</a>";
        if($settings['thread_notify']) {
            echo " ::\n<a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php'>".$locale['global_056']."</a>";
        }
        echo "</div>\n";
    }
    closetable();
}
?>


czyli aby ten panel był wyświetlany w moim div-e
b4rt3kk
Oczywiście ja to rozumiem.

  1. echo"<div class='statystyki'>
  2. <div class='statystyki1'><br><br><br><br>
  3. Lolek: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxx'></script>
  4. </div>
  5. <div>chcesz cos umiescic powiedzmy tutaj</div>
  6. <div class='statystyki3'>gg</div>
  7.  
  8.  
  9.  
  10. </div>\n";


Więc musisz tak przerobić gotowy już skrypt, by wyniki wyświetlało w Twoim divie. Przeczytaj dokładnie skrypt, zobacz w którym miejscu wyświetla informacje, jakie i w jaki sposób. Podpowiem żebyś szukał echo, a pierwsze dwa wyróżnione akapity to generowanie zapytania. Teraz powinno być już z górki.
Diego22
hmmm:
To pewnie jest tylko sam wygląd panelu i jego struktura :
Kod
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
    echo "<td class='tbl2'> </td>\n";
    echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
    echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_045']."</strong></td>\n";
    echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_046']."</strong></td>\n";
    echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_047']."</strong></td>\n";
    echo "</tr>\n";
    while ($data = dbarray($result)) {
        $row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
        echo "<tr>\n<td class='".$row_color."'>";
        if ($data['thread_lastpost'] > $lastvisited) {
            $thread_match = $data['thread_id']."\|".$data['thread_lastpost']."\|".$data['forum_id'];
            if (iMEMBER && ($data['thread_lastuser'] == $userdata['user_id'] || preg_match("(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)", $userdata['user_threads']))) {
                echo "<img src='".get_image("folder")."' alt='' />";
            } else {
                echo "<img src='".get_image("foldernew")."' alt='' />";
            }
        } else {
            echo "<img src='".get_image("folder")."' alt='' />";
        }
        if ($data['thread_poll']) {
            $thread_poll = "<span class='small' style='font-weight:bold'>[".$locale['global_051']."]</span> ";
        } else {
            $thread_poll = "";
        }
        echo "</td>\n";
        echo "<td width='100%' class='".$row_color."'>".$thread_poll."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a><br />\n".$data['forum_name']."</td>\n";
        echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".$data['thread_views']."</td>\n";
        echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".($data['thread_postcount']-1)."</td>\n";
        echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
        echo "</tr>\n";
        $i++;
    }
    echo "</table>\n";
    if (iMEMBER) {
        echo "<div class='tbl1' style='text-align:center'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a> ::\n";
        echo "<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a> ::\n";
        echo "<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['global_043']."</a>";
        if($settings['thread_notify']) {
            echo " ::\n<a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php'>".$locale['global_056']."</a>";
        }
        echo "</div>\n";

To powższe if itp pewnie wywołuje treść tylko jak to połączyć by działało w theme.php ? w div-e Pokazał byś mi na tym przykład ? 2 panel spróbóję już sam smile.gif
b4rt3kk
Jak wrzucisz cały kod do jakiejś funkcji:

  1. <?php
  2.  
  3. function wyswietl() {
  4.  
  5. /*-------------------------------------------------------+
  6. | PHP-Fusion Content Management System
  7. | Copyright (C) 2002 - 2011 Nick Jones
  8. +--------------------------------------------------------+
  9. | Filename: forum_threads_list_panel.php
  10. | Author: Nick Jones (Digitanium)
  11. +--------------------------------------------------------+
  12. | This program is released as free software under the
  13. | Affero GPL license. You can redistribute it and/or
  14. | modify it under the terms of this license which you
  15. | can read by viewing the included agpl.txt or online
  16. | at www.gnu.org/licenses/agpl.html. Removal of this
  17. | copyright header is strictly prohibited without
  18. | written permission from the original author(s).
  19. +--------------------------------------------------------*/
  20. if (!defined("IN_FUSION")) { die("Access Denied"); }
  21.  
  22. global $lastvisited;
  23.  
  24. if (!isset($lastvisited) || !isnum($lastvisited)) { $lastvisited = time(); }
  25.  
  26. $data = dbarray(dbquery(
  27. "SELECT tt.thread_lastpost
  28. FROM ".DB_FORUMS." tf
  29. INNER JOIN ".DB_THREADS." tt ON tf.forum_id = tt.forum_id
  30. WHERE ".groupaccess('tf.forum_access')." AND thread_hidden='0'
  31. ORDER BY tt.thread_lastpost DESC LIMIT ".($settings['numofthreads']-1).", ".$settings['numofthreads']
  32. ));
  33.  
  34. $timeframe = empty($data['thread_lastpost']) ? 0 : $data['thread_lastpost'];
  35.  
  36. $result = dbquery(
  37. "SELECT tt.thread_id, tt.thread_subject, tt.thread_views, tt.thread_lastuser, tt.thread_lastpost,
  38. tt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tt.thread_postcount, tu.user_id, tu.user_name,
  39. tu.user_status
  40. FROM ".DB_THREADS." tt
  41. INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
  42. INNER JOIN ".DB_USERS." tu ON tt.thread_lastuser=tu.user_id
  43. WHERE ".groupaccess('tf.forum_access')." AND tt.thread_lastpost >= ".$timeframe." AND tt.thread_hidden='0'
  44. ORDER BY tt.thread_lastpost DESC LIMIT 0,".$settings['numofthreads']
  45. );
  46.  
  47. if (dbrows($result)) {
  48. $i = 0;
  49. opentable($locale['global_040']);
  50. echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
  51. echo "<td class='tbl2'>&nbsp;</td>\n";
  52. echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
  53. echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_045']."</strong></td>\n";
  54. echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_046']."</strong></td>\n";
  55. echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_047']."</strong></td>\n";
  56. echo "</tr>\n";
  57. while ($data = dbarray($result)) {
  58. $row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
  59. echo "<tr>\n<td class='".$row_color."'>";
  60. if ($data['thread_lastpost'] > $lastvisited) {
  61. $thread_match = $data['thread_id']."\|".$data['thread_lastpost']."\|".$data['forum_id'];
  62. if (iMEMBER && ($data['thread_lastuser'] == $userdata['user_id'] || preg_match("(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)", $userdata['user_threads']))) {
  63. echo "<img src='".get_image("folder")."' alt='' />";
  64. } else {
  65. echo "<img src='".get_image("foldernew")."' alt='' />";
  66. }
  67. } else {
  68. echo "<img src='".get_image("folder")."' alt='' />";
  69. }
  70. if ($data['thread_poll']) {
  71. $thread_poll = "<span class='small' style='font-weight:bold'>[".$locale['global_051']."]</span> ";
  72. } else {
  73. $thread_poll = "";
  74. }
  75. echo "</td>\n";
  76. echo "<td width='100%' class='".$row_color."'>".$thread_poll."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a><br />\n".$data['forum_name']."</td>\n";
  77. echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".$data['thread_views']."</td>\n";
  78. echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".($data['thread_postcount']-1)."</td>\n";
  79. echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
  80. echo "</tr>\n";
  81. $i++;
  82. }
  83. echo "</table>\n";
  84. if (iMEMBER) {
  85. echo "<div class='tbl1' style='text-align:center'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a> ::\n";
  86. echo "<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a> ::\n";
  87. echo "<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['global_043']."</a>";
  88. if($settings['thread_notify']) {
  89. echo " ::\n<a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php'>".$locale['global_056']."</a>";
  90. }
  91. echo "</div>\n";
  92. }
  93. closetable();
  94. }
  95.  
  96. }
  97. ?>


a później zrobisz tak:

  1. echo '<div>';
  2. wyswietl();
  3. echo '</div>';


To też będzie działać. Jeśli znasz HTML i PHP chociaż na poziomie podstawowym to zauważ, co robi ten Twój skrypt, przeanalizuj każdą linijkę echo i wywalaj to co Ci niepotrzebne, chociażby tabelki, zostawiaj tylko zmienne php (zaczynające się od $), pętle (while) i warunki (if), ogólnie rzecz biorąc wyczyść go z niepotrzebnego HTMLa.
Diego22
jak dałem tak do theme.php(kawałek kodu)

Kod
    function openside($title, $collapse = false, $state = "on") {
    
    global $panel_collapse;
    $panel_collapse = $collapse;
    
    $boxname = str_replace(" ", "", $title);
    echo "<table cellpadding='0' cellspacing='0' width='100%' class='border tablebreak'>
    <tr>
    ".($collapse ? "<td class='scapmain' align='center'>".panelbutton($state, $boxname)."</td>" : "")."
    </tr>
    <tr>
    <td class='scapmain'>".$title."</td>
    
    </tr>
    <tr>
    <td class='side-body'><br />";
    if ($collapse == true) { echo panelstate($state, $boxname); }
    }
    
    function closeside() {
    
    global $panel_collapse;
    
    if ($panel_collapse == true) { echo "</div>\n"; }
    echo "<br />
    </td>
    </tr>
    </table>\n";
    
    }

function wyswietl() {

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: forum_threads_list_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

global $lastvisited;

if (!isset($lastvisited) || !isnum($lastvisited)) { $lastvisited = time(); }

$data = dbarray(dbquery(
"SELECT tt.thread_lastpost
FROM ".DB_FORUMS." tf
INNER JOIN ".DB_THREADS." tt ON tf.forum_id = tt.forum_id
WHERE ".groupaccess('tf.forum_access')." AND thread_hidden='0'
ORDER BY tt.thread_lastpost DESC LIMIT ".($settings['numofthreads']-1).", ".$settings['numofthreads']
));

$timeframe = empty($data['thread_lastpost']) ? 0 : $data['thread_lastpost'];

$result = dbquery(
"SELECT tt.thread_id, tt.thread_subject, tt.thread_views, tt.thread_lastuser, tt.thread_lastpost,
tt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tt.thread_postcount, tu.user_id, tu.user_name,
tu.user_status
FROM ".DB_THREADS." tt
INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
INNER JOIN ".DB_USERS." tu ON tt.thread_lastuser=tu.user_id
WHERE ".groupaccess('tf.forum_access')." AND tt.thread_lastpost >= ".$timeframe." AND tt.thread_hidden='0'
ORDER BY tt.thread_lastpost DESC LIMIT 0,".$settings['numofthreads']
);

if (dbrows($result)) {
$i = 0;
opentable($locale['global_040']);
echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n<tr>\n";
echo "<td class='tbl2'>&nbsp;</td>\n";
echo "<td width='100%' class='tbl2'><strong>".$locale['global_044']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_045']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_046']."</strong></td>\n";
echo "<td width='1%' class='tbl2' style='text-align:center;white-space:nowrap'><strong>".$locale['global_047']."</strong></td>\n";
echo "</tr>\n";
while ($data = dbarray($result)) {
$row_color = ($i % 2 == 0 ? "tbl1" : "tbl2");
echo "<tr>\n<td class='".$row_color."'>";
if ($data['thread_lastpost'] > $lastvisited) {
$thread_match = $data['thread_id']."\|".$data['thread_lastpost']."\|".$data['forum_id'];
if (iMEMBER && ($data['thread_lastuser'] == $userdata['user_id'] || preg_match("(^\.{$thread_match}$|\.{$thread_match}\.|\.{$thread_match}$)", $userdata['user_threads']))) {
echo "<img src='".get_image("folder")."' alt='' />";
} else {
echo "<img src='".get_image("foldernew")."' alt='' />";
}
} else {
echo "<img src='".get_image("folder")."' alt='' />";
}
if ($data['thread_poll']) {
$thread_poll = "<span class='small' style='font-weight:bold'>[".$locale['global_051']."]</span> ";
} else {
$thread_poll = "";
}
echo "</td>\n";
echo "<td width='100%' class='".$row_color."'>".$thread_poll."<a href='".FORUM."viewthread.php?thread_id=".$data['thread_id']."&amp;pid=".$data['thread_lastpostid']."#post_".$data['thread_lastpostid']."' title='".$data['thread_subject']."'>".trimlink($data['thread_subject'], 30)."</a><br />\n".$data['forum_name']."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".$data['thread_views']."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".($data['thread_postcount']-1)."</td>\n";
echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";
echo "</tr>\n";
$i++;
}
echo "</table>\n";
if (iMEMBER) {
echo "<div class='tbl1' style='text-align:center'><a href='".INFUSIONS."forum_threads_list_panel/my_threads.php'>".$locale['global_041']."</a> ::\n";
echo "<a href='".INFUSIONS."forum_threads_list_panel/my_posts.php'>".$locale['global_042']."</a> ::\n";
echo "<a href='".INFUSIONS."forum_threads_list_panel/new_posts.php'>".$locale['global_043']."</a>";
if($settings['thread_notify']) {
echo " ::\n<a href='".INFUSIONS."forum_threads_list_panel/my_tracked_threads.php'>".$locale['global_056']."</a>";
}
echo "</div>\n";
}
closetable();
}

}
    
    function tablebreak() {
    
    echo "<table cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td height='8'></td>
    </tr>
    </table>\n";
    
    }
    
    ?>


to mam błąd na www taki:Fatal error: Call to undefined function check_panel_status() in /home/rfleague/public_html/themes/templates/panels.php on line 59
dr_NO
1) Wstawiaj kod w tagi php
2) Gdzieś się odwołujesz (nie w tym kawałku kodu) do funkcji check_panel_status() której parser nie potrafi znaleźć.
Diego22
tagi mam na początku i na końcu theme.php a odowołuje się do :
Kod
    echo '<div>';
    wyswietl();
    echo '</div>';


Ale nadal nie działa ;/



tak dałem div:
Kod
echo"<div class='statystyki'>
            <div class='statystyki1'>

Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script><br>

Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
</div>
                          <div class='statystyki2'>
    wyswietl();
    </div>
                        <div class='statystyki3'></div>

            


</div>";

ale w panelu jest tylko napis wyswietl(); i nic więcej
b4rt3kk
  1. echo"<div class='statystyki'>
  2. <div class='statystyki1'>
  3.  
  4. Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
  5. Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
  6. Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script><br>
  7.  
  8. Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
  9. Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
  10. Nicker: <script type='text/javascript' src='http://404bajery.pl/gg/gg.php?style=5&gg=xxxxxx'></script>
  11. </div>
  12. <div class='statystyki2'>";
  13. wyswietl();
  14. echo "</div>
  15. <div class='statystyki3'></div>
  16.  
  17.  
  18.  
  19.  
  20. </div>";


spróbuj tak.
Diego22
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1,' at line 5You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8

błąd taki
b4rt3kk
Co jest w tej 8 linii...
b4rt3kk
Wstaw większy fragment kodu z uwzględnieniem 8 linii, błąd musi być wcześniej.
Diego22
Kod
     <?php
error_reporting(0);
    if (!defined("IN_FUSION")) { die("Access Denied"); }
    // theme settings
    define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' class='bullet' alt='&raquo;' border='0' />");
    require_once INCLUDES."theme_functions_include.php";
    

    function render_page($license=false) {
    
    global $settings, $user_data, $userdata, $aidlink, $msg_count, $locale;









    













    if (iMEMBER) {
    echo "<div class='logowanie2'>\n";


co questionmark.gif?
b4rt3kk
Niestety, nie jestem Ci wstanie wskazać błędu. Może tyczy się jakiegoś dołączonego pliku. Daj całość kodu.
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.