Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Wywoływanie zawartości w div-e
Diego22
post
Post #1





Grupa: Zarejestrowani
Postów: 64
Pomógł: 0
Dołączył: 23.03.2011

Ostrzeżenie: (0%)
-----



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";
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Diego22
post
Post #2





Grupa: Zarejestrowani
Postów: 64
Pomógł: 0
Dołączył: 23.03.2011

Ostrzeżenie: (0%)
-----


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 (IMG:style_emoticons/default/smile.gif)

Ten post edytował Diego22 31.08.2012, 15:06:37
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 31.12.2025 - 12:10