phpmelody seo ayarları - Google Fan Webmaster Forum
Google Fan Webmaster Forum  
herşeyi sana yazdım

Geri git   Google Fan Webmaster Forum > Webmaster Genel > Webmaster Genel konular sorunlar
KEY
Kayıt ol Articles Sosyal Gruplar Forumları Okundu Kabul Et

Webmaster Genel konular sorunlar Webmaster genel konular sorular sorunlar

Cevapla
 
LinkBack Seçenekler
  1  
Alt 01-05-2010, 17:07:04
 
Standart phpmelody seo ayarları

Merhabalar,

phpmelody sitem var googleda 80 sayfa kadar indexlemiş ancak taglarla ilişkili videolar neden gelmiyor ayrıca tagları phpmelody - izle phpmelody - seyret gibi indexlemiş bunu nereden düzeltebilirim.

Buradan daha iyi anlaşılır sanırım.
http://www.google.com.tr/search?sour...=&oq=&gs_rfai=

şimdiden teşekkürler
__________________
Gönlüm Deniz Değilki, Efkarım Sahile Vursun...
Alıntı ile Cevapla
  2  
Alt 01-05-2010, 17:23:44
 
Standart

ilgili taglara ait videoları kaldırmışsınız sanırım. ayrıca tagların titlesini tags.php dosyasından düzeltebilirsiniz.
Alıntı ile Cevapla
  3  
Alt 01-05-2010, 19:16:50
 
Standart

Teşekkürler.

Tam olarak neresi yardımcı olurmusunuz acaba?

Kod:
<?php
// +------------------------------------------------------------------------+
// | PHP Melody version 1.6.2 ( www.phpsugar.com )
// +------------------------------------------------------------------------+
// | PHP Melody IS NOT FREE SOFTWARE
// | If you have downloaded this software from a website other
// | than www.phpsugar.com or if you have received
// | this software from someone who is not a representative of
// | phpSugar, it's likely that you are involved in an illegal activity.
// | ---
// | In such case, please contact: support@phpsugar.com.
// +------------------------------------------------------------------------+
// | Developed by: phpSugar (www.phpsugar.com) / support@phpsugar.com
// | Copyright: (c) 2004-2010 PhpSugar.com. All rights reserved.
// +------------------------------------------------------------------------+

session_start();
require('config.php');
require_once('include/functions.php');
require_once('include/user_functions.php');
require_once('include/islogged.php');

$page = $_GET['page'];

if(empty($page) || !is_numeric($page) || $page == '')
	$page = 1;
	
$limit = _BROWSER_PAGE;
$from = $page * $limit - ($limit);
$total_results = 0;
$err = '';

$tag = urldecode(trim($_GET['t']));
$tag = str_replace( array("%", "<", ">"), '', $tag);

if($tag != '' && strlen($tag) > 1)
{
	$tag = safe_tag($tag);
	$tag = secure_sql($tag);
	
	$sql = "SELECT uniq_id FROM pm_tags WHERE safe_tag LIKE '".$tag."'";
	$result = mysql_query($sql);// or die(mysql_error());
	if(!$result)
	{
		$err = "<center><br><b>".$lang['search_results_msg1']."</b></center>";
	}
	else
	{
		$v_ids = array();
		$videos = '';
		$total_results = mysql_num_rows($result);
		while($row = mysql_fetch_assoc($result))
		{
			$v_ids[] = $row['uniq_id'];
			$videos .= "'".$row['uniq_id']."', ";
		}
		mysql_free_result($result);
		$videos = substr($videos, 0, -2);

		if($total_results > 0)
		{
			$sql = "SELECT * FROM pm_videos WHERE uniq_id IN(".$videos.")";
			$sql .= " LIMIT ".$from.", ".$limit;
			$result = mysql_query($sql) or die($lang['tag_msg1']." <b>".__LINE__."</b> in <b>".__FILE__."</b>");	// or die(mysql_error());
			$j = 0; 
			$item = '';
			while ($row = mysql_fetch_array($result)) 
			{ 
			// ** Mark as new ** //
			$sql_date = date('Y-m-d', $row['added']);
			$date_diff = round( abs(strtotime(date('Y-m-d'))-strtotime($sql_date)) / 86400, 0 );

			$item .= "
			<li class=\"video\">
			<div class=\"video_i\">
			<a href=\"".makevideolink($row['uniq_id'], $row['artist'], $row['video_title'])."\">
			<img src=\"".show_thumb($row['uniq_id'])."\"  alt=\"".$row['video_title']."\" class=\"imag\" width=\"116\" height=\"87\" /><div class=\"tag\">";

			if($date_diff < _ISNEW_DAYS) { 
				$item .= '<span class="new">new</span>';
			}
			if($row['site_views'] > _ISPOPULAR) {
				$item .= '<span class="hot">hot</span>';
			}
			if($row['featured'] == 1) {
				$item .= '<span class="featured">featured</span>';
			}
			$item .= "</div>
			<span class=\"artist_name\">".fewchars($row['artist'], 22)."</span> ".fewchars($row['video_title'], 20)."
			</a>
			</div>
			</li>";
			} 
			mysql_free_result($result);
		}
		else
		{
			$err = "<center><br><b>".$lang['search_results_msg1']."</b></center>";
		}
	}
}
else
{	//	the tag is either too short, or no tag was given
	$err = "<center><br><b>".$lang['search_results_msg1']."</b></center>";
}

