[Customisation Database Commits] r257 - in /trunk/titania: includes/objects/ language/en/ styles/default/template/ styles/default/template/authors/ styles/default/template/contributions/

Nathan Guse exreaction at phpbb.com
Fri Jun 26 01:36:46 UTC 2009


Author: exreaction
Date: Fri Jun 26 01:36:45 2009
New Revision: 257

Log:
Started working on the author details/editing author details, but my brain is too fried to continue for now.

Added:
    trunk/titania/styles/default/template/authors/author_edit.html   (with props)
    trunk/titania/styles/default/template/posting_text.html   (with props)
Modified:
    trunk/titania/includes/objects/author.php
    trunk/titania/includes/objects/contribution.php
    trunk/titania/language/en/authors.php
    trunk/titania/styles/default/template/authors/author_details.html
    trunk/titania/styles/default/template/contributions/contribution_details.html

Modified: trunk/titania/includes/objects/author.php
==============================================================================
*** trunk/titania/includes/objects/author.php (original)
--- trunk/titania/includes/objects/author.php Fri Jun 26 01:36:45 2009
***************
*** 42,47 ****
--- 42,54 ----
  	protected $sql_id_field		= 'user_id';
  
  	/**
+ 	 * Description parsed for storage
+ 	 *
+ 	 * @var bool
+ 	 */
+ 	private $description_parsed_for_storage = false;
+ 
+ 	/**
  	 * Rating of this author
  	 *
  	 * @var titania_rating
***************
*** 66,75 ****
  			'author_rating_count'	=> array('default' => 0),
  
  			'author_contribs'		=> array('default' => 0),
- 			'author_snippets'		=> array('default' => 0),
  			'author_mods'			=> array('default' => 0),
  			'author_styles'			=> array('default' => 0),
  			'author_visible'		=> array('default' => TITANIA_AUTHOR_VISIBLE),
  		));
  
  		if ($user_id !== false)
--- 73,87 ----
  			'author_rating_count'	=> array('default' => 0),
  
  			'author_contribs'		=> array('default' => 0),
  			'author_mods'			=> array('default' => 0),
  			'author_styles'			=> array('default' => 0),
+ 			'author_snippets'		=> array('default' => 0),
  			'author_visible'		=> array('default' => TITANIA_AUTHOR_VISIBLE),
+ 
+ 			'author_desc'			=> array('default' => ''),
+ 			'author_desc_bitfield'	=> array('default' => ''),
+ 			'author_desc_uid'		=> array('default' => ''),
+ 			'author_desc_options'	=> array('default', 7),
  		));
  
  		if ($user_id !== false)
***************
*** 133,138 ****
--- 145,202 ----
  	}
  
  	/**
+ 	 * Submit data for storing into the database
+ 	 *
+ 	 * @return bool
+ 	 */
+ 	public function submit()
+ 	{
+ 		// Nobody parsed the text for storage before. Parse text with lowest settings.
+ 		if (!$this->description_parsed_for_storage)
+ 		{
+ 			$this->generate_text_for_storage(false, false, false);
+ 		}
+ 
+ 		return parent::submit();
+ 	}
+ 
+ 	/**
+ 	 * Generate text for storing description into the database
+ 	 *
+ 	 * @param bool $allow_bbcode
+ 	 * @param bool $allow_urls
+ 	 * @param bool $allow_smilies
+ 	 *
+ 	 * @return void
+ 	 */
+ 	public function generate_text_for_storage($allow_bbcode, $allow_urls, $allow_smilies)
+ 	{
+ 		generate_text_for_storage($this->author_desc, $this->author_desc_uid, $this->author_desc_bitfield, $this->author_desc_options, $allow_bbcode, $allow_urls, $allow_smilies);
+ 
+ 		$this->description_parsed_for_storage = true;
+ 	}
+ 
+ 	/**
+ 	 * Parse description for display
+ 	 *
+ 	 * @return string
+ 	 */
+ 	private function generate_text_for_display()
+ 	{
+ 		return generate_text_for_display($this->author_desc, $this->author_desc_uid, $this->author_desc_bitfield, $this->author_desc_options);
+ 	}
+ 
+ 	/**
+ 	 * Parse description for edit
+ 	 *
+ 	 * @return string
+ 	 */
+ 	private function generate_text_for_edit()
+ 	{
+ 		return generate_text_for_edit($this->author_desc, $this->author_desc_uid, $this->author_desc_options);
+ 	}
+ 
+ 	/**
  	 * Get the rating as an object
  	 *
  	 * @return titania_rating
***************
*** 221,229 ****
--- 285,301 ----
  			'AUTHOR_NAME'					=> $this->username,
  			'AUTHOR_NAME_FULL'				=> $this->get_username_string(),
  			'AUTHOR_REALNAME'				=> $this->author_realname,
+ 			'AUTHOR_WEBSITE'				=> $this->author_website,
+ 
  			'AUTHOR_RATING'					=> $this->author_rating,
+ 			'AUTHOR_RATING_STRING'			=> (isset($this->rating)) ? $this->rating->get_rating_string() : '',
  			'AUTHOR_RATING_COUNT'			=> $this->author_rating_count,
  
+ 			'AUTHOR_CONTRIBS'				=> $this->author_contribs,
+ 			'AUTHOR_MODS'					=> $this->author_mods,
+ 			'AUTHOR_STYLES'					=> $this->author_styles,
+ 			'AUTHOR_SNIPPETS'				=> $this->author_snippets,
+ 
  			'U_AUTHOR_PROFILE'				=> $this->get_url(),
  			'U_AUTHOR_PROFILE_PHPBB'		=> $this->get_phpbb_profile_url(),
  			'U_AUTHOR_PROFILE_PHPBB_COM'	=> $this->get_phpbb_com_profile_url(),

Modified: trunk/titania/includes/objects/contribution.php
==============================================================================
*** trunk/titania/includes/objects/contribution.php (original)
--- trunk/titania/includes/objects/contribution.php Fri Jun 26 01:36:45 2009
***************
*** 84,92 ****
  			'contrib_name_clean'			=> array('default' => '',	'max' => 255),
  
  			'contrib_desc'					=> array('default' => ''),
! 			'contrib_desc_bitfield'			=> array('default' => '',	'readonly' => true),
! 			'contrib_desc_uid'				=> array('default' => '',	'readonly' => true),
! 			'contrib_desc_options'			=> array('default' => 7,	'readonly' => true),
  
  			'contrib_status'				=> array('default' => TITANIA_STATUS_NEW),
  
--- 84,92 ----
  			'contrib_name_clean'			=> array('default' => '',	'max' => 255),
  
  			'contrib_desc'					=> array('default' => ''),
! 			'contrib_desc_bitfield'			=> array('default' => ''),
! 			'contrib_desc_uid'				=> array('default' => ''),
! 			'contrib_desc_options'			=> array('default' => 7),
  
  			'contrib_status'				=> array('default' => TITANIA_STATUS_NEW),
  
***************
*** 238,252 ****
  	}
  
  	/**
- 	* Get contrib data
- 	*/
- 	public function get_data()
- 	{
- 		return $this->sql_data;
- 	}
- 
- 
- 	/**
  	 * Generate text for storing description into the database
  	 *
  	 * @param bool $allow_bbcode
--- 238,243 ----
***************
*** 259,265 ****
  	{
  		generate_text_for_storage($this->contrib_desc, $this->contrib_desc_uid, $this->contrib_desc_bitfield, $this->contrib_desc_options, $allow_bbcode, $allow_urls, $allow_smilies);
  
! 		$this->text_parsed_for_storage = true;
  	}
  
  	/**
--- 250,256 ----
  	{
  		generate_text_for_storage($this->contrib_desc, $this->contrib_desc_uid, $this->contrib_desc_bitfield, $this->contrib_desc_options, $allow_bbcode, $allow_urls, $allow_smilies);
  
! 		$this->description_parsed_for_storage = true;
  	}
  
  	/**

Modified: trunk/titania/language/en/authors.php
==============================================================================
*** trunk/titania/language/en/authors.php (original)
--- trunk/titania/language/en/authors.php Fri Jun 26 01:36:45 2009
***************
*** 39,54 ****
  	'AUTHOR_CONTRIBUTIONS'		=> 'Contributions',
  	'AUTHOR_DETAILS'			=> 'Author Details',
  	'AUTHOR_NOT_FOUND'			=> 'Author not found',
! 	'AUTHOR_SUPPORT'			=> 'Support/Discussion',
  
! 	'NUM_CONTRIB'				=> '%s Contribution',
! 	'NUM_CONTRIBS'				=> '%s Contributions',
! 	'NUM_MOD'					=> '%s MOD',
! 	'NUM_MODS'					=> '%s MODs',
! 	'NUM_SNIPPET'				=> '%s Snippet',
! 	'NUM_SNIPPETS'				=> '%s Snippets',
! 	'NUM_STYLE'					=> '%s Style',
! 	'NUM_STYLES'				=> '%s Styles',
  
  	'PHPBB_PROFILE'				=> 'phpBB.com profile',
  
--- 39,54 ----
  	'AUTHOR_CONTRIBUTIONS'		=> 'Contributions',
  	'AUTHOR_DETAILS'			=> 'Author Details',
  	'AUTHOR_NOT_FOUND'			=> 'Author not found',
! 	'AUTHOR_SUPPORT'			=> 'Support',
! 	'AUTHOR_RATING' => 'Author Rating',
! 	'AUTHOR_CONTRIBS' => 'Author Contributions',
! 	'AUTHOR_STATISTICS' => 'Author Statistics',
  
! 	'AUTHOR_CONTRIBS' => 'Contributions',
! 	'AUTHOR_MODS' => 'Modifications',
! 	'AUTHOR_STYLES' => 'Styles',
! 	'AUTHOR_SNIPPETS' => 'Snippets',
! 	'AUTHOR_DESC' => 'Author Description',
  
  	'PHPBB_PROFILE'				=> 'phpBB.com profile',
  

Modified: trunk/titania/styles/default/template/authors/author_details.html
==============================================================================
*** trunk/titania/styles/default/template/authors/author_details.html (original)
--- trunk/titania/styles/default/template/authors/author_details.html Fri Jun 26 01:36:45 2009
***************
*** 1,37 ****
  <!-- INCLUDE authors/author_header.html -->
  
! <div class="column1">
! <div class="panel bg1">
! 	<div class="inner"><span class="corners-top"><span></span></span>
! 
! 	<h3>{AUTHOR_NAME} {L_USER_INFORMATION}</h3>
! 
! 	<dl class="details" style="float: left; display: block; width: 60%;">
  
! 		<dt>{L_AUTHOR}:</dt> <dd>{USER_FULL}</dd>
! 		<dt>{L_REAL_NAME}:</dt> <dd>{REAL_NAME}</dd>
! 		<dt>{L_WEBSITE}:</dt> <dd>{WEBSITE}</dd>
!     <!-- IF U_PHPBB_PROFILE -->
! 	    <dt style="margin-bottom: 22px;">{L_PHPBB_PROFILE}:</dt> <dd><a href="{U_PHPBB_PROFILE}">{L_PHPBB_PROFILE}</a></dd>
!     <!-- ENDIF -->
! 	</dl>
! 	<span class="corners-bottom"><span></span></span></div>
! </div>
  </div>
  
  <div class="column2">
! <div class="panel bg2">
! 	<div class="inner"><span class="corners-top"><span></span></span>
! 		<h3>{L_MODO_ADVANCED}</h3>
! 		<dl class="details" style="float: left; display: block; width: 60%;">
! 			<dt>{L_AUTHOR_RATING}:</dt> <dd>{RATING} ({RATING_COUNT})</dd>
! 			<dt>{L_AUTHOR_CONTRIBS}:</dt> <dd>{CONTRIB_COUNT}</dd>
! 			<dt>{L_AUTHOR_SNIPPETS}:</dt> <dd>{SNIPPET_COUNT}</dd>
!             <dt>{L_AUTHOR_MODS}: </dt> <dd>{MOD_COUNT}</dd>
! 			<dt>{L_AUTHOR_STYLES}:</dt> <dd>{STYLE_COUNT}</dd>
! 		</dl>
! 	<span class="corners-bottom"><span></span></span></div>
! </div>
  </div>
  
  <!-- INCLUDE authors/author_footer.html -->
\ No newline at end of file
--- 1,60 ----
  <!-- INCLUDE authors/author_header.html -->
  
! <h2 class="section-title">{PAGE_TITLE} :: {L_DETAILS}</h2>
  
! <div class="column1">
! 	<h3>{L_AUTHOR_DETAILS}</h3>
! 	<table>
! 		<tr>
! 			<td align="right"><strong>{L_AUTHOR}:</strong></td>
! 			<td align="left">{AUTHOR_NAME_FULL}</td>
! 		</tr>
! 		<!-- IF AUTHOR_REALNAME -->
! 		<tr>
! 			<td align="right"><strong>{L_REAL_NAME}:</strong></td>
! 			<td align="left">{AUTHOR_REALNAME}</td>
! 		</tr>
! 		<!-- ENDIF -->
! 		<!-- IF WEBSITE -->
! 		<tr>
! 			<td align="right"><strong>{L_WEBSITE}:</strong></td>
! 			<td align="left">{WEBSITE}</td>
! 		</tr>
! 		<!-- ENDIF -->
! 	</table>
  </div>
  
  <div class="column2">
! 	<h3>{L_AUTHOR_STATISTICS}</h3>
! 	<table>
! 		<tr>
! 			<td align="right"><strong>{L_AUTHOR_RATING}:</strong></td>
! 			<td align="left">{AUTHOR_RATING_STRING} ({AUTHOR_RATING_COUNT})</td>
! 		</tr>
! 		<tr>
! 			<td align="right"><strong>{L_AUTHOR_CONTRIBS}:</strong></td>
! 			<td align="left">{AUTHOR_CONTRIBS}</td>
! 		</tr>
! 		<tr>
! 			<td align="right"><strong>{L_AUTHOR_MODS}:</strong></td>
! 			<td align="left">{AUTHOR_MODS}</td>
! 		</tr>
! 		<tr>
! 			<td align="right"><strong>{L_AUTHOR_STYLES}:</strong></td>
! 			<td align="left">{AUTHOR_STYLES}</td>
! 		</tr>
! 		<tr>
! 			<td align="right"><strong>{L_AUTHOR_SNIPPETS}:</strong></td>
! 			<td align="left">{AUTHOR_SNIPPETS}</td>
! 		</tr>
! 	</table>
  </div>
  
+ <div class="clear"></div>
+ 
+ <!-- IF AUTHOR_DESC -->
+ <h3>{L_AUTHOR_DESC}</h3>
+ {AUTHOR_DESC}
+ <!-- ENDIF -->
+ 
  <!-- INCLUDE authors/author_footer.html -->
\ No newline at end of file

Added: trunk/titania/styles/default/template/authors/author_edit.html
==============================================================================
*** trunk/titania/styles/default/template/authors/author_edit.html (added)
--- trunk/titania/styles/default/template/authors/author_edit.html Fri Jun 26 01:36:45 2009
***************
*** 0 ****
--- 1,31 ----
+ <!-- INCLUDE authors/author_header.html -->
+ 
+ <h2 class="section-title">{PAGE_TITLE} :: {L_DETAILS}</h2>
+ 
+ <form id="postform" method="post" action="{S_POST_ACTION}"{S_FORM_ENCTYPE}>
+ 
+ <div class="column1">
+ 	<h3>{L_AUTHOR_DETAILS}</h3>
+ 	<table>
+ 		<tr>
+ 			<td align="right"><strong>{L_REAL_NAME}:</strong></td>
+ 			<td align="left">{AUTHOR_REALNAME}</td>
+ 		</tr>
+ 		<tr>
+ 			<td align="right"><strong>{L_WEBSITE}:</strong></td>
+ 			<td align="left">{WEBSITE}</td>
+ 		</tr>
+ 	</table>
+ </div>
+ 
+ <div class="clear"></div>
+ 
+ <div class="column1">
+ 	<h3>{L_AUTHOR_DESCRIPTION}</h3>
+ 
+ 	<!-- INCLUDE posting_text.html -->
+ </div>
+ 
+ </form>
+ 
+ <!-- INCLUDE authors/author_footer.html -->
\ No newline at end of file

Propchange: trunk/titania/styles/default/template/authors/author_edit.html
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: trunk/titania/styles/default/template/contributions/contribution_details.html
==============================================================================
*** trunk/titania/styles/default/template/contributions/contribution_details.html (original)
--- trunk/titania/styles/default/template/contributions/contribution_details.html Fri Jun 26 01:36:45 2009
***************
*** 1,68 ****
  <!-- INCLUDE contributions/contribution_header.html -->
  
! 	<h2 class="section-title">{PAGE_TITLE} :: {L_DETAILS}</h2>
  
! 	<div class="column1">
! 		<h3>{L_CONTRIB_DETAILS}</h3>
! 		<table>
! 			<tr>
! 				<td align="right"><strong>{L_CONTRIB_TITLE}:</strong></td>
! 				<td align="left">{CONTRIB_TITLE}</td>
! 			</tr>
! 			<tr>
! 				<td align="right"><strong>{L_DOWNLOADS_TOTAL}:</strong></td>
! 				<td align="left">{CONTRIB_DOWNLOADS}<!-- IF CONTRIB_DOWNLOADS_PER_DAY --> ({CONTRIB_DOWNLOADS_PER_DAY})<!-- ENDIF --></td>
! 			</tr>
! 			<tr>
! 				<td align="right"><strong>{L_RATING}:</strong></td>
! 				<td align="left">{CONTRIB_RATING_STRING} ({CONTRIB_RATING_COUNT})</td>
! 			</tr>
! 			<!-- IF DOWNLOAD_SIZE -->
! 			<tr>
! 				<td align="right"><strong>{L_FILESIZE}:</strong></td>
! 				<td align="left">{DOWNLOAD_SIZE}</td>
! 			</tr>
! 			<!-- ENDIF -->
! 			<!-- IF DOWNLOAD_CHECKSUM -->
! 			<tr>
! 				<td align="right"><strong>{L_DOWNLOAD_CHECKSUM}:</strong></td>
! 				<td align="left">{DOWNLOAD_CHECKSUM}</td>
! 			</tr>
! 			<!-- ENDIF -->
! 			<!-- IF CONTRIB_RELEASE_DATE -->
! 			<tr>
! 				<td align="right"><strong>{L_CONTRIB_RELEASE_DATE}:</strong></td>
! 				<td align="left">{CONTRIB_RELEASE_DATE}</td>
! 			</tr>
! 			<!-- ENDIF -->
! 			<!-- IF CONTRIB_UPDATE_DATE -->
! 			<tr>
! 				<td align="right"><strong>{L_CONTRIB_UPDATE_DATE}:</strong></td>
! 				<td align="left">{CONTRIB_UPDATE_DATE}</td>
! 			</tr>
! 			<!-- ENDIF -->
! 		</table>
! 	</div>
  
! 	<div class="column2">
! 		<h3>{L_AUTHOR_DETAILS}</h3>
! 		<table>
! 			<tr>
! 				<td align="right"><strong>{L_CONTRIB_AUTHOR}:</strong></td>
! 				<td align="left">{AUTHOR_NAME_FULL}<!-- IF AUTHOR_REALNAME --> ({AUTHOR_REALNAME})<!-- ENDIF --></td>
! 			</tr>
! 			<tr>
! 				<td align="right"><strong>{L_CONTRIBUTIONS}:</strong></td>
! 				<td align="left"><a href="{U_AUTHOR_CONTRIBUTIONS}">{L_LIST}</a></td>
! 			</tr>
! 		</table>
! 	</div>
  
! 	<div class="clear"></div>
  
! 	<!-- IF CONTRIB_DESC -->
! 	<h3>{L_CONTRIB_DESCRIPTION}</h3>
! 	{CONTRIB_DESC}
! 	<!-- ENDIF -->
  
  <!-- INCLUDE contributions/contribution_footer.html -->
\ No newline at end of file
--- 1,68 ----
  <!-- INCLUDE contributions/contribution_header.html -->
  
! <h2 class="section-title">{PAGE_TITLE} :: {L_DETAILS}</h2>
  
! <div class="column1">
! 	<h3>{L_CONTRIB_DETAILS}</h3>
! 	<table>
! 		<tr>
! 			<td align="right"><strong>{L_CONTRIB_TITLE}:</strong></td>
! 			<td align="left">{CONTRIB_TITLE}</td>
! 		</tr>
! 		<tr>
! 			<td align="right"><strong>{L_DOWNLOADS_TOTAL}:</strong></td>
! 			<td align="left">{CONTRIB_DOWNLOADS}<!-- IF CONTRIB_DOWNLOADS_PER_DAY --> ({CONTRIB_DOWNLOADS_PER_DAY})<!-- ENDIF --></td>
! 		</tr>
! 		<tr>
! 			<td align="right"><strong>{L_RATING}:</strong></td>
! 			<td align="left">{CONTRIB_RATING_STRING} ({CONTRIB_RATING_COUNT})</td>
! 		</tr>
! 		<!-- IF DOWNLOAD_SIZE -->
! 		<tr>
! 			<td align="right"><strong>{L_FILESIZE}:</strong></td>
! 			<td align="left">{DOWNLOAD_SIZE}</td>
! 		</tr>
! 		<!-- ENDIF -->
! 		<!-- IF DOWNLOAD_CHECKSUM -->
! 		<tr>
! 			<td align="right"><strong>{L_DOWNLOAD_CHECKSUM}:</strong></td>
! 			<td align="left">{DOWNLOAD_CHECKSUM}</td>
! 		</tr>
! 		<!-- ENDIF -->
! 		<!-- IF CONTRIB_RELEASE_DATE -->
! 		<tr>
! 			<td align="right"><strong>{L_CONTRIB_RELEASE_DATE}:</strong></td>
! 			<td align="left">{CONTRIB_RELEASE_DATE}</td>
! 		</tr>
! 		<!-- ENDIF -->
! 		<!-- IF CONTRIB_UPDATE_DATE -->
! 		<tr>
! 			<td align="right"><strong>{L_CONTRIB_UPDATE_DATE}:</strong></td>
! 			<td align="left">{CONTRIB_UPDATE_DATE}</td>
! 		</tr>
! 		<!-- ENDIF -->
! 	</table>
! </div>
  
! <div class="column2">
! 	<h3>{L_AUTHOR_DETAILS}</h3>
! 	<table>
! 		<tr>
! 			<td align="right"><strong>{L_CONTRIB_AUTHOR}:</strong></td>
! 			<td align="left">{AUTHOR_NAME_FULL}<!-- IF AUTHOR_REALNAME --> ({AUTHOR_REALNAME})<!-- ENDIF --></td>
! 		</tr>
! 		<tr>
! 			<td align="right"><strong>{L_CONTRIBUTIONS}:</strong></td>
! 			<td align="left"><a href="{U_AUTHOR_CONTRIBUTIONS}">{L_LIST}</a></td>
! 		</tr>
! 	</table>
! </div>
  
! <div class="clear"></div>
  
! <!-- IF CONTRIB_DESC -->
! <h3>{L_CONTRIB_DESCRIPTION}</h3>
! {CONTRIB_DESC}
! <!-- ENDIF -->
  
  <!-- INCLUDE contributions/contribution_footer.html -->
\ No newline at end of file

Added: trunk/titania/styles/default/template/posting_text.html
==============================================================================
*** trunk/titania/styles/default/template/posting_text.html (added)
--- trunk/titania/styles/default/template/posting_text.html Fri Jun 26 01:36:45 2009
***************
*** 0 ****
--- 1,138 ----
+ 
+ <script type="text/javascript">
+ // <![CDATA[
+ 	var form_name = 'postform';
+ 	var text_name = 'message';
+ 	var load_draft = false;
+ 	var upload = false;
+ 
+ 	// Define the bbCode tags
+ 	var bbcode = new Array();
+ 	var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
+ 	var imageTag = false;
+ 
+ 	// Helpline messages
+ 	var help_line = {
+ 		b: '{LA_BBCODE_B_HELP}',
+ 		i: '{LA_BBCODE_I_HELP}',
+ 		u: '{LA_BBCODE_U_HELP}',
+ 		q: '{LA_BBCODE_Q_HELP}',
+ 		c: '{LA_BBCODE_C_HELP}',
+ 		l: '{LA_BBCODE_L_HELP}',
+ 		o: '{LA_BBCODE_O_HELP}',
+ 		p: '{LA_BBCODE_P_HELP}',
+ 		w: '{LA_BBCODE_W_HELP}',
+ 		a: '{LA_BBCODE_A_HELP}',
+ 		s: '{LA_BBCODE_S_HELP}',
+ 		f: '{LA_BBCODE_F_HELP}',
+ 		e: '{LA_BBCODE_E_HELP}',
+ 		d: '{LA_BBCODE_D_HELP}'
+ 		<!-- BEGIN custom_tags -->
+ 			,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
+ 		<!-- END custom_tags -->
+ 	}
+ 
+ 	var panels = new Array({S_POSTING_PANELS});
+ 	var show_panel = {S_POSTING_PANELS_DEFAULT};
+ // ]]>
+ </script>
+ <script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
+ 
+ <!-- IF S_BBCODE_ALLOWED -->
+ <div id="colour_palette" style="display: none;">
+ 	<dl style="clear: left;">
+ 		<dt><label>{L_FONT_COLOR}:</label></dt>
+ 		<dd>
+ 		<script type="text/javascript">
+ 		// <![CDATA[
+ 			function change_palette()
+ 			{
+ 				dE('colour_palette');
+ 				e = document.getElementById('colour_palette');
+ 
+ 				if (e.style.display == 'block')
+ 				{
+ 					document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}';
+ 				}
+ 				else
+ 				{
+ 					document.getElementById('bbpalette').value = '{LA_FONT_COLOR}';
+ 				}
+ 			}
+ 
+ 			colorPalette('h', 15, 10);
+ 		// ]]>
+ 		</script>
+ 		</dd>
+ 	</dl>
+ </div>
+ 
+ <div id="format-buttons">
+ 	<input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" />
+ 	<input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" />
+ 	<input type="button" class="button2" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" />
+ 	<!-- IF S_BBCODE_QUOTE -->
+ 		<input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
+ 	<!-- ENDIF -->
+ 	<input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
+ 	<input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
+ 	<input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
+ 	<input type="button" class="button2" accesskey="t" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
+ 	<!-- IF S_BBCODE_IMG -->
+ 		<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
+ 	<!-- ENDIF -->
+ 	<!-- IF S_LINKS_ALLOWED -->
+ 		<input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
+ 	<!-- ENDIF -->
+ 	<!-- IF S_BBCODE_FLASH -->
+ 		<input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
+ 	<!-- ENDIF -->
+ 	<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
+ 		<option value="50">{L_FONT_TINY}</option>
+ 		<option value="85">{L_FONT_SMALL}</option>
+ 		<option value="100" selected="selected">{L_FONT_NORMAL}</option>
+ 		<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
+ 			<option value="150">{L_FONT_LARGE}</option>
+ 			<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
+ 				<option value="200">{L_FONT_HUGE}</option>
+ 			<!-- ENDIF -->
+ 		<!-- ENDIF -->
+ 	</select>
+ 	<input type="button" class="button2" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
+ 	<!-- BEGIN custom_tags -->
+ 		<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
+ 	<!-- END custom_tags -->
+ </div>
+ <!-- ENDIF -->
+ 
+ <div id="smiley-box">
+ 	<!-- IF S_SMILIES_ALLOWED and .smiley -->
+ 		<strong>{L_SMILIES}</strong><br />
+ 		<!-- BEGIN smiley -->
+ 			<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" /></a>
+ 		<!-- END smiley -->
+ 	<!-- ENDIF -->
+ 	<!-- IF S_SHOW_SMILEY_LINK and S_SMILIES_ALLOWED-->
+ 		<br /><a href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
+ 	<!-- ENDIF -->
+ 
+ 	<!-- IF BBCODE_STATUS -->
+ 	<!-- IF .smiley --><hr /><!-- ENDIF -->
+ 	{BBCODE_STATUS}<br />
+ 	<!-- IF S_BBCODE_ALLOWED -->
+ 		{IMG_STATUS}<br />
+ 		{FLASH_STATUS}<br />
+ 		{URL_STATUS}<br />
+ 		{SMILIES_STATUS}
+ 	<!-- ENDIF -->
+ 	<!-- ENDIF -->
+ 	<!-- IF S_EDIT_DRAFT || S_DISPLAY_REVIEW -->
+ 		<!-- IF S_DISPLAY_REVIEW --><hr /><!-- ENDIF -->
+ 		<!-- IF S_EDIT_DRAFT --><strong><a href="{S_UCP_ACTION}">{L_BACK_TO_DRAFTS}</a></strong><!-- ENDIF -->
+ 		<!-- IF S_DISPLAY_REVIEW --><strong><a href="#review">{L_TOPIC_REVIEW}</a></strong><!-- ENDIF -->
+ 	<!-- ENDIF -->
+ </div>
+ 
+ <div id="message-box">
+ 	<textarea name="message" id="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" class="inputbox">{MESSAGE}</textarea>
+ </div>
\ No newline at end of file

Propchange: trunk/titania/styles/default/template/posting_text.html
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"




More information about the customisationdb-commits mailing list