Ultimate SEO URLs phpBB3 ( 2)
. ( 1: http://web-tourist.net/login/login/view.php?st=2819 )


#
#-----[ ]------------------------------------------
#

includes/functions_posting.php

#
#-----[ ]------------------------------------------
#

$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($addr['name']),
'TOPIC_TITLE' => htmlspecialchars_decode($topic_title),
'FORUM_NAME' => htmlspecialchars_decode($forum_name),

'U_FORUM' => generate_board_url() . "/viewforum.$phpEx?f=$forum_id",
'U_TOPIC' => generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&t=$topic_id",

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
$phpbb_seo->set_url(htmlspecialchars_decode($forum_name), $forum_id, $phpbb_seo->seo_static['forum']);
$phpbb_seo->prepare_iurl(array('topic_id' => $topic_id, 'topic_title' => htmlspecialchars_decode($topic_title)), 'topic', $phpbb_seo->seo_url['forum'][$forum_id]);
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($addr['name']),
'TOPIC_TITLE' => htmlspecialchars_decode($topic_title),
'FORUM_NAME' => htmlspecialchars_decode($forum_name),

'U_FORUM' => !empty($phpbb_seo->seo_opt['url_rewrite']) ? $phpbb_seo->drop_sid(append_sid("{$phpbb_root_path}viewforum.$phpEx?f=$forum_id")) : generate_board_url() . "/viewforum.$phpEx?f=$forum_id",
'U_TOPIC' => !empty($phpbb_seo->seo_opt['url_rewrite']) ? $phpbb_seo->drop_sid(append_sid("{$phpbb_root_path}viewtopic.$phpEx?f=$forum_id&t=$topic_id")) : generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&t=$topic_id",
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $update_message = true)
{
global $db, $auth, $user, $config, $phpEx, $template, $phpbb_root_path;

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'topic_title' => $subject,

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'topic_url' => isset($data['topic_url']) ? $data['topic_url'] : '',
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'topic_title' => $subject,

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'topic_url' => isset($data['topic_url']) ? $data['topic_url'] : '',
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

$url = (!$params) ? "{$phpbb_root_path}viewforum.$phpEx" : "{$phpbb_root_path}viewtopic.$phpEx";
$url = append_sid($url, 'f=' . $data['forum_id'] . $params) . $add_anchor;

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_url($data['forum_name'], $data['forum_id'], $phpbb_seo->seo_static['forum']);
if ( $params ) {
$phpbb_seo->prepare_iurl($data, 'topic', $topic_type == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$data['forum_id'>);
}
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

index.php

#
#-----[ ]------------------------------------------
#

$legend[] = '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . $group_name . '</a>';

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->prepare_url('group', $row['group_name'], $row['group_id']);
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

language/en/acp/common.php

#
#-----[ ]------------------------------------------
#

?>

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$lang = array_merge($lang, array(
'ACP_CAT_PHPBB_SEO' => 'phpBB SEO',
'ACP_MOD_REWRITE' => 'URL Rewriting settings',
'ACP_PHPBB_SEO_CLASS' => 'phpBB SEO Class settings',
'ACP_FORUM_URL' => 'Forum URL Management',
'ACP_HTACCESS' => '.htaccess',
'ACP_PREMOD_UPDATE' => '<h1>Release announcement</h1>
<p>This update does only concern the premod, not the phpBB core.</p>
<p>A new version of the phpBB SEO premod is thus available : %1$s<br/>Make sure you visit<a href="%2$s" title="The release thread"><b>the release thread</b></a> and update your installation.</p>',
'SEO_LOG_INSTALL_PHPBB_SEO' => '<strong>phpBB SEO mod rewrite installed (v%s)</strong>',
'SEO_LOG_INSTALL_PHPBB_SEO_FAIL' => '<strong>phpBB SEO mod rewrite install attempt failed</strong><br/>%s',
'SEO_LOG_UNINSTALL_PHPBB_SEO' => '<strong>phpBB SEO mod rewrite uninstalled (v%s)</strong>',
'SEO_LOG_UNINSTALL_PHPBB_SEO_FAIL' => '<strong>phpBB SEO mod rewrite uninstall attempts failed</strong><br/>%s',
'SEO_LOG_CONFIG_SETTINGS' => '<strong>Altered phpBB SEO Class settings</strong>',
'SEO_LOG_CONFIG_FORUM_URL' => '<strong>Altered Forum URLs</strong>',
'SEO_LOG_CONFIG_HTACCESS' => '<strong>Generated new .htaccess</strong>',
));
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

memberlist.php

#
#-----[ ]------------------------------------------
#
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup(array('memberlist', 'groups'));
#
#-----[ ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (!empty($_REQUEST['un'])) {
$_REQUEST['un'] = rawurldecode($_REQUEST['un']);
if (!$phpbb_seo->is_utf8($_REQUEST['un'])) {
$_REQUEST['un'] = utf8_normalize_nfc(utf8_recode($_REQUEST['un'], 'ISO-8859-1'));
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ ]------------------------------------------
#

$group_name = ($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name'> : $row['group_name'];

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->prepare_url('group', $row['group_name'], $row['group_id']);
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

$user_id = (int) $member['user_id'];

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_user_url( $member['username'], $user_id );
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ ]------------------------------------------
#
// Generate page
$template->assign_vars(array(
#
#-----[ ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_sep = strpos($sort_url, '?') === false ? '?' : '&';
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#
'U_SORT_USERNAME' => $sort_url . '&sk=a&sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_FROM' => $sort_url . '&sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_JOINED' => $sort_url . '&sk=c&sd=' . (($sort_key == 'c' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_POSTS' => $sort_url . '&sk=d&sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_EMAIL' => $sort_url . '&sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_WEBSITE' => $sort_url . '&sk=f&sd=' . (($sort_key == 'f' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_LOCATION' => $sort_url . '&sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_ICQ' => $sort_url . '&sk=g&sd=' . (($sort_key == 'g' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_AIM' => $sort_url . '&sk=h&sd=' . (($sort_key == 'h' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_MSN' => $sort_url . '&sk=i&sd=' . (($sort_key == 'i' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_YIM' => $sort_url . '&sk=j&sd=' . (($sort_key == 'j' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . '&sk=l&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a') : '',
'U_SORT_RANK' => $sort_url . '&sk=m&sd=' . (($sort_key == 'm' && $sort_dir == 'a') ? 'd' : 'a'),
'U_LIST_CHAR' => $sort_url . '&sk=a&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a'),

#
#-----[ ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_SORT_USERNAME' => $sort_url . $seo_sep . 'sk=a&sd=' . (($sort_key == 'a' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_FROM' => $sort_url . $seo_sep . 'sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_JOINED' => $sort_url . $seo_sep . 'sk=c&sd=' . (($sort_key == 'c' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_POSTS' => $sort_url . $seo_sep . 'sk=d&sd=' . (($sort_key == 'd' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_EMAIL' => $sort_url . $seo_sep . 'sk=e&sd=' . (($sort_key == 'e' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_WEBSITE' => $sort_url . $seo_sep . 'sk=f&sd=' . (($sort_key == 'f' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_LOCATION' => $sort_url . $seo_sep . 'sk=b&sd=' . (($sort_key == 'b' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_ICQ' => $sort_url . $seo_sep . 'sk=g&sd=' . (($sort_key == 'g' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_AIM' => $sort_url . $seo_sep . 'sk=h&sd=' . (($sort_key == 'h' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_MSN' => $sort_url . $seo_sep . 'sk=i&sd=' . (($sort_key == 'i' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_YIM' => $sort_url . $seo_sep . 'sk=j&sd=' . (($sort_key == 'j' && $sort_dir == 'a') ? 'd' : 'a'),
'U_SORT_ACTIVE' => ($auth->acl_get('u_viewonline')) ? $sort_url . $seo_sep . 'sk=l&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a') : '',
'U_SORT_RANK' => $sort_url . $seo_sep . 'sk=m&sd=' . (($sort_key == 'm' && $sort_dir == 'a') ? 'd' : 'a'),
'U_LIST_CHAR' => $sort_url . $seo_sep . 'sk=a&sd=' . (($sort_key == 'l' && $sort_dir == 'a') ? 'd' : 'a'),
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'S_MODE_ACTION' => $pagination_url)

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
// Here we circumvent because our append_sid does not allow
// an url to end with an ?, as it should.
'S_MODE_ACTION' => $pagination_url . (strpos($pagination_url, '?') !== false ? '' : '?') )
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

posting.php

#
#-----[ ]------------------------------------------
#

$post_data['enable_smilies'] = (!$smilies_status || isset($_POST['disable_smilies'])) ? false : true;
$post_data['enable_urls'] = (isset($_POST['disable_magic_url'])) ? 0 : 1;
$post_data['enable_sig'] = (!$config['allow_sig'] || !$auth->acl_get('f_sigs', $forum_id) || !$auth->acl_get('u_sig')) ? false : ((isset($_POST['attach_sig']) && $user->data['is_registered']) ? true : false);

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (!empty($phpbb_seo->seo_opt['sql_rewrite'])) {
if ($mode == 'post' || ($mode == 'edit' && $post_data['topic_first_post_id'] == $post_id)) {
$phpbb_seo->set_url($post_data['forum_name'], $forum_id, $phpbb_seo->seo_static['forum']);
$_parent = $post_data['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$forum_id];
$_t = !empty($post_data['topic_id']) ? max(0, (int) $post_data['topic_id'] ) : 0;
$_url = $phpbb_seo->url_can_edit($forum_id) ? utf8_normalize_nfc(request_var('url', '', true)) : ( isset($post_data['topic_url']) ? $post_data['topic_url'] : '' );
if (!$phpbb_seo->check_url('topic', $_url, $_parent)) {
if (!empty($_url)) {
// Here we get rid of the seo delim (-t) and put it back even in simple mod
// to be able to handle all cases at once
$_url = preg_replace('`' . $phpbb_seo->seo_delim['topic'] . '$`i', '', $_url);
$_title = $phpbb_seo->get_url_info('topic', $_url . $phpbb_seo->seo_delim['topic'] . $_t);
} else {
$_title = $phpbb_seo->modrtype > 2 ? censor_text($post_data['post_subject']) : '';
}
unset($phpbb_seo->seo_url['topic'][$_t]);
$_url = $phpbb_seo->get_url_info('topic', $phpbb_seo->prepare_url( 'topic', $_title, $_t, $_parent , (( empty($_title) || ($_title == $phpbb_seo->seo_static['topic']) ) ? true : false)), 'url');
unset($phpbb_seo->seo_url['topic'][$_t]);
}
$post_data['topic_url'] = $_url;
}
}
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

$data = array(
'topic_title' => (empty($post_data['topic_title'])) ? $post_data['post_subject'] : $post_data['topic_title'],

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'topic_url' => isset($post_data['topic_url']) ? $post_data['topic_url'] : '',
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'TOPIC_TITLE' => censor_text($post_data['topic_title']),

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'TOPIC_URL' => isset($post_data['topic_url']) ? preg_replace('`' . $phpbb_seo->seo_delim['topic'] . '$`i', '', $post_data['topic_url']) : '',
'S_URL' => ($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_post_id'])) ? $phpbb_seo->url_can_edit($forum_id) : false,
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

search.php

#
#-----[ ]------------------------------------------
#

$user->setup('search');

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$clean_request = array('keywords', 'author', 'add_keywords');
foreach ($clean_request as $request) {
if (!empty($_REQUEST[$request])) {
$_REQUEST[$request] = rawurldecode($_REQUEST[$request]);
if (!$phpbb_seo->is_utf8($_REQUEST[$request])) {
$_REQUEST[$request] = utf8_normalize_nfc(utf8_recode($_REQUEST[$request], 'iso-8859-1'));
}
}
}
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

$u_search = append_sid("{$phpbb_root_path}search.$phpEx", $u_sort_param . $u_show_results);
$u_search .= ($search_id) ? '&search_id=' . $search_id : '';
$u_search .= ($u_hilit) ? '&keywords=' . urlencode(htmlspecialchars_decode($search->search_query)) : '';
$u_search .= ($search_terms != 'all') ? '&terms=' . $search_terms : '';
$u_search .= ($topic_id) ? '&t=' . $topic_id : '';
$u_search .= ($author) ? '&author=' . urlencode(htmlspecialchars_decode($author)) : '';
$u_search .= ($author_id) ? '&author_id=' . $author_id : '';
$u_search .= ($u_search_forum) ? '&fid%5B%5D=' . $u_search_forum : '';
$u_search .= (!$search_child) ? '&sc=0' : '';
$u_search .= ($search_fields != 'all') ? '&sf=' . $search_fields : '';
$u_search .= ($return_chars != 300) ? '&ch=' . $return_chars : '';

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//$u_search = append_sid("{$phpbb_root_path}search.$phpEx", $u_sort_param . $u_show_results);
$u_search = $u_sort_param . $u_show_results;
$u_search .= ($search_id) ? '&search_id=' . $search_id : '';
$u_search .= ($u_hilit) ? '&keywords=' . urlencode(htmlspecialchars_decode($search->search_query)) : '';
$u_search .= ($search_terms != 'all') ? '&terms=' . $search_terms : '';
$u_search .= ($topic_id) ? '&t=' . $topic_id : '';
$u_search .= ($author) ? '&author=' . urlencode(htmlspecialchars_decode($author)) : '';
$u_search .= ($author_id) ? '&author_id=' . $author_id : '';
$u_search .= ($u_search_forum) ? '&fid%5B%5D=' . $u_search_forum : '';
$u_search .= (!$search_child) ? '&sc=0' : '';
$u_search .= ($search_fields != 'all') ? '&sf=' . $search_fields : '';
$u_search .= ($return_chars != 300) ? '&ch=' . $return_chars : '';
$u_search = preg_replace('`(^&|&$)`i', '', $u_search);
if ( $phpbb_seo->seo_opt['rewrite_usermsg'] && (!empty($author) || !empty($author_id)) ) {
$author_name = '';
if (!empty($author_id)) {
$sql = $sql = 'SELECT username
FROM ' . USERS_TABLE . "
WHERE user_id = $author_id
AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
$result = $db->sql_query($sql);
if ($row = $db->sql_fetchrow($result)) {
$author_name = $row['username'];
$phpbb_seo->set_user_url( $author_name, $author_id );
}
}
if (!empty($author) && (strpos($author, '*') === false) ) {
$sql = $sql = 'SELECT user_id
FROM ' . USERS_TABLE . "
WHERE username_clean = '" . $db->sql_escape(utf8_clean_string($author)) . "'
AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
$result = $db->sql_query($sql);
if ($row = $db->sql_fetchrow($result)) {
$phpbb_seo->set_user_url( $author, $row['user_id'] );
}
}
$author = empty($author) ? $author_name : $author;
}
$u_search = append_sid( "{$phpbb_root_path}search.$phpEx" . (!empty($u_search) ? '?' . $u_search : '') );
// www.phpBB-SEO.com SEO TOOLKIT END


#
#-----[ ]------------------------------------------
#

$view_topic_url_params = "f=$u_forum_id&t=$result_topic_id" . (($u_hilit) ? "&hilit=$u_hilit" : '');
$view_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params);

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_url($row['forum_name'], $u_forum_id, $phpbb_seo->seo_static['forum']);
$phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$u_forum_id]);
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

styles/prosilver/template/attachment.html

#
#-----[ ]------------------------------------------
#

<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}" /></a></dt>

#
#-----[ ]------------------------------------------
#

<dt><a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / {_file.DOWNLOAD_NAME}<!-- ELSE -->{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}<!-- ENDIF -->" /></a></dt>

#
#-----[ ]------------------------------------------
#

<dt class="attach-image"><img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>

#
#-----[ ]------------------------------------------
#

<dt class="attach-image"><img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>

#
#-----[ ]------------------------------------------
#

<dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a></dt>

#
#-----[ ]------------------------------------------
#

<dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}">{_file.DOWNLOAD_NAME}</a></dt>

#
#-----[ ]------------------------------------------
#

styles/prosilver/template/forum_fn.js

#
#-----[ ]------------------------------------------
#

function jumpto()
{
var page = prompt(jump_page, on_page);

if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
{
if (base_url.indexOf('?') == -1)
{
document.location.href = base_url + '?start=' + ((page - 1) * per_page);
}
else
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
}
}
}

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto() {
var page = prompt(jump_page, on_page);

if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) {
var seo_page = (page - 1) * per_page;
if ( base_url.indexOf('?') >= 0 ) {
document.location.href = base_url.replace(/&/g, '&') + '&start=' + seo_page;
} else if ( seo_page > 0 ) {
var seo_type1 = base_url.match(/\.[a-z0-9]+$/i);
if (seo_type1 !== null) {
document.location.href = base_url.replace(/\.[a-z0-9]+$/i, '') + seo_delim_start + seo_page + seo_type1;
}
var seo_type2 = base_url.match(/\/$/);
if (seo_type2 !== null) {
document.location.href = base_url + seo_static_pagination + seo_page + seo_ext_pagination;
}
} else {
document.location.href = base_url;
}
}
}
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

styles/prosilver/template/overall_header.html

#
#-----[ ]------------------------------------------
#

<head>

#
#-----[ ]------------------------------------------
#

{SEO_BASE_HREF}

#
#-----[ ]------------------------------------------
#

var onload_functions = new Array();
var onunload_functions = new Array();

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
var seo_delim_start = '{SEO_START_DELIM}';
var seo_static_pagination = '{SEO_SATIC_PAGE}';
var seo_ext_pagination = '{SEO_EXT_PAGE}';
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

styles/prosilver/template/posting_editor.html

#
#-----[ ]------------------------------------------
#

<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
</dl>

#
#-----[ ]------------------------------------------
#

<!-- IF S_URL -->
<dl style="clear: left;">
<dt><label for="url">URL:</label></dt>
<dd><input type="text" name="url" id="url" size="45" maxlength="250" tabindex="2" value="{TOPIC_URL}" class="inputbox autowidth" /></dd>
</dl>
<!-- ENDIF -->

#
#-----[ ]------------------------------------------
#

styles/prosilver/template/simple_header.html

#
#-----[ ]------------------------------------------
#

<head>

#
#-----[ ]------------------------------------------
#

{SEO_BASE_HREF}

#
#-----[ ]------------------------------------------
#

styles/prosilver/template/viewtopic_body.html

#
#-----[ ]------------------------------------------
#

<a href="#p{postrow.POST_ID}">

#
#-----[ ]------------------------------------------
#

<a href="{U_VIEW_TOPIC}#p{postrow.POST_ID}">

#
#-----[ ]------------------------------------------
#

<a href="#wrap" class="top" title="{L_BACK_TO_TOP}">

#
#-----[ ]------------------------------------------
#

<a href="{U_VIEW_TOPIC}#wrap" class="top" title="{L_BACK_TO_TOP}">

#
#-----[ ]------------------------------------------
#

styles/subsilver2/template/attachment.html

#
#-----[ ]------------------------------------------
#

<a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" /></a><br />

#
#-----[ ]------------------------------------------
#

<a href="{_file.U_DOWNLOAD_LINK}"><img src="{_file.THUMB_IMAGE}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / {_file.DOWNLOAD_NAME}<!-- ELSE -->{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}<!-- ENDIF -->"/></a><br />

#
#-----[ ]------------------------------------------
#

<img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" /><br />

#
#-----[ ]------------------------------------------
#

<img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}"/><br />

#
#-----[ ]------------------------------------------
#

<a href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a> [{_file.FILESIZE} {_file.SIZE_LANG}]

#
#-----[ ]------------------------------------------
#

<a href="{_file.U_DOWNLOAD_LINK}" title="<!-- IF _file.COMMENT_CLEAN -->{_file.COMMENT_CLEAN} / <!-- ENDIF -->{_file.DOWNLOAD_NAME}">{_file.DOWNLOAD_NAME}</a> [{_file.FILESIZE} {_file.SIZE_LANG}]

#
#-----[ ]------------------------------------------
#

styles/subsilver2/template/overall_header.html

#
#-----[ ]------------------------------------------
#

<head>

#
#-----[ ]------------------------------------------
#

{SEO_BASE_HREF}

#
#-----[ ]------------------------------------------
#

function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var per_page = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';

if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0)
{
if (base_url.indexOf('?') == -1)
{
document.location.href = base_url + '?start=' + ((page - 1) * per_page);
}
else
{
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
}
}
}

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto() {
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var perpage = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
var seo_delim_start = '{SEO_START_DELIM}';
var seo_static_pagination = '{SEO_SATIC_PAGE}';
var seo_ext_pagination = '{SEO_EXT_PAGE}';
if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) {
var seo_page = (page - 1) * perpage;
if ( base_url.indexOf('?') >= 0 ) {
document.location.href = base_url.replace(/&/g, '&') + '&start=' + seo_page;
} else if ( seo_page > 0 ) {
var seo_type1 = base_url.match(/\.[a-z0-9]+$/i);
if (seo_type1 !== null) {
document.location.href = base_url.replace(/\.[a-z0-9]+$/i, '') + seo_delim_start + seo_page + seo_type1;
}
var seo_type2 = base_url.match(/\/$/);
if (seo_type2 !== null) {
document.location.href = base_url + seo_static_pagination + seo_page + seo_ext_pagination;
}
} else {
document.location.href = base_url;
}
}
}
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