// generate pagination
$uri = $_SERVER['REQUEST_URI'];
$uri = explode('?', $uri);

if (strlen($uri[1]) == 0)
{
	$uri[1] ='t='. $_GET['t'];
}

$filename = ('' != $_SERVER['PHP_SELF']) ? basename($_SERVER['PHP_SELF']) : 'tag.php';

$adjacents = 1;
$targetpage = (_SEOMOD) ? $uri[0] : $filename;
if(_SEOMOD)
{
	if($targetpage[strlen($targetpage)-1] != "/")
		$targetpage .= "/";
	if( ! @preg_match('#/page-([0-9]+)/#', $targetpage))
	{
		$targetpage .= 'page-1/';
	}
}
$totalitems = $total_results;
$pagestring = $uri[1];
$seomod = _SEOMOD;
$pagination = '';
//-----------------------------------------
$prev = $page - 1;
$next = $page + 1;
$lastpage = ceil($totalitems / $limit);
$lpm1 = $lastpage - 1;
//echo $targetpage;
$seo_replace_regex = '/page-([0-9]*)/';
$preg_replace_regex = '/page=([0-9]*)/';

if($seomod == 1)
{
	$pagestring1 = preg_replace($seo_replace_regex, 'page-1', $targetpage);
	$pagestring2 = preg_replace($seo_replace_regex, 'page-2', $targetpage);
	$pagestringlpm1 = preg_replace($seo_replace_regex, 'page-'.$lpm1, $targetpage);
	$pagestringlast = preg_replace($seo_replace_regex, 'page-'.$lastpage, $targetpage);
}
else
{
	if(strpos($pagestring, 'page=', 0) === FALSE)
		$pagestring .= "&page=";
	
	$pagestring1 = preg_replace($preg_replace_regex, 'page=1', $pagestring);
	$pagestring2 = preg_replace($preg_replace_regex, 'page=2', $pagestring);
	$pagestringlpm1 = preg_replace($preg_replace_regex, 'page='.$lpm1, $pagestring);
	$pagestringlast = preg_replace($preg_replace_regex, 'page='.$lastpage, $pagestring);
}	
	$pagination = "";
	if($lastpage > 1)
	{	
		$pagination .= "<div class=\"pagination\"";
		if($margin || $padding)
		{
			$pagination .= " style=\"";
			if($margin)
				$pagination .= "margin: $margin;";
			if($padding)
				$pagination .= "padding: $padding;";
			$pagination .= "\"";
		}
		$pagination .= ">";

		//previous button
		if ($page > 1)
		{
			if($seomod == 1)
			{
				$url_query = preg_replace($seo_replace_regex, 'page-'.$prev, $targetpage); 
				$pagination .= "<a href=\"$url_query\">&laquo; prev</a>";
			}
			else
			{
				$url_query = preg_replace($preg_replace_regex, 'page='.$prev, $pagestring);
				$pagination .= "<a href=\"$targetpage?$url_query\">&laquo; prev</a>";
			}
		}
		else
				$pagination .= "<span class=\"disabled\">&laquo; prev</span>";
		
		//pages	
		if ($lastpage < 7 + ($adjacents * 2))	//not enough pages to bother breaking it up
		{	
			for ($counter = 1; $counter <= $lastpage; $counter++)
			{
				if ($counter == $page)
					$pagination .= "<span class=\"current\">$counter</span>";
				else
				{
					if($seomod == 1)
					{
						$url_query = preg_replace($seo_replace_regex, 'page-'.$counter, $targetpage); 
						$pagination .= "<a href=\"$url_query\">$counter</a>";
					}
					else
					{
						$url_query = preg_replace($preg_replace_regex, 'page='.$counter, $pagestring);
						$pagination .= "<a href=\"$targetpage?$url_query\">$counter</a>";
					}
				}					
			}
		}
		elseif($lastpage >= 7 + ($adjacents * 2))	//enough pages to hide some
		{
			//close to beginning; only hide later pages
			if($page < 2 + ($adjacents * 3))		
			{
				for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++)
				{
					if ($counter == $page)
						$pagination .= "<span class=\"current\">$counter</span>";
					else
					{
						if($seomod == 1)
						{
							$url_query = preg_replace($seo_replace_regex, 'page-'.$counter, $targetpage); 
							$pagination .= "<a href=\"$url_query\">$counter</a>";
						}
						else
						{
							$url_query = preg_replace($preg_replace_regex, 'page='.$counter, $pagestring);
							$pagination .= "<a href=\"$targetpage?$url_query\">$counter</a>";
						}
//							$url_query = preg_replace($preg_replace_regex, 'page='.$counter, $pagestring);
//							$pagination .= "<a href=\"$targetpage?$url_query\">$counter</a>";	
					}				
				}
				$pagination .= "...";
				if($seomod == 1)
				{					
					$pagination .= "<a href=\"$pagestringlpm1\">$lpm1</a>";
					$pagination .= "<a href=\"$pagestringlast\">$lastpage</a>";		
				}
				else
				{
					$pagination .= "<a href=\"$targetpage?$pagestringlpm1\">$lpm1</a>";
					$pagination .= "<a href=\"$targetpage?$pagestringlast\">$lastpage</a>";		
				}
			}
			//in middle; hide some front and some back
			elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2))
			{
				if($seomod == 1)
				{					
					$pagination .= "<a href=\"$pagestring1\">1</a>";
					$pagination .= "<a href=\"$pagestring2\">2</a>";		
				}
				else
				{
					$pagination .= "<a href=\"$targetpage?$pagestring1\">1</a>";
					$pagination .= "<a href=\"$targetpage?$pagestring2\">2</a>";
				}				
				$pagination .= "...";
				for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++)
				{
					if ($counter == $page)
						$pagination .= "<span class=\"current\">$counter</span>";
					else
					{
						if($seomod == 1)
						{
							$url_query = preg_replace($seo_replace_regex, 'page-'.$counter, $targetpage); 
							$pagination .= "<a href=\"$url_query\">$counter</a>";
						}
						else
						{
							$url_query = preg_replace($preg_replace_regex, 'page='.$counter, $pagestring);
							$pagination .= "<a href=\"$targetpage?$url_query\">$counter</a>";
						}						
					}
				}
				$pagination .= "...";
				if($seomod == 1)
				{					
					$pagination .= "<a href=\"$pagestringlpm1\">$lpm1</a>";
					$pagination .= "<a href=\"$pagestringlast\">$lastpage</a>";		
				}
				else
				{
					$pagination .= "<a href=\"$targetpage?$pagestringlpm1\">$lpm1</a>";
					$pagination .= "<a href=\"$targetpage?$pagestringlast\">$lastpage</a>";		
				}					
			}
			//close to end; only hide early pages
			else
			{
				if($seomod == 1)
				{					
					$pagination .= "<a href=\"$pagestring1\">1</a>";
					$pagination .= "<a href=\"$pagestring2\">2</a>";		
				}
				else
				{
					$pagination .= "<a href=\"$targetpage?$pagestring1\">1</a>";
					$pagination .= "<a href=\"$targetpage?$pagestring2\">2</a>";
				}				
				$pagination .= "...";
				for ($counter = $lastpage - (1 + ($adjacents * 3)); $counter <= $lastpage; $counter++)
				{
					if ($counter == $page)
						$pagination .= "<span class=\"current\">$counter</span>";
					else
					{
						if($seomod == 1)
						{
							$url_query = preg_replace($seo_replace_regex, 'page-'.$counter, $targetpage); 
							$pagination .= "<a href=\"$url_query\">$counter</a>";
						}
						else
						{
							$url_query = preg_replace($preg_replace_regex, 'page='.$counter, $pagestring);
							$pagination .= "<a href=\"$targetpage?$url_query\">$counter</a>";
						}
					}
				}
			}
		}
		
		//next button
		if ($page < $counter - 1) 
		{
			if($seomod == 1)
			{
				$url_query = preg_replace($seo_replace_regex, 'page-'.$next, $targetpage); 
				$pagination .= "<a href=\"$url_query\">next &raquo;</a>";
			}
			else
			{
				$url_query = preg_replace($preg_replace_regex, 'page='.$next, $pagestring);
				$pagination .= "<a href=\"$targetpage?$url_query\">next &raquo;</a>";
			}				
		}
		else
			$pagination .= "<span class=\"disabled\">next &raquo;</span>";				
		$pagination .= "</div>\n";
	}
