» » » » Popüler Videolar Linki Nasıl Yapabilirim ?

Popüler Videolar Linki Nasıl Yapabilirim ?

blizzard3
blizzard3 9-08-2017, 00:15
Populer konuları listeleyebiliyoruz ama populer konuları bir linke koyup linke tıkladıgımızda nasıl listeleyebiliriz bilgisi olan varmı
Çözüldü İşleme Alındı Bekliyor Çözülemedi
Bilgilendirme
Yorum Ekleyebilmeniz için Sitemize Kayıt Olmanız Gerekmektedir.
0
blizzard3 13 Ağustos 2017 00:51
eyvallah hocam saol videolu anlatım daha guzel ama ses olsa daha iyi olur
3 779
MaRZoCHi 12 Ağustos 2017 12:56
Dosya: engine/engine.php
Bul:
} elseif ($do == 'tags') {

Üstüne ekle:
		} elseif ($do == 'topnews') {
			// ################ Вывод всех последних новостей #################
			if ($cstart) {
				$cstart = $cstart - 1;
				$cstart = $cstart * $config['news_number'];
			}

			if( $config['allow_alt_url'] AND $config['seo_control'] AND $_GET['cstart'] ) {

				if (substr ( $_SERVER['REQUEST_URI'], - 1, 1 ) != '/' OR $_GET['cstart'] == 1 ) {

					$re_url = explode ( "index.php", strtolower ( $_SERVER['PHP_SELF'] ) );
					$re_url = reset ( $re_url );

					$re_url .= "topnews/";

					if(substr ( $_SERVER['REQUEST_URI'], - 1, 1 ) != '/' AND $_GET['cstart'] != 1 ) {
						$re_url .= "page/".intval($_GET['cstart'])."/";
					}

					header("HTTP/1.0 301 Moved Permanently");
					header("Location: {$re_url}");
					die("Redirect");
				}
			}

			$url_page = $config['http_home_url'] . "topnews";
			$user_query = "do=topnews";

			if (isset ( $_SESSION['dle_sort_topnews'] )) $news_sort_by = $_SESSION['dle_sort_topnews'];
			else $news_sort_by = "date";
			if (isset ( $_SESSION['dle_direction_topnews'] )) $news_direction_by = $_SESSION['dle_direction_topnews'];
			else $news_direction_by = "DESC";

			$this_month = date( 'Y-m-d H:i:s', $_TIME );
			$sql_select = "SELECT p.id, p.date, p.short_story, p.xfields, p.title, p.category, p.alt_name FROM " . PREFIX . "_post p LEFT JOIN " . PREFIX . "_post_extras e ON (p.id=e.news_id) WHERE {$stop_list}p.approve=1 AND p.date >= '$this_month' - INTERVAL 1 MONTH AND p.date < '$this_month' ORDER BY rating DESC, comm_num DESC, news_read DESC, date DESC LIMIT 0,{$config['top_number']}";
			$sql_count = "SELECT COUNT(*) as count FROM " . PREFIX . "_post p WHERE {$stop_list}approve=1 AND p.date >= '$this_month' - INTERVAL 1 MONTH AND p.date < '$this_month'";

https://youtu.be/2Ega4CHB-k0

--------------------