تنظيمات اين مد به چه صورت هست: »» مد بهتر سرچ شدن صفحات در گوگل

internet

Member
با سلام
اين مد رو که خيلي هم سريع قابل اجراست رو انجام دادم ولي ظاهراً بايد يه تغييراتي توش ايجاد کرد يعني در کدي که replace مي کنيم:
کد:
##### 
## MOD Title: enhance-google-indexing 
## MOD Author: Showscout & R. U. Serious 
## MOD Description: If the User_agent includes the string 'Googlebot', then no session_ids are appended to links, which will (hopefully) allow google to index more than just your index-site. 
## MOD Version: 0.9.1 
## 
## Installation Level: easy 
## Installation Time: 2 Minutes 
## Files To Edit: includes/sessions.php 
## Included Files: n/a 
############################################################## 
## Author Notes: There may be issues with register globals on newer 
##       PHP version. If you know for sure and also how to fix it post in 
##       this thread: http://www.phpbb.com/phpBB/viewtopic.php?t=32328 
## 
##       Obviously, if someone thinks it's funny to surf around with a 
##       user_agent containing Googlebot and at the same time does not 
##       allow cookies, he will loose his session/login on every pageview. 
##       Should he complain to you, tell him to eat your shorts. 
## 
##       If you want to add further crawlers look at the appropiate line and 
##       feel free to add part of the user_agent which should be _unique_ 
##       unique to that, so a user is never confused with a bot. 
## 
############################################################## 
## Version History: 0.9.0 initial release, only googlebot 
##                         0.9.1 added inktomi (MSN-search/crawler-bot) 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

#-----[ OPEN  ]------------------------------------------ 
includes/sessions.php 

#-----[ FIND ]------------------------------------------ 
   global $SID; 

   if ( !empty($SID) && !preg_match('#sid=#', $url) ) 

#-----[ REPLACE WITH ]------------------------------------------ 
   global $SID, $HTTP_SERVER_VARS; 

if ( !empty($SID) && !preg_match('#sid=#', $url) && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'[email protected];')) 

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
 

YTERROR

Active Member
این که واضحه

باید بری این آدرس و فایل رو باز کنی با یک ادیتور

این خط رو پیدا کنی
global $SID;

if ( !empty($SID) && !preg_match('#sid=#', $url) )
و به این تغییر بدی :
if ( !empty($SID) && !preg_match('#sid=#', $url) && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'[email protected];'))
و بعدشم سیو کنی و جایگزین فایلت بکنی
 

internet

Member
سلام
و تشکر از پاسخ شما
ولي شما ما رو دست کم گرفتي
دوست عزيز من عرض کردم تنظيمات و توضيح هم دادم
يعني وقتي که replace کرديم بايد يه تغييري بديم يا ... نمي خواد کدها رو تغيير بديم ؟؟؟
ادمين شيراز آي تي
 

S4DEGH

Well-Known Member
به مي بينم گذر شما هم اينجا افتاد !

طبق كدي كه بالا گذاشتي فقط بايد اون كد رو replace كني همين !
 

جدیدترین ارسال ها

بالا