styles/subsilver2/template/posting_body.html

#
#-----[ ]------------------------------------------
#

<tr>
<td class="row1" width="22%"><b class="genmed">{L_SUBJECT}:</b></td>
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
</tr>

#
#-----[ ]------------------------------------------
#

<!-- IF S_URL -->
<tr>
<td class="row1" width="22%"><b class="genmed">URL:</b></td>
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="url" size="45" maxlength="250" tabindex="2" value="{TOPIC_URL}" /></td>
</tr>
<!-- ENDIF -->

#
#-----[ ]------------------------------------------
#

styles/subsilver2/template/simple_header.html

#
#-----[ ]------------------------------------------
#

<head>

#
#-----[ ]------------------------------------------
#

{SEO_BASE_HREF}

#
#-----[ ]------------------------------------------
#

styles/subsilver2/template/viewtopic_body.html

#
#-----[ ]------------------------------------------
#

<a href="#wrapheader">

#
#-----[ ]------------------------------------------
#

<a href="{U_VIEW_TOPIC}#wrapheader">

#
#-----[ ]------------------------------------------
#

viewforum.php

#
#-----[ ]------------------------------------------
#

include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (empty($_REQUEST['f'])) {
$phpbb_seo->get_forum_id($session_forum_id);
if ($session_forum_id == 0) {
header('HTTP/1.1 404 Not Found');
} else {
$_REQUEST['f'] = (int) $session_forum_id;
}
}
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

