diff --git a/e107_themes/lamb/forum_post_template.php b/e107_themes/lamb/forum_post_template.php index 5a7f1fbda..95b465a58 100644 --- a/e107_themes/lamb/forum_post_template.php +++ b/e107_themes/lamb/forum_post_template.php @@ -11,38 +11,52 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_themes/lamb/forum_post_template.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-01-20 16:31:55 $ -| $Author: mrpete $ +| $Revision: 1.3 $ +| $Date: 2007-02-19 22:26:00 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } +if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); } // the user box and subject box are not always displayed, therefore we need to define them /in case/ they are, if not they'll be ignored. +if(!isset($userbox)) +{ $userbox = " ".LAN_61." "; +} +if(!isset($subjectbox)) +{ $subjectbox = " ".LAN_62." "; +} + // the poll is optional, be careful when changing the values here, only change if you know what you're doing ... +if(!isset($poll_form)) +{ + if(is_readable(e_PLUGIN."poll/poll_class.php")) { + require_once(e_PLUGIN."poll/poll_class.php"); + $pollo = new poll; + $poll_form = $pollo -> renderPollForm("forum"); + } +} -require_once(e_PLUGIN."poll/poll_class.php"); -$pollo = new poll; -$poll = $pollo -> renderPollForm("forum"); // finally, file attach is optional, again only change this if you know what you're doing ... - +if(!isset($fileattach)) +{ $fileattach = "".($pref['image_post'] ? LAN_390 : LAN_416)." ".LAN_392." ".LAN_393." | ".$allowed_filetypes." |
".LAN_394."
".LAN_395.": ".($pref['upload_maxfilesize'] ? $pref['upload_maxfilesize'].LAN_396 : ini_get('upload_max_filesize'))." @@ -56,10 +70,12 @@ $fileattach = "".($pref['image_post'] "; - +} // ------------ +if (!isset($FORUMPOST)) +{ $FORUMPOST = "
{FORMSTART} @@ -89,7 +105,125 @@ $FORUMPOST = "
{FORUMJUMP} "; +} + +if(!isset($FORUMPOST_REPLY)) +{ +$FORUMPOST_REPLY = " +
+
+{FORMSTART} + + + + +{USERBOX} +{SUBJECTBOX} + + + + + +{POLL} + +{FILEATTACH} + + + + +
{BACKLINK} +
{POSTTYPE} +{POSTBOX}
{EMAILNOTIFY}
{POSTTHREADAS} +
+{BUTTONS} +
+{FORMEND} + + + + + +
+{FORUMJUMP} +
+
+
+{THREADTOPIC} +{LATESTPOSTS} +
+"; +} + +// From here copied in from default templates +if(!$LATESTPOSTS_START) +{ +$LATESTPOSTS_START = " + + + +"; +} + +if(!$LATESTPOSTS_POST) +{ +$LATESTPOSTS_POST = " + + + + +"; +} + +if(!$LATESTPOSTS_END) +{ +$LATESTPOSTS_END = " +
". +LAN_101."{LATESTPOSTSCOUNT}".LAN_102." +
{POSTER} +
".IMAGE_post2." ".LAN_322."{THREADDATESTAMP}
+ {POST} +
+"; +} + +if(!$THREADTOPIC_REPLY) +{ +$THREADTOPIC_REPLY = " + + + + + + + + +
".LAN_100."
{POSTER} +
".IMAGE_post2." ".LAN_322."{THREADDATESTAMP}
{POST} +
+"; +} + +$FORUM_CRUMB['sitename']['value'] = "{SITENAME}"; +$FORUM_CRUMB['sitename']['sep'] = " :: "; + +$FORUM_CRUMB['forums']['value'] = "{FORUMS_TITLE}"; +$FORUM_CRUMB['forums']['sep'] = " :: "; + +$FORUM_CRUMB['parent']['value'] = "{PARENT_TITLE}"; +$FORUM_CRUMB['parent']['sep'] = " :: "; + +$FORUM_CRUMB['subparent']['value'] = "{SUBPARENT_TITLE}"; +$FORUM_CRUMB['subparent']['sep'] = " :: "; + +$FORUM_CRUMB['forum']['value'] = "{FORUM_TITLE}"; +$FORUM_CRUMB['forum']['sep'] = " :: "; + +$FORUM_CRUMB['thread']['value'] = "{THREAD_TITLE}"; + + +/* +This lot not in the default template, so presumably redundant $FORUMTHREADPOSTED = " @@ -115,6 +249,6 @@ $FORUMREPLYPOSTED = " ".LAN_326."

"; - +*/ ?> \ No newline at end of file