diff --git a/e107_core/bbcodes/quote.bb b/e107_core/bbcodes/quote.bb
index fa549245e..292dc74ce 100644
--- a/e107_core/bbcodes/quote.bb
+++ b/e107_core/bbcodes/quote.bb
@@ -2,4 +2,12 @@
$class = e107::getBB()->getClass('quote');
include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_parser_functions.php");
+if(deftrue('BOOTSTRAP'))
+{
+ return '
";
- return $text;
+ return $text;*/
@@ -222,9 +354,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
function sc_poll($parm='')
{
- global $forum, $action;
-
- if(is_readable(e_PLUGIN."poll/poll_class.php"))
+ if(is_readable(e_PLUGIN."poll/poll_class.php"))
{
require_once(e_PLUGIN."poll/poll_class.php");
$pollo = new poll;
@@ -234,7 +364,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
}
- if ($action == 'nt' && check_class($forum->prefs->get('poll')) && strpos(e_QUERY, 'edit') === false)
+ if ($this->var['action'] == 'nt' && check_class($this->forum->prefs->get('poll')) && strpos(e_QUERY, 'edit') === false)
{
if($parm == 'front')
{
@@ -252,15 +382,14 @@ class plugin_forum_post_shortcodes extends e_shortcode
function sc_postthreadas()
{
- global $action, $threadInfo;
-
- if (MODERATOR && $action == "nt")
+
+ if (MODERATOR && $this->var['action'] == "nt")
{
- $thread_sticky = (isset($_POST['threadtype']) ? $_POST['threadtype'] : vartrue($threadInfo['thread_sticky'],0)); // no reference of 'head' $threadInfo['head']['thread_sticky']
+ $thread_sticky = (isset($_POST['threadtype']) ? $_POST['threadtype'] : vartrue($this->var['thread_sticky'],0)); // no reference of 'head' $threadInfo['head']['thread_sticky']
$opts = array(0 => LAN_FORUM_3038, 1 => LAN_FORUM_1011, 2 => LAN_FORUM_1013);
- return e107::getForm()->radio('threadtype',$opts, $thread_sticky);
+ return "
+
+
+
+
+
+
+
{BUTTONS}
{FORMEND}
+
+
";
-$FORUMPOST_TEMPLATE['reply'] = "";
+
+
+
+$FORUM_POST_TEMPLATE['reply'] = "";
diff --git a/e107_plugins/forum/templates/forum_posted_template.php b/e107_plugins/forum/templates/forum_posted_template.php
index e3c1b5502..4763c727d 100644
--- a/e107_plugins/forum/templates/forum_posted_template.php
+++ b/e107_plugins/forum/templates/forum_posted_template.php
@@ -20,8 +20,8 @@ $FORUMPOLLPOSTED ="
";
@@ -36,8 +36,8 @@ $FORUMTHREADPOSTED = "
";
@@ -53,10 +53,33 @@ $FORUMREPLYPOSTED = "
";
+
+//v2.x ------------ Bootstrap ---------------------
+
+
+$FORUM_POSTED_TEMPLATE['poll'] = $FORUMPOLLPOSTED;
+
+$FORUM_POSTED_TEMPLATE['thread'] = "
";
+
+$FORUM_POSTED_TEMPLATE['reply'] = "
";
+
+
+
+
+
+
?>
\ No newline at end of file
diff --git a/e107_plugins/forum/templates/forum_preview_template.php b/e107_plugins/forum/templates/forum_preview_template.php
index ae71a0170..b7e5e220f 100644
--- a/e107_plugins/forum/templates/forum_preview_template.php
+++ b/e107_plugins/forum/templates/forum_preview_template.php
@@ -9,18 +9,26 @@
*/
if (!defined('e107_INIT')) { exit; }
-if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%;margin-left:auto;margin-right:auto"); }
+if(!defined("USER_WIDTH") && !deftrue('BOOTSTRAP')){ define("USER_WIDTH","width:95%;margin-left:auto;margin-right:auto"); }
-$FORUM_PREVIEW = "
+$FORUM_PREVIEW = "
".LAN_FORUM_3005.
- ($action != "nt" ? " | " : " ( ".LAN_FORUM_3011.": ".$tsubject." )")."
+ ($action != "nt" ? "" : " ( ".LAN_FORUM_3011.": {PREVIEW_SUBJECT} )")."
-
+
";
+
+
+//v2.x Bootstrap
+$FORUM_PREVIEW_TEMPLATE['item'] = "
+
{PREVIEW_SUBJECT}
+ {PREVIEW_POST}
+
";
+
?>
\ No newline at end of file
diff --git a/e107_plugins/forum/url/url.php b/e107_plugins/forum/url/url.php
index 3c7baa719..e4a92d5e5 100644
--- a/e107_plugins/forum/url/url.php
+++ b/e107_plugins/forum/url/url.php
@@ -108,7 +108,7 @@ class plugin_forum_url extends eUrlConfig
break;
case 'edit':
- return $base."forum_post.php?f=edit{$amp}id={$params['id']}";
+ return $base."forum_post.php?f=edit{$amp}id={$params['id']}{$amp}post={$params['post']}";
break;
case 'move':
@@ -120,7 +120,7 @@ class plugin_forum_url extends eUrlConfig
break;
case 'quote':
- return $base."forum_post.php?f=quote{$amp}id={$params['id']}";
+ return $base."forum_post.php?f=quote{$amp}id={$params['id']}{$amp}post={$params['post']}";
break;
case 'next':
diff --git a/e107_plugins/poll/poll_class.php b/e107_plugins/poll/poll_class.php
index 4c791a0d8..a38879db9 100644
--- a/e107_plugins/poll/poll_class.php
+++ b/e107_plugins/poll/poll_class.php
@@ -632,9 +632,14 @@ class poll
".LAN_FORUM_3029."
-
-
-
";
+
+
+ // $text .= "
";
+ ";
//FIXME - get this looking good with Bootstrap CSS only.
@@ -681,6 +686,8 @@ class poll
";
+
+ // $text .= "";
return $text;