if (!$forum_data)
{
trigger_error('NO_FORUM');
}

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_url($forum_data['forum_name'], $forum_data['forum_id'], $phpbb_seo->seo_static['forum']);
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

foreach ($topic_list as $topic_id)
{
$row = &$rowset[$topic_id];

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$cur_forum_id = ($row['forum_id']) ? (int) $row['forum_id'] : $forum_id;
$phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$cur_forum_id]);
// www.phpBB-SEO.com SEO TOOLKIT BEGIN

#
#-----[ ]------------------------------------------
#

viewtopic.php

#
#-----[ ]------------------------------------------
#

include($phpbb_root_path . 'includes/bbcode.' . $phpEx);

#
#-----[ ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (empty($_REQUEST['f'])) {
$phpbb_seo->get_forum_id($session_forum_id);
if ($session_forum_id > 0) {
$_REQUEST['f'] = (int) $session_forum_id;
}
}
if (!empty($_REQUEST['hilit'])) {
$_REQUEST['hilit'] = rawurldecode($_REQUEST['hilit']);
if (!$phpbb_seo->is_utf8($_REQUEST['hilit'])) {
$_REQUEST['hilit'] = utf8_normalize_nfc(utf8_recode($_REQUEST['hilit'], 'iso-8859-1'));
}
}
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ ]------------------------------------------
#

