• 06-10-2007, 03:23:18
    #1
    arkadaşlar artık ugraşmaktan sıkıldım pageheaderde takılıp kaldım ve artık ugraşmak istemiyorum.phpbb2 siteme "phpBB SEO keyword URLs" modunu kuracak birisi gerekiyor.ücreti ve msn adresinizi pm atarsanız sevinirim.zaten kısa,kolay bir mod ama daha önceden ekledigim bir modla bunun kodları biyerde kesişti
  • 06-10-2007, 03:25:16
    #2
    ücrete gerek yok readme varsa kurarız
  • 06-10-2007, 04:16:47
    #3
    Şayet kendin kurulum metnini eksiksiz yaptıysan,çıkan hatayı yazarsan,yardımcı olmaya çalışırım.
  • 06-10-2007, 12:05:46
    #4
    hata vermiyor.sadece footer kayboluyor buna neden olabilecek tek bi yer var,çünkü gerisi bendeki kodlarla birebir uyuşuyor.burada ise gözüme çarpan bir sıra kod var farklı olarak.

    kurulum dosyasında diyor ki ;

    #
    #-----[ OPEN ]------------------------------------------
    #
    
    includes/page_header.php
    
    #
    #-----[ FIND ]------------------------------------------
    #
    
    //
    // gzip_compression
    //
    $do_gzip_compress = FALSE;
    if($board_config['gzip_compress'])
    {
       $phpver = phpversion();
    
       if($phpver >= "4.0.4pl1")
          {
             if(extension_loaded("zlib"))
          {
       if (headers_sent() != TRUE)
          {
             $gz_possible = isset($HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]) && eregi("gzip, deflate",$HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]);
             if ($gz_possible) ob_start("ob_gzhandler");
          }
       }
          }
             else if($phpver > "4.0")
          {
             if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))
             {
                if(extension_loaded("zlib"))
             {
                $do_gzip_compress = TRUE;
                ob_start();
                ob_implicit_flush(0);
    
                header("Content-Encoding: gzip");
             }
          }
       }
    }
    
    #
    #-----[ REPLACE, WITH  ]------------------------------------------
    #
    
    //-- [+] MOD: phpBB SEO keyword URLs -------------------------------------
    //-- replace
    //
    /*
    //
    // gzip_compression
    //
    $do_gzip_compress = FALSE;
    if($board_config['gzip_compress'])
    {
       $phpver = phpversion();
    
       if($phpver >= "4.0.4pl1")
          {
             if(extension_loaded("zlib"))
          {
       if (headers_sent() != TRUE)
          {
             $gz_possible = isset($HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]) && eregi("gzip, deflate",$HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]);
             if ($gz_possible) ob_start("ob_gzhandler");
          }
       }
          }
             else if($phpver > "4.0")
          {
             if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))
             {
                if(extension_loaded("zlib"))
             {
                $do_gzip_compress = TRUE;
                ob_start();
                ob_implicit_flush(0);
    
                header("Content-Encoding: gzip");
             }
          }
       }
    }
    */
    //
    //while (@ob_end_flush());
    ob_start();
    
    
    function make_url_friendly($url)
    {
    	$url = trim($url);
    	$url = strtolower($url);
    
    	$find = array('<b>', '</b>');
    	$url = str_replace ($find, '', $url);
    
    	$url = preg_replace('/<(\/{0,1})img(.*?)(\/{0,1})\>/', 'image', $url);
    
    	$find = array(' ', '&quot;', '&amp;', '&', '\r\n', '\n', '/', '\\', '+', '<', '>');
    	$url = str_replace ($find, '-', $url);
    
    	$find = array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ë', 'Ê');
    	$url = str_replace ($find, 'e', $url);
    
    	$find = array('í', 'ı', 'ì', 'î', 'ï', 'I', 'İ', 'Í', 'Ì', 'Î', 'Ï');
    	$url = str_replace ($find, 'i', $url);
    
    	$find = array('ó', 'ö', 'Ö', 'ò', 'ô', 'Ó', 'Ò', 'Ô');
    	$url = str_replace ($find, 'o', $url);
    
    	$find = array('á', 'ä', 'â', 'à', 'â', 'Ä', 'Â', 'Á', 'À', 'Â');
    	$url = str_replace ($find, 'a', $url);
    
    	$find = array('ú', 'ü', 'Ü', 'ù', 'û', 'Ú', 'Ù', 'Û');
    	$url = str_replace ($find, 'u', $url);
    
    	$find = array('ç', 'Ç');
    	$url = str_replace ($find, 'c', $url);
    
    	$find = array('ş', 'Ş');
    	$url = str_replace ($find, 's', $url);
    
    	$find = array('ğ', 'Ğ');
    	$url = str_replace ($find, 'g', $url);
    
    	$find = array('/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/');
    
    	$repl = array('', '-', '');
    
    	$url = preg_replace ($find, $repl, $url);
    	$url = str_replace ('--', '-', $url);
    
    	return $url;
    }
    
    function rewrite_urls($content)
    {
    
    	function if_query($amp)
    	{
    
    		if($amp != '')
    		{
    			return '?';
    		}
    
    	}
    
            $url_in = array('/(?<!\/)viewforum.php\?f=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)\.\/viewforum.php\?f=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)viewtopic.php\?p=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)viewtopic.php\?t=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
    
    //-- [+] ALEXIS ---------------------------------------------------------
    //-- add
    //
                            '/(?<!\/)index.php\?c=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
    //
    //-- [-] ALEXIS ---------------------------------------------------------
    
                            '/(?<!\/)album_cat.php\?cat_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)album_thumbnail.php\?pic_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)album_pic.php\?pic_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)album_picm.php\?pic_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            //'/(?<!\/)album_showpage.php\?pic_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(<img .*?)<\/a>/e',
                            '/(?<!\/)album_showpage.php\?full=&pic_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)album_showpage.php\?pic_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)album_personal.php\?user_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)dload.php\?action=category&cat_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)dload.php\?action=file&file_id=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)kb.php\?mode=cat&cat=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)kb.php\?mode=article&k=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)kb.php\?mode=stats&stats=mostpopular((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)kb.php\?mode=stats&stats=toprated((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)kb.php\?mode=stats&stats=latest((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)press.php\?mode=cat&cat=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)press.php\?mode=article&k=([0-9]+)((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)press.php\?mode=stats&stats=mostpopular((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)press.php\?mode=stats&stats=toprated((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e',
                            '/(?<!\/)press.php\?mode=stats&stats=latest((&amp;)|(&)){0,1}([^>]+>)(.*?)<\/a>/e');
    
            $url_out = array("make_url_friendly('\\6') . '-vf\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-vf\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-vp\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-vt\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
    
    //-- [+] ALEXIS ---------------------------------------------------------
    //-- add
    //
                            "make_url_friendly('\\6') . '-vc\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
    //
    //-- [-] ALEXIS ---------------------------------------------------------
    
                            "make_url_friendly('\\6') . '-ac\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-at\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-apic\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-apm\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            //"'show-pic-asp\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "'image-full-asp\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-asp\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-aper\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-dc\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-df\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-kbc\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-kba\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\5') . '-kbsmp.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
                            "make_url_friendly('\\5') . '-kbstr.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
                            "make_url_friendly('\\5') . '-kbsl.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
                            "make_url_friendly('\\6') . '-pc\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\6') . '-pa\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
                            "make_url_friendly('\\5') . '-psmp.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
                            "make_url_friendly('\\5') . '-pstr.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'",
                            "make_url_friendly('\\5') . '-psl.html' . if_query('\\1') . stripslashes('\\4\\5') . '</a>'");
    
    	$content = preg_replace($url_in, $url_out, $content);
    
    	return $content;
    
    }
    //
    //-- [-] MOD: phpBB SEO keyword URLs -------------------------------------
    bendeki pageheader.php de o kısım birazcık farklı.

    //
    // gzip_compression
    //
    $do_gzip_compress = FALSE;
    if ( $board_config['gzip_compress'] )
    {
    	$phpver = phpversion();
    
    	$useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');
    
    	if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
    	{
    		if ( extension_loaded('zlib') )
    		{
    			ob_start('ob_gzhandler');
    		}
    	}
    	else if ( $phpver > '4.0' )
    	{
    		if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
    		{
    			if ( extension_loaded('zlib') )
    			{
    				$do_gzip_compress = TRUE;
    				ob_start();
    				ob_implicit_flush(0);
    
    				header('Content-Encoding: gzip');
    			}
    		}
    	}
    }
    sanırım sadece fazlalık olarak ;

    $useragent = (isset($HTTP_SERVER_VARS['HTTP_USER_AGENT'])) ? $HTTP_SERVER_VARS['HTTP_USER_AGENT'] : getenv('HTTP_USER_AGENT');
    burası var.yardımcı olursanız sevinirim.4-5 kez yeniden kurdum ama karıştırdım,bi türlü yapamadım
  • 06-10-2007, 13:55:10
    #5
    footer kaybolmasını daha önceden yazdığımı sanıyorum:

    http://www.canver.net/viewtopic.php?f=73&t=559

    FTP bilgilerini yazarsan referans karşılığında 3-4 dk da düzeltirim
  • 06-10-2007, 17:15:09
    #6
    referans olayını anlamadım vallaa alexis usta bilgileri vereyim vermesine de,referans için ben ne yapacam
    bu arada phpBB Türkiye &bull; phpBB SEO keyword URLs bu konuda footer kaybolmasıyla ilgili sadece doctoralone ın mesajını gördüm ama bunla ilgili bi çözüm göremedim

    düzeltme : alexis ustam sayesinde sorun çözüldü.Yardımları için kendisine teşekkür ederim...