//	}	
$pagination;

//-----------------------------------------

//	Get tag's real name;
$real_tag = '';
$real_tag = safe2tag($tag);
$real_tag = ($real_tag === false) ? '' : $real_tag;

if($config['show_tags'] == 1)
{
	$tag_cloud = tag_cloud(0, $config['tag_cloud_limit'], $config['shuffle_tags']);
	$smarty->assign('tags', $tag_cloud);
	$smarty->assign('show_tags', 1);
}
// define meta tags & common variables
$meta_title = _SITENAME.' - '.htmlspecialchars($real_tag);
$meta_description = '';
// end

$smarty->assign('tags', $tag_cloud);
$smarty->assign('error_msg', $err);
//$smarty->assign('searchstring', htmlspecialchars($_GET['t']));
$smarty->assign('searchstring', htmlspecialchars($real_tag));
$smarty->assign('results', $item);
$smarty->assign('pagination', $pagination);
// --- DEFAULT SYSTEM FILES - DO NOT REMOVE --- //
$smarty->assign('meta_title', $meta_title);
$smarty->assign('meta_description', $meta_description);
$smarty->assign('template_dir', $template_f);
$smarty->display('tag.tpl');
?>
__________________
Gönlüm Deniz Değilki, Efkarım Sahile Vursun...
Alıntı ile Cevapla
  4  
Alt 01-05-2010, 19:47:59
 
Standart

title kısmını değiştirmek için
Alıntı:
// define meta tags & common variables
$meta_title = _SITENAME.' - '.htmlspecialchars($real_tag);
$meta_description = '';
// end
bu kısımda değişiklik yapmanız gerekmekte. nasıl bir başlık sistemi yapacaksanız ona göre değişiklikler yapılabilir sistemde
Alıntı ile Cevapla
Cevapla


Bookmarks

Seçenekler

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Açık



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 15:06:59.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

“İnsanların en hayırlısı, insanlara faydalı olandır”. H.Ş

Hosting by Radore Hosting

İçerik sağlayacı paylaşım sitelerinden biri olan R10.net WebMaster Forum Adresimizde 5651 Sayılı Kanun’un 8. Maddesine ve T.C.K’nın 125. Maddesine göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur. R10.net hakkında yapılacak tüm hukuksal Şikayetler adresi ile iletişime geçilmesi halinde ilgili kanunlar ve yönetmelikler çerçevesinde en geç 1 (Bir) Hafta içerisinde R10.net yönetimi olarak tarafımızdan gereken işlemler yapılacak ve Avukatlarımız size dönüş yapacaktır.
ARGUS_OK

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252