$forum_id = (int) $topic_data['forum_id'];
$topic_id = (int) $topic_data['topic_id'];

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_url($topic_data['forum_name'], $forum_id, $phpbb_seo->seo_static['forum']);
if ($topic_data['topic_type'] == POST_GLOBAL) {
// Let's make sure user will see global annoucements
$auth->cache[$forum_id]['f_read'] = 1;
$_parent = $phpbb_seo->seo_static['global_announce'];
} else {
$_parent = $phpbb_seo->seo_url['forum'][$forum_id];
}
if (!empty($phpbb_seo->seo_opt['sql_rewrite'])) {
if ( !$phpbb_seo->check_url('topic', $topic_data['topic_url'], $_parent)) {
if (!empty($topic_data['topic_url'])) {
// Here we get rid of the seo delim (-t) and put it back even in simple mod
// to be able to handle all cases at once
$_url = preg_replace('`' . $phpbb_seo->seo_delim['topic'] . '$`i', '', $topic_data['topic_url']);
$_title = $phpbb_seo->get_url_info('topic', $_url . $phpbb_seo->seo_delim['topic'] . $topic_id, 'title');
} else {
$_title = $phpbb_seo->modrtype > 2 ? censor_text($topic_data['topic_title']) : '';
}
unset($phpbb_seo->seo_url['topic'][$topic_id]);
$topic_data['topic_url'] = $phpbb_seo->get_url_info('topic', $phpbb_seo->prepare_url( 'topic', $_title, $topic_id, $_parent, (( empty($_title) || ($_title == $phpbb_seo->seo_static['topic']) ) ? true : false) ), 'url');
unset($phpbb_seo->seo_url['topic'][$topic_id]);
if ($topic_data['topic_url']) {
// Update the topic_url field for later re-use
$sql = "UPDATE " . TOPICS_TABLE . " SET topic_url = '" . $db->sql_escape($topic_data['topic_url']) . "'
WHERE topic_id = $topic_id";
$db->sql_query($sql);
}
}
} else {
$topic_data['topic_url'] = '';
}
$phpbb_seo->prepare_iurl($topic_data, 'topic', $_parent);
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
//$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id");
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

