1. What is the SE Friendly Board mod? Can you link me to this mod?
http://www.phpbbguru.net/community/download.php?id=129
2. Post your complete page_tail.php code and page_header.php code.
http://slil.ru/23064959
1. What is the SE Friendly Board mod? Can you link me to this mod?
2. Post your complete page_tail.php code and page_header.php code.
Code: Select all
FIND:
$template->set_filenames(array(
'header' => 'printer_header.tpl')
);
Code: Select all
// [begin] SE Friendly Board mod
function replace_mod_rewrite($s)
{
$url_in = array(
// Don't want 2 pages with simular content
"'(?<!/)viewforum.php\?f=([0-9]+)&topicdays=([0-9]+)&start=0'",
// Basic forum pagination link
"'(?<!/)viewforum.php\?f=([0-9]+)&topicdays=([0-9]+)&start=([0-9]+)'",
// Basic forum link
"'(?<!/)viewforum.php\?f=([0-9]+)'",
// Don't want 2 pages with simular content
"'(?<!/)viewtopic.php\?t=([0-9]+)&postdays=([0-9]+)&postorder=([a-zA-Z]+)&start=0'",
// Basic topic pagination link
"'(?<!/)viewtopic.php\?t=([0-9]+)&postdays=([0-9]+)&postorder=([a-zA-Z]+)&start=([0-9]+)'",
// 2 pages again
"'(?<!/)viewtopic.php\?t=([0-9]+)&start=0&postdays=([0-9]+)&postorder=([a-zA-Z]+)&highlight=([a-zA-Z0-9%+]*)'",
// Topic link at the top of the page
"'(?<!/)viewtopic.php\?t=([0-9]+)&start=([0-9]+)&postdays=([0-9]+)&postorder=([a-zA-Z]+)&highlight=([a-zA-Z0-9%+]*)'",
// 2 pages again
"'(?<!/)viewtopic.php\?t=([0-9]+)&start=0'",
// Topic pagination at forum view
"'(?<!/)viewtopic.php\?t=([0-9]+)&start=([0-9]+)'",
// Topic links from search
"'(?<!/)viewtopic.php\?t=([0-9]+)&highlight=([a-zA-Z0-9%+]*)'",
// Basic topic link
"'(?<!/)viewtopic.php\?t=([0-9]+)'",
// Basic post link
"'(?<!/)viewtopic.php\?p=([0-9]+)'"
);
$url_out = array(
'forum$1.html',
'forum$1-$3.html',
'forum$1.html',
'topic$1.html',
'topic$1-$4.html',
'topic$1.html',
'topic$1-$2.html',
'topic$1.html',
'topic$1-$2.html',
'topic$1.html',
'topic$1.html',
'post$1.html'
);
$s = preg_replace($url_in, $url_out, $s);
// Processing invalid links
$s = str_replace('.html&', '.html?', $s);
$s = str_replace('.html&', '.html?', $s);
return $s;
}
eviL<3 wrote: "replace_mod_rewrite()", this looks like some URL manipulation MOD
severnet wrote: moodgard, look it once again (now with your fix).
Code: Select all
FIND:
$gzip_stats = round( strlen($compress) / strlen($uncompress) * 100);
Code: Select all
REPLACE WITH:
if (strlen($uncompress) == 0){
$gzip_stats=0;
}
else {
$gzip_stats = round( strlen($compress) / strlen($uncompress) * 100);
}
Warning: Cannot modify header information - headers already sent by (output started at /home/www/freestudents/htdocs/forum/includes/page_tail.php:145) in /home/www/freestudents/htdocs/forum/includes/page_tail.php on line 182
Warning: Cannot modify header information - headers already sent by (output started at /home/www/freestudents/htdocs/forum/includes/page_tail.php:145) in /home/www/freestudents/htdocs/forum/includes/page_tail.php on line 182
Warning: Division by zero in /home/www/freestudents/htdocs/forum/includes/page_tail.php on line 197