Am dat cautare pe site si am gasit ceva infomatii. Imi pare interesant construit htm linkurile pentru forumul asta. E posibil sa faca cineva share la mod_rewrite si la patchul pentru phpbb.
Cu multumiri, Marius.
Am dat cautare pe site si am gasit ceva infomatii. Imi pare interesant construit htm linkurile pentru forumul asta. E posibil sa faca cineva share la mod_rewrite si la patchul pentru phpbb.
Cu multumiri, Marius.
exista un... patch pentru phpBB? :?Originally posted by mmariusel
[b]Am dat cautare pe site si am gasit ceva infomatii. Imi pare interesant construit htm linkurile pentru forumul asta. E posibil sa faca cineva share la mod_rewrite si la patchul pentru phpbb.
Cu multumiri, Marius.
Wrong forum. Mutati in Server Side si poate o sa va spun cum se face![]()
(\_/) I like bunnies
(>.<) ...and people with b00bs. But especially bunnies with b00bs xD
Se numeste patch sau hack. Cred ca se mai spune si mod. NU inteleg care e mirarea pe tema astaPostat în original de andypopa
![]()
am cautat si eu unpic azi pluginul care face linkurile SE friendly, dar nu am gasit nimica. Razvane, sau cineva care stie, ce hack se foloseste pe forum aicea pt linkuri rescrise?
![]()
Boingeanu Ben
poate te ajuta asta : http://www.phpbb4you.com/phpbb-static-url-hack.html
ms de link - dar nu e ceea ce cautam- vroiam un hack care sa adauge si numele unui topic in link... Am gasit multe care rescriu linkurile - dar baga doar numere in link - daca te uiti aicea ( pe forum) - sunt si keywordurile.
Boingeanu Ben
O sa incerc sa-mi aduc aminte ce am facut.![]()
Cu stima,
Razvan Pop
Ms Razvane - de prin celelalte tutoriale am inteles ca s*a modificat: page_tail.php, page_header.php si .htaccess-ul + robots.txt - cauta pe acolo poate gasesti ceva![]()
Boingeanu Ben
Yea, yea, you're all welcome...
No donations accepted! :shock:Cod:############################################################## ## MOD Title: phpBB google keyword URLs 1.1.0 ## MOD Author: webmedic (bah@webmedic.net) <Brook Hyumphrey> http://www.webmedic.net ## Original code from: http://www.webmasterbrain.com/forum/question-static-sef-urls-for-phpbb-vt34.php ## MOD Description: This mod makes static URLs for phpBB ## Please read the author notes BEFORE using this mod. ## Check http://www.webmedic.net/released-phpbb-google-keyword-urls-110-vt2577.html ## for the latest version or to get help with this MOD ## ## MOD Version: 1.1.0 ## ## Installation Level: (Advanced) ## Installation Time: 5 Minutes ## Files To Edit: (3) ## page_header.php, ## page_footer.php, ## .htaccess ## Included Files: n/a ############################################################## ## Author Notes: ## Use this mod together with the manage bots mod already included with integramod ## Make backups and test this on a test forum if you can. This is not a typical mod. ## This version is not like all the other mod rewrite and search engine optimization mods ## out there. It will make your urls into keword phrases. to do this it rewrites the url ## to look like the topic or forum title. ## To see this mod in action please goto: ## http://www.webmedic.net/index.php ## ############################################################## ## MOD History: ## ## 2004-11-03 - Version 1.1.0 ## - Added replacements for /, , and foriegn character sets. ## ## 2004-08-22 - Version 1.0.0 ## - Initial public release. ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]------------------------------------------ # includes/page_header.php # #-----[ FIND ]------------------------------------------ # $template->set_filenames(array( 'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl') ); # #-----[ AFTER, ADD ]------------------------------------------ # ob_start(); function make_url_friendly($url) { $url = strtolower($url); $find = array(' ', '&', 'rn', 'n', '/', '', '+'); $url = str_replace ($find, '-', $url); $find = array(' ', 'é', 'č', 'ë', 'ę'); $url = str_replace ($find, 'e', $url); $find = array(' ', 'ó', 'ň', 'ô', 'ö'); $url = str_replace ($find, 'o', $url); $find = array(' ', 'á', 'ŕ', 'â', 'ä'); $url = str_replace ($find, 'a', $url); $find = array(' ', 'í', 'ě', 'î', 'ď'); $url = str_replace ($find, 'i', $url); $find = array(' ', 'ú', 'ů', 'ű', 'ü'); $url = str_replace ($find, 'u', $url); $find = array('/[^a-z0-9-<>]/', '/[-]+/', '/<[^>]*>/'); $repl = array('', '-', ''); $url = preg_replace ($find, $repl, $url); return $url; } function rewrite_urls($content) { function if_query($amp) { if($amp != '') { return '?'; } } $url_in = array('/(?<!/)viewforum.php?f=([0-9]+)((&)|(&)){0,1}([^>]+>)(.*?)</a>/e', '/(?<!/)viewtopic.php?p=([0-9]+)((&)|(&)){0,1}([^>]+>)(.*?)</a>/e', '/(?<!/)viewtopic.php?t=([0-9]+)((&)|(&)){0,1}([^>]+>)(.*?)</a>/e'); $url_out = array("make_url_friendly('6') . '-vf1.html' . if_query('2') . stripslashes('56') . '</a>'", "make_url_friendly('6') . '-vp1.html' . if_query('2') . stripslashes('56') . '</a>'", "make_url_friendly('6') . '-vt1.html' . if_query('2') . stripslashes('56') . '</a>'"); $content = preg_replace($url_in, $url_out, $content); return $content; } # #-----[ OPEN ]------------------------------------------ # includes/page_tail.php # #-----[ FIND ]------------------------------------------ # if ( $do_gzip_compress ) { // // Borrowed from php.net! // $gzip_contents = ob_get_contents(); ob_end_clean(); $gzip_size = strlen($gzip_contents); $gzip_crc = crc32($gzip_contents); $gzip_contents = gzcompress($gzip_contents, 9); $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); echo "x1fx8bx08x00x00x00x00x00"; echo $gzip_contents; echo pack('V', $gzip_crc); echo pack('V', $gzip_size); } # #-----[ REPLACE, WITH ]------------------------------------------ # if ( $do_gzip_compress ) { // // Borrowed from php.net! // $gzip_contents = ob_get_contents(); ob_end_clean(); echo rewrite_urls($contents); global $dbg_starttime; $gzip_size = strlen($gzip_contents); $gzip_crc = crc32($gzip_contents); $gzip_contents = gzcompress($gzip_contents, 9); $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); echo "x1fx8bx08x00x00x00x00x00"; echo $gzip_contents; echo pack('V', $gzip_crc); echo pack('V', $gzip_size); } else { $contents = ob_get_contents(); ob_end_clean(); echo rewrite_urls($contents); global $dbg_starttime; } # #-----[ OPEN ]------------------------------------------ # .htaccess # #-----[ ADD ]------------------------------------------ # Options +FollowSymlinks RewriteEngine On #this may cause isues with subdirs and so I have not enabled it. #RewriteBase / RewriteRule [.]*-vf([0-9]*) viewforum.php?%{QUERY_STRING}&f=$1 RewriteRule [.]*-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1 RewriteRule [.]*-vt([0-9]*) viewtopic.php?%{QUERY_STRING}&t=$1 # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ #
(\_/) I like bunnies
(>.<) ...and people with b00bs. But especially bunnies with b00bs xD
Momentan este/sunt 1 utilizator(i) care navighează în acest subiect. (0 membrii și 1 vizitatori)