From 9c0c421cf16aa94e1fe3136757c88d7a1af0619d Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 5 Jan 2014 13:54:37 +0000 Subject: [PATCH 1/5] Let facebook and others detect image, desc and link themselves (for now) --- Themes/default/index.template.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Themes/default/index.template.php b/Themes/default/index.template.php index 04f791d..ddc6872 100644 --- a/Themes/default/index.template.php +++ b/Themes/default/index.template.php @@ -30,11 +30,14 @@ function template_main_above() - + '; +/* +*/ + echo' From 36832c7018e55376287ce2a3aa9b27e880625fad Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 5 Jan 2014 13:55:13 +0000 Subject: [PATCH 2/5] update ccs version --- Themes/default/index.template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Themes/default/index.template.php b/Themes/default/index.template.php index ddc6872..1168847 100644 --- a/Themes/default/index.template.php +++ b/Themes/default/index.template.php @@ -77,7 +77,7 @@ function template_main_above() } echo ' - '; + '; // Show all the relative links, such as help, search, contents, and the like. echo ' From af9cbb3e5894f63d3ecae25a892c5db5a8e47bb9 Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 5 Jan 2014 13:56:27 +0000 Subject: [PATCH 3/5] Add new year snow --- Themes/default/index.template.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Themes/default/index.template.php b/Themes/default/index.template.php index 1168847..7a85cbc 100644 --- a/Themes/default/index.template.php +++ b/Themes/default/index.template.php @@ -41,8 +41,12 @@ function template_main_above() - - + + '; + if (! defined('MOBILE')) + echo ' + '; + echo ' From bede9eddf8a86a8c499bd2f7957e3010fa18b0af Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 5 Jan 2014 13:56:50 +0000 Subject: [PATCH 4/5] Fix some links --- Themes/default/index.template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Themes/default/index.template.php b/Themes/default/index.template.php index 7a85cbc..a0b5185 100644 --- a/Themes/default/index.template.php +++ b/Themes/default/index.template.php @@ -153,12 +153,12 @@ function template_main_above() // This part is the logo and forum name. You should be able to change this to whatever you want... echo ' - На главную страница форума'; + Российский рок-портал'; echo ' - Главная - Новости - Тексты песен - Рецензии - Чат - Хостинг для картинок
+ Главная - Новости - Тексты песен - Рецензии - Чат - Хостинг для картинок
'; ?> From b80cc53461b2fadcf0b5684c3571122f3a0a5c74 Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 5 Jan 2014 19:38:48 +0000 Subject: [PATCH 5/5] Add rudimental pinba script name mangling code --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index d1d71ed..718dd93 100644 --- a/index.php +++ b/index.php @@ -196,12 +196,14 @@ function smf_main() if (empty($board) && empty($topic)) { require_once($sourcedir . '/BoardIndex.php'); + pinba_script_name_set("/forum/BoardIndex.php"); return 'BoardIndex'; } // Topic is empty, and action is empty.... MessageIndex! elseif (empty($topic)) { require_once($sourcedir . '/MessageIndex.php'); + pinba_script_name_set("/forum/MessageIndex.php"); return 'MessageIndex'; } // Board is not empty... topic is not empty... action is empty.. Display! @@ -209,6 +211,7 @@ function smf_main() { require_once($sourcedir . '/Subs-Post.php'); require_once($sourcedir . '/Display.php'); + pinba_script_name_set("/forum/Display.php"); return 'Display'; } } @@ -358,6 +361,7 @@ function smf_main() return 'BoardIndex'; } + pinba_script_name_set("/forum/{$actionArray[$_REQUEST['action']][0]}/{$actionArray[$_REQUEST['action']][1]}"); # . isset($_REQUEST['sa']) ? "/{$_REQUEST['sa']}/" : ""); // Otherwise, it was set - so let's go to that action. require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]); return $actionArray[$_REQUEST['action']][1];