mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 22:58:10 +01:00
Minor mods or fixes and PSO preview template
git-svn-id: file:///svn/phpbb/trunk@465 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5ece706945
commit
44ea5b9e50
@ -149,7 +149,7 @@ $lang['Post_new_in'] = "Post New Topic in:"; // Followed by forum name
|
||||
$lang['Post_Annoucement'] = "Post as an annoucement";
|
||||
$lang['Post_Sticky'] = "Stick this topic";
|
||||
$lang['Annouce_and_sticky'] = "You cannot post a topic that is both an annoucement and a sticky topic";
|
||||
|
||||
$lang['Preview'] = "Preview";
|
||||
|
||||
//
|
||||
// Private Messaging
|
||||
|
@ -861,9 +861,9 @@ if($error)
|
||||
// End: error handling
|
||||
//
|
||||
|
||||
if(!isset($username))
|
||||
if(empty($username))
|
||||
{
|
||||
$username = $userdata["username"];
|
||||
$username = $userdata['username'];
|
||||
}
|
||||
|
||||
//
|
||||
@ -879,12 +879,16 @@ if($preview)
|
||||
|
||||
$template->set_filenames(array("preview" => "posting_preview.tpl"));
|
||||
$template->assign_vars(array(
|
||||
"TOPIC_TITLE" => $subject,
|
||||
"ROW_COLOR" => $theme['td_color1'],
|
||||
"TOPIC_TITLE" => $subject,
|
||||
"POST_SUBJECT" => $subject,
|
||||
"ROW_COLOR" => "#" . $theme['td_color1'],
|
||||
"POSTER_NAME" => $username,
|
||||
"L_POSTED" => $lang['Posted'],
|
||||
"POST_DATE" => create_date($board_config['default_dateformat'], time(), $board_config['default_timezone']),
|
||||
"MESSAGE" => stripslashes(nl2br($preview_message))));
|
||||
"MESSAGE" => stripslashes(nl2br($preview_message)),
|
||||
|
||||
"L_PREVIEW" => $lang['Preview'],
|
||||
"L_POSTED" => $lang['Posted'])
|
||||
);
|
||||
$template->pparse("preview");
|
||||
}
|
||||
//
|
||||
@ -921,10 +925,11 @@ if($preview)
|
||||
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
|
||||
|
||||
$template->assign_vars(array(
|
||||
"L_POSTNEWIN" => $section_title,
|
||||
"FORUM_ID" => $forum_id,
|
||||
"FORUM_NAME" => $forum_name,
|
||||
|
||||
"L_POSTNEWIN" => $section_title,
|
||||
|
||||
"U_VIEW_FORUM" => append_sid("viewforum.$phpEx?".POST_FORUM_URL."=$forum_id"))
|
||||
);
|
||||
|
||||
@ -935,11 +940,11 @@ if($preview)
|
||||
}
|
||||
else
|
||||
{
|
||||
$username_input = '<input type="text" name="username" value="'.$username.'" size="25" maxlength="50">';
|
||||
$username_input = '<input type="text" name="username" value="' . $username . '" size="25" maxlength="50">';
|
||||
$password_input = '<input type="password" name="password" size="25" maxlenght="40">';
|
||||
}
|
||||
$subject_input = '<input type="text" name="subject" value="'.$subject.'" size="50" maxlenght="255">';
|
||||
$message_input = '<textarea name="message" rows="10" cols="35" wrap="virtual">'.$message.'</textarea>';
|
||||
$subject_input = '<input type="text" name="subject" value="'.$subject.'" size="50" maxlength="255">';
|
||||
$message_input = '<textarea name="message" rows="10" cols="40" wrap="virtual">'.$message.'</textarea>';
|
||||
|
||||
if($board_config['allow_html'])
|
||||
{
|
||||
@ -1034,7 +1039,7 @@ if($preview)
|
||||
"L_SUBJECT" => $l_subject,
|
||||
"L_MESSAGE_BODY" => $l_body,
|
||||
"L_OPTIONS" => $l_options,
|
||||
"L_PREVIEW" => $l_preview,
|
||||
"L_PREVIEW" => $lang['Preview'],
|
||||
"L_SUBMIT" => $l_submit,
|
||||
"L_CANCEL" => $l_cancelpost,
|
||||
|
||||
|
37
phpBB/templates/PSO/posting_preview.tpl
Normal file
37
phpBB/templates/PSO/posting_preview.tpl
Normal file
@ -0,0 +1,37 @@
|
||||
<div align="center"><table border="0" cellpadding="1" cellspacing="0" width="98%">
|
||||
<tr>
|
||||
<td bgcolor="{T_TH_COLOR1}"><table border="0" cellpadding="4" cellspacing="1" width="100%">
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="{T_TH_COLOR2}"><table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td><font face="{T_FONTFACE1}" size="{T_FONTSIZE3}"><b>{L_PREVIEW}</b></font></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" bgcolor="{T_TH_COLOR3}"><font face="{T_FONTFACE1}" size="{T_FONTSIZE2}"><b>{L_AUTHOR}</b></font></td>
|
||||
<td bgcolor="{T_TH_COLOR3}"><font face="{T_FONTFACE1}" size="{T_FONTSIZE2}"><b>{L_MESSAGE}</b></font></td>
|
||||
</tr>
|
||||
<tr bgcolor="{ROW_COLOR}">
|
||||
<td width="20%" align="left" valign="top"><table height="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td valign="top"><font face="{T_FONTFACE1}" size="{T_FONTSIZE2}"><b>{POSTER_NAME}</b></font><br><br></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="80%" height="100%"><table width="100%" height="100%" cellspacing="1" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td><img src="images/posticon.gif" alt="Post image icon"><font face="{T_FONTFACE1}" size="{T_FONTSIZE1}">{L_POSTED}: {POST_DATE} Post Subject: {POST_SUBJECT}</font><hr></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="100%" valign="top"><font face="{T_FONTFACE3}" size="{T_FONTSIZE2}" color="{T_FONTCOLOR1}">{MESSAGE}</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><hr></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table></div>
|
||||
|
||||
<br clear="all" />
|
Loading…
x
Reference in New Issue
Block a user