AynaZ 4,157 ارسال شده در دی 25، 1394 گزارش اشتراک گذاری ارسال شده در دی 25، 1394 با عرض سلام در قالب لینک ها تنها برای اعضای سایت قابل نمایش است. فایل مربوط به forum.php خالی هست ..... از مدیریت تقاضا دارم نسخه اون فایل رو قرار بدن با تشکر لینک به دیدگاه به اشتراک گذاری در سایت های دیگر More sharing options...
مدیریت کل سایت Saberian 1,794 ارسال شده در دی 26، 1394 مدیریت کل سایت گزارش اشتراک گذاری ارسال شده در دی 26، 1394 سلام بفرمایید : <div class="tabbed-boxes ex-res"> <ul class="tabs row"> <li data-target="#tab1" class="active">آخرين ارسال هاي تالار</li> <span class="col sep"></span> <li data-target="#tab2">آخرين محصولات فروشگاه</li> </ul> <div class="tab-content container" id="tab1"><?php$gtset = 1;$Last_New = 12; $db_server = 'localhost';$db_name = 'forum';$db_username = 'forum';$db_password = '$ar';$forumurl = 'http://forum.20script.ir/';$a = mysql_connect($db_server, $db_username, $db_password, false, MYSQL_CLIENT_COMPRESS) OR die("shoo" . mysql_error());$b = mysql_select_db($db_name) OR die("foo" . mysql_error());$p = $_REQUEST['p'];function MTForumBlock($p=1){ global $gtset,$Last_New; $from = $Last_New * ($p-1); $query = mysql_query("SELECT threadid, lastposter , title FROM thread ORDER BY lastpostid DESC LIMIT $from,$Last_New") OR die(mysql_error()); $content .= "<ul>"; while($row=mysql_fetch_assoc($query)) { $title = $row['title']; $lastposter = $row['lastposter']; $threadid = intval($row['threadid']); $query3 = mysql_query("SELECT * FROM thread Where threadid = '$threadid'") OR die(mysql_error()); $row3 = mysql_fetch_assoc($query3) ; $LastReplies = $row3['replycount']; $TopicViews = intval($row3['views']); $TopicPoster = $row3['postuserid']; $query4 = mysql_query("SELECT username, userid FROM user where username='$lastposter'"); list($username, $userid)=mysql_fetch_assoc($query4); if($gtset == "1") { $topicurl = "/forum/showthread.php?threadid=$threadid"; } else { $topicurl = "/forum/showthread.php?threadid=$threadid&goto=newpost"; } $content .= "<tr>\n"; $content .= "<li><a href=\"$topicurl\" title=\"$title\">$title <span>$TopicViews بازدید | $LastReplies پاسخ </span></a></li>"; } $content .= "</table>\n"; return $content;}switch($_REQUEST['req']){ case "LastTopics": echo MTForumBlock($p); break; default: echo MTForumBlock(); break;}?> </div> <div class="tab-content container" id="tab2"> <ul> <?php $shop_tab = new WP_Query( array( 'posts_per_page' => 12, 'category__in' => array( get_option("shop_category") ) ) ); while( $shop_tab->have_posts() ) : $shop_tab->the_post(); ?> <li><a href="https://go.20script.ir/index.php?url=<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php endwhile; wp_reset_query(); ?> </ul> </div></div><!-- .tabbed-boxes --> لینک به دیدگاه به اشتراک گذاری در سایت های دیگر More sharing options...
پست های پیشنهاد شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.