login_box($redirect_url . "&p=$post_id&e=$jump_to", $user->lang['LOGIN_NOTIFY_TOPIC']);

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
login_box(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&p=$post_id&e=$jump_to"), $user->lang['LOGIN_NOTIFY_TOPIC']);
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

redirect($redirect_url . ((!$post_id) ? "&p=$jump_to" : "&p=$post_id") . "#p$jump_to");

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id" . ((!$post_id) ? "&p=$jump_to" : "&p=$post_id")) . "#p$jump_to");
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'U_TOPIC' => "{$server_path}viewtopic.$phpEx?f=$forum_id&t=$topic_id",

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_TOPIC' => !empty($phpbb_seo->seo_opt['url_rewrite']) ? $phpbb_seo->drop_sid($viewtopic_url) : "{$server_path}viewtopic.$phpEx?f=$forum_id&t=$topic_id",
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'U_PRINT_TOPIC' => ($auth->acl_get('f_print', $forum_id)) ? $viewtopic_url . '&view=print' : '',

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_PRINT_TOPIC' => ($auth->acl_get('f_print', $forum_id)) ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&start=$start&" . ((strlen($u_sort_param)) ? "&$u_sort_param" : '') . (($highlight_match) ? "&hilit=$highlight" : '') . "&view=print") : '',
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'U_BOOKMARK_TOPIC' => ($user->data['is_registered'] && $config['allow_bookmarks']) ? $viewtopic_url . '&bookmark=1&hash=' . generate_link_hash("topic_$topic_id") : '',

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_BOOKMARK_TOPIC' => ($user->data['is_registered'] && $config['allow_bookmarks']) ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&bookmark=1&hash=" . generate_link_hash("topic_$topic_id")) : '',
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'U_VIEW_RESULTS' => $viewtopic_url . '&view=viewpoll')

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_RESULTS' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&view=viewpoll") )
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

