المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : اضافة nofollow نوفلو الى دليل مواقع نواحي للحفاظ على البيج رانك



linnou
11-01-2013, بتوقيت غرينيتش 09:46 PM
بعد تجربة سيئة مع دليل نواحي وثغراته الواسعة، قمت عن نفسي بمسح الدليل من على الموقع للتركيز على المنتدى forum وتغذيات مصر

ولكن طلب مني بعض الزملاء طريقة عمل rel="nofollow" للروابط الموجودة على دليل نواحي
فقمت عمل نسخة من ملف site.php والنسخة متاحة هنا فقط على منتديات نجوم اف ام

باستخدام هذه النسخة سيتم اضافة نو فلو لكل الروابط ومنها رابط ترتيب الكسا ورابط كاش جوجل GOOGLE ورابط الموقع بالدليل
كل هذا يساعد على الحفاظ على البيج رانك لدليلك

تحميل الملف :

http://www.2shared.com/file/6995416/a288f53e/site.html


محتوى الملف كود code :
رمز PHP:

<code style="white-space:nowrap"> <code> <?php
include("config.php");
include("function.php");
include("templates/template.php");

$id = intval($_GET&#91;"id"&#93;);
clean_value($id);

$Sql = mysql_query("select * from dlil_site where id='$id'");
$Row = mysql_fetch_array($Sql);
if (!$Row)
{
error();
exit;
}

$Row&#91;'title'&#93; = stripslashes($Row&#91;'title'&#93;);
$Row&#91;'title'&#93; = htmlspecialchars($Row&#91;'title'&#93;);

$Row&#91;'url'&#93; = stripslashes($Row&#91;'url'&#93;);
$Row&#91;'url'&#93; = htmlspecialchars($Row&#91;'url'&#93;);

$t = $Row&#91;'url'&#93;;
$t = str_replace("http://","",$t);
$t = str_replace("http://www.","",$t);
$t = str_replace("http://www","",$t);
$t = str_replace("www.","",$t);
$t = str_replace("www","",$t);

$Row&#91;'metadescription'&#93; = stripslashes($Row&#91;'metadescription'&#93;);
$Row&#91;'metadescription'&#93; = htmlspecialchars($Row&#91;'metadescription'&#93;);

$Row&#91;'metakeywords'&#93; = stripslashes($Row&#91;'metakeywords'&#93;);
$Row&#91;'metakeywords'&#93; = htmlspecialchars($Row&#91;'metakeywords'&#93;);

$Row&#91;'country'&#93; = stripslashes($Row&#91;'country'&#93;);
$Row&#91;'country'&#93; = htmlspecialchars($Row&#91;'country'&#93;);

$Row&#91;'yourname'&#93; = stripslashes($Row&#91;'yourname'&#93;);
$Row&#91;'yourname'&#93; = htmlspecialchars($Row&#91;'yourname'&#93;);

$Row&#91;'yourmail'&#93; = stripslashes($Row&#91;'yourmail'&#93;);
$Row&#91;'yourmail'&#93; = htmlspecialchars($Row&#91;'yourmail'&#93;);

$d = date("j/n/Y",$Row&#91;'date'&#93;);

if($Row&#91;'metadescription'&#93; == ""){
$meta1 = $t;
}else{
$meta1 = $Row&#91;'metadescription'&#93;;
}

if($Row&#91;'metakeywords'&#93; == ""){
$meta2 = $t;
}else{
$meta2 = $Row&#91;'metakeywords'&#93;;
}

if($Row&#91;'metadescription'&#93; == $Row&#91;'title'&#93;){
$meta1 = $t;
}else{
$meta1 = $Row&#91;'metadescription'&#93;;
}

if($Row&#91;'metakeywords'&#93; == $Row&#91;'title'&#93;){
$meta2 = $t;
}else{
$meta2 = $Row&#91;'metakeywords'&#93;;
}

$img = "<a target='_blank' rel='nofollow' href='".$Row&#91;'url'&#93;."' title='".$Row&#91;'url'&#93;."'><img src='http://open.thumbshots.org/image.pxf?url=".$Row&#91;'url'&#93;."' border='0' vspace='0' hspace='0'>";

$p = "» ".$Row&#91;'title'&#93;."<div dir='ltr' align='right'><a target='_blank' rel='nofollow' class='aa' href='site.php?siteid=".$Row&#91;'id'&#93;."'>".$Row&#91;'url'&#93;."</a></div>".$f."";

$sql2 = @mysql_query("update dlil_site set vis=vis+1 where id='$id'") or die ("Query failed4");

$Sqlx = mysql_query("select * from dlil_catgory where id='".$Row&#91;'cat'&#93;."'");
$Rowx = mysql_fetch_array($Sqlx);
$Rowx&#91;'title'&#93; = stripslashes($Rowx&#91;'title'&#93;);
$Rowx&#91;'title'&#93; = htmlspecialchars($Rowx&#91;'title'&#93;);

if($htmlorphp==1){
$sxx = "section-".$Rowx&#91;'id'&#93;.".html";
}else{
$sxx = "section.php?id=".$Rowx&#91;'id'&#93;."";
}

tpl_header($Row&#91;'title'&#93;);

echo "<div align='center'>
<center>
<table border='0' style='border-collapse: collapse' width='99%' id='AutoNumber10' cellpadding='2'>
<tr>
<td width='100%' valign='top'>";

echo "<div align='center'>
<center>
<table class='xtable' width='98%' id='AutoNumber1555'>

<tr>
<td width='100%' colspan='5' class='xtr' align='center'>معلومات الموقع ".$Row&#91;'title'&#93;."</td>
</tr>

<tr>
<td width='20%' class='xtr'>» عنوان الموقع</td>
<td width='80%' class='xtd'><a target='_blank' rel='nofollow' class='aa' href='".$Row&#91;'url'&#93;."'>".$Row&#91;'url'&#93;."</a></td>
</tr>

<tr>
<td width='20%' class='xtr'>» زيارات الموقع</td>
<td width='80%' class='xtd'>".$Row&#91;'vis'&#93;."</td>
</tr>

<tr>
<td width='20%' class='xtr'>» وصف الموقع 1</td>
<td width='80%' class='xtd'>".$Row&#91;'metadescription'&#93;."</td>
</tr>

<tr>
<td width='20%' class='xtr'>» وصف الموقع 2</td>
<td width='80%' class='xtd'>".$Row&#91;'metakeywords'&#93;."</td>
</tr>

<tr>



<td width='20%' class='xtr'>» تقييم الموقع</td>
<td width='80%' class='xtd'>
<form name='vbform' method='POST' action='rate.php' style='margin-top: 0; margin-bottom: 0'>
<input type='hidden' name='id' value='$id'>
التقييم ".$Row&#91;'rate'&#93;." الأصوات ".$Row&#91;'count'&#93;." شخص <select size='1' name='rate'>
<option value='1' selected>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
<option value='4'>4</option>
<option value='5'>5</option>
<option value='6'>6</option>
<option value='7'>7</option>
<option value='8'>8</option>
<option value='9'>9</option>
<option value='10'>10</option>

</select> <input type='submit' value=' تقييم ' name='B1'>
</form>
</td>
</tr>

<tr>
<td width='20%' class='xtr'>» الموقع في جوجل GOOGLE</td>
<td width='80%' class='xtd'><a target='_blank' rel='nofollow' href='http://www.google.com/search?q=site:".$Row&#91;'url'&#93;."'>الصفحات</a> - <a target='_blank' rel='nofollow' href='http://www.google.com/search?q=link:".$Row&#91;'url'&#93;."'>الروابط</a> - <a target='_blank' rel='nofollow' href='http://www.google.com/search?q=cache:".$Row&#91;'url'&#93;."'>الكاش</a></td>
</tr>

<tr>
<td width='20%' class='xtr'>» صورة الموقع</td>
<td width='80%' class='xtd'>$img</td>
</tr>

<tr>
<td width='20%' class='xtr'>» القسم الخاص بالموقع</td>
<td width='80%' class='xtd'><a class='aa' href='$sxx'>".$Rowx&#91;'title'&#93;."</a></td>
</tr>

</table>
</center>
</div>";

echo "</td></tr></table><a href='/'></a></center></div>";

tpl_footer();
?> </code> </code>

المصدر :

تهيئة المواقع لمحركات البحث SEO




https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى