플래닛의 기능 개선 (플래닛 글쓰기를 메인에서도 가능하도록 하고 플래닛 생성시 환영인사글 자동 등록하도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5903 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-03-18 08:26:00 +00:00
parent 0841cbac8f
commit 7d15dd5353
10 changed files with 67 additions and 43 deletions

View file

@ -172,4 +172,6 @@
$lang->planet_use_me2day = "Use Me2day";
$lang->about_use_me2day = "When writing a message, users can send it to me2day(http://me2day.net).";
$lang->msg_search_thisplanet = "Search from this Planet";
$lang->msg_welcome_planet = 'Congratulations on the Planet to open.';
?>

View file

@ -178,5 +178,5 @@
$lang->msg_search_thisplanet = "このプラネットで検索";
$lang->msg_welcome_planet = 'Congratulations on the Planet to open.';
?>

View file

@ -178,5 +178,5 @@
$lang->msg_search_thisplanet = '이 플래닛에서 검색';
$lang->msg_welcome_planet = '플래닛 개설을 축하드립니다';
?>

View file

@ -175,4 +175,5 @@
$lang->planet_use_me2day = "绑定me2day";
$lang->about_use_me2day = "发布主题的同时发送到me2day。";
$lang->msg_search_thisplanet = "在此微博中搜索";
$lang->msg_welcome_planet = 'Congratulations on the Planet to open.';
?>

View file

@ -172,4 +172,5 @@
$lang->planet_use_me2day = "Me2day";
$lang->about_use_me2day = "發表主題的同時也傳送到Me2day(http://me2day.net)。";
$lang->msg_search_thisplanet = "搜尋微型部落格";
$lang->msg_welcome_planet = 'Congratulations on the Planet to open.';
?>

View file

@ -82,6 +82,21 @@
$oDocumentController = &getController('document');
$oDocumentController->insertDocumentExtraKey($output->get('module_srl'), 20, 'postscript', 'text', 'N', 'N', '', '');
// 축하 게시글 등록
$logged_info = Context::get('logged_info');
$welcome_args->content = Context::getLang('msg_welcome_planet');
$welcome_args->module_srl = $output->get('module_srl');
$welcome_args->member_srl = $logged_info->member_srl;
$oMemberModel = &getModel('member');
$member_info = $oMemberModel->getMemberInfoByMemberSrl($welcome_args->member_srl);
$welcome_args->user_id = $member_info->user_id;
$welcome_args->user_name = $member_info->user_name;
$welcome_args->nick_name = $member_info->nick_name;
$welcome_args->email_address = $member_info->email_address;
$welcome_args->homepage = $member_info->homepage;
$this->insertContent($welcome_args,true);
$this->setError($output->getError());
$this->setMessage($output->getMessage());
$this->add('mid', $args->mid);

View file

@ -1,5 +1,9 @@
<!--#include("header.html")-->
<!--@if($myplanet->isExists())-->
<!--#include("write.include.html")-->
<!--@end-->
<ul class="myTab">
<!--@if(is_array($module_info->tagtab) && count($module_info->tagtab)>0)-->
<!--@foreach($tagtab_list as $key => $val)-->

View file

@ -1,5 +1,4 @@
<!--%import("filter/modify_planet_info.xml")-->
<!--%import("filter/write_content.xml")-->
<div class="authorHeader" >
<form action="{Context::getRequestUri()}" target="photo_iframe" method="post" onsubmit="return false;" enctype="multipart/form-data">
@ -171,44 +170,6 @@
<!--@end-->
<!--@if($planet->isMyPlanet())-->
<div id="writePost" class="writePost <!--@if($_COOKIE['writePost']=='close')-->close<!--@else-->open<!--@end-->">
<!--// class="writePost close" | class="writePost open"-->
<div class="writeHeader">
<h3>{$lang->cmd_planet_add_article}</h3>
<span class="toggle open"><button type="button" onclick="toggleWritePost()">{$lang->cmd_open}</button></span>
<span class="toggle close"><button type="button" onclick="toggleWritePost()">{$lang->cmd_close}</button></span>
</div>
<div id="writeBody" class="writeBody">
<form id="writePostForm" action="{Context::getRequestUri()}" method="post" onsubmit="return procFilter(this, write_content)" enctype="multipart/form-data">
<input type="hidden" name="mid" value="{$planet->getMid()}" />
<fieldset>
<legend>{$lang->cmd_planet_add_article}</legend>
<dl>
<dt>{$lang->content}</dt>
<dd>
<textarea id="writePost_content" name="content" rows="" cols="" onkeyup="planetPreview(this);"></textarea>
</dd>
<dt>{$lang->planet_postscript}</dt>
<dd><input type="text" name="about_postscript" value="{$lang->msg_planet_about_postscript}" class="inputText" readonly="readonly" onfocus="toggleWriteFormHelp(this)" onclick="toggleWriteFormHelp(this)" /><input name="postscript" type="text" class="inputText" value="" style="display:none; "/></dd>
<dt>{$lang->tag}</dt>
<dd><input type="text" name="about_tag" value="{$lang->msg_planet_about_tag}" class="inputText" readonly="readonly" onfocus="toggleWriteFormHelp(this)" onclick="toggleWriteFormHelp(this)" /><input name="content_tag" type="text" class="inputText" value="" style="display:none; "/></dd>
<dd id="preview" class="preview off">
<!--// class="preview" | class="preview off" -->
<p id="preview_text">&nbsp;</p>
</dd>
</dl>
<div class="writeOptions">
<p><input id="btn_preview" name="" onclick="togglePreview()" type="checkbox" value="" checked="checked" /><label for="btn_preview">{$lang->planet_article_preview}</label></p>
<!--@if($module_info->use_me2day =='Y' && $myplanet->getMe2dayUID())-->
<p><input name="me2day_autopush" type="checkbox" value="Y" <!--@if($myplanet->getMe2dayAuthPush())-->checked="checked"<!--@end--> id="me2day_autopush" /><label for="me2day_autopush">{$lang->cmd_send_me2day}</label></p>
<!--@end-->
</div>
<button type="submit"><span>{$lang->cmd_planet_post_article}</span></button>
</fieldset>
</form>
</div>
<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>
</div>
<!--#include("write.include.html")-->
<!--@end-->

View file

@ -0,0 +1,40 @@
<!--%import("filter/write_content.xml")-->
<div id="writePost" class="writePost <!--@if($_COOKIE['writePost']=='close')-->close<!--@else-->open<!--@end-->">
<!--// class="writePost close" | class="writePost open"-->
<div class="writeHeader">
<h3>{$lang->cmd_planet_add_article}</h3>
<span class="toggle open"><button type="button" onclick="toggleWritePost()">{$lang->cmd_open}</button></span>
<span class="toggle close"><button type="button" onclick="toggleWritePost()">{$lang->cmd_close}</button></span>
</div>
<div id="writeBody" class="writeBody">
<form id="writePostForm" action="{Context::getRequestUri()}" method="post" onsubmit="return procFilter(this, write_content)" enctype="multipart/form-data">
<input type="hidden" name="mid" value="{$myplanet->getMid()}" />
<fieldset>
<legend>{$lang->cmd_planet_add_article}</legend>
<dl>
<dt>{$lang->content}</dt>
<dd>
<textarea id="writePost_content" name="content" rows="" cols="" onkeyup="planetPreview(this);"></textarea>
</dd>
<dt>{$lang->planet_postscript}</dt>
<dd><input type="text" name="about_postscript" value="{$lang->msg_planet_about_postscript}" class="inputText" readonly="readonly" onfocus="toggleWriteFormHelp(this)" onclick="toggleWriteFormHelp(this)" /><input name="postscript" type="text" class="inputText" value="" style="display:none; "/></dd>
<dt>{$lang->tag}</dt>
<dd><input type="text" name="about_tag" value="{$lang->msg_planet_about_tag}" class="inputText" readonly="readonly" onfocus="toggleWriteFormHelp(this)" onclick="toggleWriteFormHelp(this)" /><input name="content_tag" type="text" class="inputText" value="" style="display:none; "/></dd>
<dd id="preview" class="preview off">
<!--// class="preview" | class="preview off" -->
<p id="preview_text">&nbsp;</p>
</dd>
</dl>
<div class="writeOptions">
<p><input id="btn_preview" name="" onclick="togglePreview()" type="checkbox" value="" checked="checked" /><label for="btn_preview">{$lang->planet_article_preview}</label></p>
<!--@if($module_info->use_me2day =='Y' && $myplanet->getMe2dayUID())-->
<p><input name="me2day_autopush" type="checkbox" value="Y" <!--@if($myplanet->getMe2dayAuthPush())-->checked="checked"<!--@end--> id="me2day_autopush" /><label for="me2day_autopush">{$lang->cmd_send_me2day}</label></p>
<!--@end-->
</div>
<button type="submit"><span>{$lang->cmd_planet_post_article}</span></button>
</fieldset>
</form>
</div>
<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>
</div>

View file

@ -4,7 +4,7 @@
<form action="./" method="get" onsubmit="return procFilter(this, delete_planet)">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<input type="hidden" name="module_srl" value="{$planet_info->module_srl}" />
<h4 class="xeAdmin">{$lang->confirm_delete}</h4>
<table cellspacing="0" class="rowTable">