$poster_id = (int) $row['poster_id'];

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$phpbb_seo->set_user_url( $row['username'], $poster_id );
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'L_IGNORE_POST' => ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '<a href="' . $viewtopic_url . "&p={$row['post_id']}&view=show#p{$row['post_id']}" . '">', '</a>') : '',

#
#-----[ ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'L_IGNORE_POST' => ($row['hide_post']) ? sprintf($user->lang['POST_BY_FOE'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&p={$row['post_id']}&view=show") . '#p' . $row['post_id'] . '">', '</a>') : '',
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'U_VIEW_UNREAD_POST' => '#unread',

#
#-----[ ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_UNREAD_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&start=$start") . '#unread',
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ ]------------------------------------------
#

'U_VIEW_UNREAD_POST' => '#unread',
#
#-----[ ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_UNREAD_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&start=$start") . '#unread',
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ / . ]------------------------------------------
#
# End of mod. . : hah








/ /
: Insident
16:53 08-10-2009
!
: hah
17:03 08-10-2009
..

.

(- , ) :
.

- viewforum.php?f=3 => /imeto-na-foruma-f3.html
- viewtopic.php?f=3&t=3 => /imeto-na-temata-t3.html
- memberlist.php?mode=viewprofile&u=3 => /imeto-na-user-a-u3.html
- memberlist.php?mode=leaders => /the-team.html
- .
- search.php?author_id=xx&sr=post|topics => /imeto-na-user-a-u3-posts/topics.html
- download/file.php?id=xx => recources/file/xx

-.

: www.fnsc.info
: batmanabg
13:28 22-07-2011
.
: Lentavia
8:06 02-03-2012
;/ ' ;/
1