[插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

目前來說覺的放置的位置跟顯現的方式都覺得讓畫面變得很不協調也蠻醜的= =
另外就是有點太簡略了
不過最近感覺很空虛 所以沒什麼心情補強


開啟 post_newthread.htm

<form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" $enctype&gt;
改為
<form method="post" id="postform" action="post.php?action=newthread&extra=$extra&topicsubmit=yes" $enctype&gt;
開啟 post_editor.htm
<!--{if $smileyinsert}-->
		<div class="">
			<div id="smilieslist"><img src="{IMGDIR}/loading.gif"></div>
		</div>
	<!--{/if}--&gt;
下面加上
<!--{if $action == 'newthread'}-->
	<select name="fid" size="10" style="width: 99%;">
		<option value="$fid" selected="selected">不改變目標版區</option>
		<option value="">&nbsp;</option>
		$forumselect
	</select>
	<!--{/if}--&gt;
開啟 newthread.inc.php

if(!submitcheck('topicsubmit', 0, $seccodecheck, $secqaacheck)) {
下面加上
	// bluelovers
	require_once DISCUZ_ROOT.'./include/forum.func.php';
	$forumselect = forumselect();
//	$forumselect = str_replace('<option value="'.$fid.'">', '<option value="'.$fid.'" selected="selected">', $forumselect);
	// bluelovers
完成

演示
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid6985

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

套一句黃小琥說過的話:「你可以點歌,但是我可以選歌」

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

功能不錯,可是真的有點需要美化一下..

如果可以的話,可以加上"一個帖子發在不同版上"的功能.



這是我的意見.
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid7022

TOP

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

看不懂
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid7032

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

回覆 3#3 admin 的帖子

我想佢GE意思係
1)要美化
2)如果可以的話,加一個"一次過將同一篇內容的帖,發佈在兩個或以上的版塊"
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid9784

TOP

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

原來如此
發帖的同時就複製主題呀= =
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid9786

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

發新主題 - 獨立的發帖通道 - 任意頁面下使用網址調用

這個插件送給金字塔

建議:
獨立的一個發帖通道。即:
發帖 -> 選擇發佈至某版面 -> 填寫標題與內容 -> 發佈
而不是從 版面 -> 發帖 -> 這裡選擇發佈到哪


然後 你只需要將 post.php 這個連結 放置在你想放的地方
用戶點選之後 發帖的權限會以設定的版塊 為基準

然後再配合
http://discuz.bluelovers.net/thread-4457.html

就可以大致上 達到你所敘述的功能

開啟 post.php

$_DTYPE = $checkoption = $optionlist = array();
if($typeid) {
	threadtype_checkoption();
}[/php]
底下加上
[php]if (empty($action)) {
	$action = 'newthread';
	$fid = 2;	// 預設基準版塊
	
	$query = $db->query("SELECT f.fid, f.*, ff.* $accessadd1 $modadd1, f.fid AS fid
		FROM {$tablepre}forums f
		LEFT JOIN {$tablepre}forumfields ff ON ff.fid=f.fid $accessadd2 $modadd2
		WHERE f.fid='$fid'");
	$forum = $db->fetch_array($query);
	
	if($forum) {
		$fid = $forum['fid'];
		$forum['ismoderator'] = !empty($forum['ismoderator']) || $adminid == 1 || $adminid == 2 ? 1 : 0;
		foreach(array('postcredits', 'replycredits', 'threadtypes', 'digestcredits', 'postattachcredits', 'getattachcredits', 'supe_pushsetting') as $key) {
			$forum[$key] = !empty($forum[$key]) ? unserialize($forum[$key]) : array();
		}
	} else {
		$fid = 0;
	}
}
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid11054

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

發新主題時 可以選擇發送到哪個版塊 v2

採用來自 DST 成員 金字塔 的概念
其實當初在 做這插件的時候
就有想到 選擇版塊時 一併更換主題分類不過那時候 覺得想到的方式 很醜
心情 也不是很好 所以弄的非常簡陋 醜


如果發現安裝失敗 懷疑 可能哪邊我少PO步驟 歡迎把錯誤情形PO出來

開啟 templates.lang.php

'post_newthread' => '發新話題',[/php]底下加上[php]'post_newthread_forumselect' => '主題發佈版塊',
	'post_newthread_forumselect_none' => '不改變發帖版區',[/php]開啟 newthread.inc.php

找[php]if(!submitcheck('topicsubmit', 0, $seccodecheck, $secqaacheck)) {[/php]
底下加上
[php]// bluelovers
	require_once DISCUZ_ROOT.'./include/forum.func.php';
	$forumselect = forumselect();
//	$forumselect = str_replace('<option value="'.$fid.'">', '<option value="'.$fid.'" selected="selected">', $forumselect);
	// bluelovers[/php]

開啟 post_newthread.htm

找
[xml]<form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" $enctype>[/xml]改為[xml]<form method="post" id="postform" action="post.php?action=newthread&extra=$extra&topicsubmit=yes" $enctype>[/xml]

找
[xml]<!--{if $secqaacheck}-->
			<tr><th><label for="secanswer">{lang secqaa}</label></th>
			<td><div id="secquestion"></div><input type="text" name="secanswer" id="secanswer" size="25" maxlength="50" tabindex="1" />
			<script type="text/javascript">ajaxget('ajax.php?action=updatesecqaa', 'secquestion');</script></td>
			</tr>
		<!--{/if}-->[/xml]
底下加上
[xml]<!--{if !$special}-->
			<tr>
				<th>
					{lang post_newthread_forumselect}
				</th>
				<td>
					<select name="fid" size="1" style="width: 20em;" onchange="ajaxget('post.php?action=typeselect&amp;selecttypeid='+typeid.options[typeid.selectedIndex].value+'&amp;special=$special&amp;modelid=$modelid&amp;fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid', 'typeselect', 'threadtypeswait')">
						<option value="$fid" selected="selected">{lang post_newthread_forumselect_none}</option>
						<option value="">&nbsp;</option>
						$forumselect
					</select>
				</td>
			</tr>
		<!--{/if}-->[/xml]

找
[xml]$typeselect[/xml]改為[xml]<div id="typeselect" style="float: left;">$typeselect</div>&nbsp;[/xml]

開啟 post.php

找[php]}elseif($action == 'threadtypes') {
	threadtype_optiondata();
	$template = intval($operate) ? 'search_typeoption' : 'post_typeoption';
	include template($template);
	exit;[/php]底下加上[php]}elseif($action == 'typeselect') {
	
	$typeselect = typeselect($selecttypeid, $special, '', $modelid);
	
	showmessage($typeselect);
	exit;
如果是升級安裝

開啟 post_editor.htm

<!--{if $action == 'newthread'}-->
	<select name="fid" size="10" style="width: 99%;">
		<option value="$fid" selected="selected">不改變目標版區</option>
		<option value="">&nbsp;</option>
		$forumselect
	</select>
	<!--{/if}-->[/xml]
改成以下 或者 清除代碼
[xml]<!--{if 0 && $action == 'newthread'}-->
	<select name="fid" size="10" style="width: 99%;">
		<option value="$fid" selected="selected">不改變目標版區</option>
		<option value="">&nbsp;</option>
		$forumselect
	</select>
	<!--{/if}-->
直接借用他所繪製的概念圖
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid11067

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

發文時同時可以建立鏡像帖子(版主以上用)

此修改支援(前後台共用回收站)插件
並且實現

#2  win 的帖子
#4  hkh 的帖子

所提到的概念

此插件配合上一篇的安裝步驟來做修改

開啟 templates.lang.php

'post_newthread_forumselect_none' => '不改變發帖版區',[/php]
底下加上
[php]'post_newthread_forumselect_copy_none' => '不鏡像複製發帖版區',[/php]

開啟 post_newthread.htm

找
[xml]<!--{if !$special}-->
			<tr>
				<th>
					{lang post_newthread_forumselect}
				</th>
				<td>
					<select name="fid" size="1" style="width: 20em;" onchange="ajaxget('post.php?action=typeselect&amp;selecttypeid='+(!isnull($('postform').typeid) ? typeid.options[typeid.selectedIndex].value : 0)+'&amp;special=$special&amp;modelid=$modelid&amp;fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid', 'typeselect', 'threadtypeswait')">
						<option value="$fid" selected="selected">{lang post_newthread_forumselect_none}</option>
						<option value="">&nbsp;</option>
						$forumselect
					</select>
				</td>
			</tr>
		<!--{/if}-->[/xml]
改成
[xml]<!--{if !$special}-->
			<tr>
				<th>
					{lang post_newthread_forumselect}
				</th>
				<td>
					<select name="fid" size="1" style="width: 20em;" onchange="ajaxget('post.php?action=typeselect&amp;selecttypeid='+(!isnull($('postform').typeid) ? typeid.options[typeid.selectedIndex].value : 0)+'&amp;special=$special&amp;modelid=$modelid&amp;fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid', 'typeselect', 'threadtypeswait')">
						<option value="$fid" selected="selected">{lang post_newthread_forumselect_none}</option>
						<option value="">&nbsp;</option>
						$forumselect
					</select>
					<!--{if $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])}-->
					<select name="fidcopy" size="1" style="width: 20em;">
						<option value="0" selected="selected">{lang post_newthread_forumselect_copy_none}</option>
						<option value="">&nbsp;</option>
						$forumselect
					</select>
					<!--{/if}-->
				</td>
			</tr>
		<!--{/if}-->[/xml]
開啟 include/newthread.inc.php

找
[php]$db->query("INSERT INTO {$tablepre}threads (fid, readperm, price, iconid, typeid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, blog, special, attachment, subscribed, moderated, supe_pushstatus $sgidadd1)
		VALUES ('$fid', '$readperm', '$price', '$iconid', '$typeid', '$author', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$author', '$displayorder', '$digest', '$blog', '$special', '$attachment', '$subscribed', '$moderated', '$supe_pushstatus' $sgidadd2)");
	$tid = $db->insert_id();[/php]
底下加上
[php]// bluelovers
	$fidcopy = intval($fidcopy);
	
	if($fidcopy && (!$recyclefid || ($recyclefid && $recyclefid != $fidcopy)) && $fidcopy != $fid) {
		$db->query("INSERT INTO {$tablepre}threads (fid, typeid, readperm, iconid, author, authorid, subject, dateline, lastpost, lastposter, views, replies, displayorder, digest, closed, special, attachment)
			VALUES ('$fidcopy', '$typeid', '$readperm', '$iconid', '$author', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$author', '0', '0', '0', '0', '$tid', '0', '0')");

		updateforumcount($fidcopy);
	}
	// bluelovers
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid11602

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

壇主,我知道我煩擾一點,
因為我的論壇是d5.5,
不懂更改..>w<"
[這帖子更改方法是6.0]
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid12143

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

5.5找不到那些代碼嗎?
那你參考以下這篇吧

http://discuz.bluelovers.net/thread-7947.html
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid12147

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

已經可以了,,希望得到壇主的幫助!
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid12493

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

發新主題時 可以選擇發送到哪個版塊 v2 for D5.5

回覆 #10 win
發文 發的太隨便 相同系列內容 因該要發在一起
主題分類 也都沒選


newthread.inc.php

if(!submitcheck('topicsubmit', 0, $seccodecheck, $secqaacheck)) {[/php]
下面加
[php]// bluelovers
	require_once DISCUZ_ROOT.'./include/forum.func.php';
	$forumselect = forumselect();
	// bluelovers[/php]

開 post_newthread.htm

找
[xml]<form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" $enctype onSubmit="validate(this);return false">[/xml]
改
[xml]<form method="post" id="postform" action="post.php?action=newthread&extra=$extra&topicsubmit=yes" $enctype onSubmit="validate(this);return false">[/xml]

找
[xml]<tr>
<td class="altbg1" width="20%"><span class="bold"><!--{if isset($activity) && $allowpostactivity}-->{lang activity_name}<!--{else}-->{lang subject}<!--{/if}--></span></td>
<td class="altbg2"><!--{if $iscircle && $mycircles}--><select name='sgid'><option value="0">{lang circle_select_please}</option><!--{loop $mycircles $id $name}--><option value="$id">$name</option><!--{/loop}--></select><!--{else}-->$typeselect<!--{/if}--> <input type="text" name="subject" id="subject" size="45" value="$subject" tabindex="3"></td>
</tr>[/xml]
上面加[	DISCUZ_CODE_10	]找
[xml]$typeselect[/xml]
改
[xml]<div id="typeselect" style="float: left;">$typeselect</div>[/xml]

開 post.php

找
[php]} elseif($forum['simple'] || $forum['redirect']) {
	showmessage('forum_disablepost');
} [/php]
下面加
[php] elseif($action == 'typeselect') {
	
	$typeselect = typeselect($selecttypeid);
	
	@dheader("Expires: -1");
	@dheader("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
	@dheader("Pragma: no-cache");
	dheader("Content-type: application/xml");
	echo "<?xml version=\"1.0\" encoding=\"$charset\"?>\n";
	echo "<root><![CDATA[";
	echo $typeselect;
	echo "]]></root>";
		
	exit;
}

// bluelovers[/php]

開 templates.lang.php

找
[php]'post_newthread' => '發新話題',[/php]
下面加
[php]'post_newthread_forumselect' => '主題發佈版塊',
	'post_newthread_forumselect_none' => '不改變發帖版區',
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid12495

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

是的,下次會留意!抱歉!
另外,我想問問在"發文時同時可以建立鏡像帖子"的帖子中的以下步驟在d5.5的話,是如何修改的?



開啟 post_newthread.htm

找view plaincopy to clipboardprint?
<!--{if !$special}-->
            <tr>
                <th>
                    {lang post_newthread_forumselect}
                </th>
                <td>
                    <select name="fid" size="1" style="width: 20em;" onchange="ajaxget('post.php?action=typeselect&amp;selecttypeid='+(!isnull($('postform').typeid) ? typeid.options[typeid.selectedIndex].value : 0)+'&amp;special=$special&amp;modelid=$modelid&amp;fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid', 'typeselect', 'threadtypeswait')">
                        <option value="$fid" selected="selected">{lang post_newthread_forumselect_none}</option>
                        <option value="">&nbsp;</option>
                        $forumselect
                    </select>
                </td>
            </tr>
        <!--{/if}-->
&lt;!--{if !$special}--&gt;
                        &lt;tr&gt;
                                &lt;th&gt;
                                        {lang post_newthread_forumselect}
                                &lt;/th&gt;
                                &lt;td&gt;
                                        &lt;select name=&quot;fid&quot; size=&quot;1&quot; style=&quot;width: 20em;&quot; onchange=&quot;ajaxget('post.php?action=typeselect&amp;amp;selecttypeid='+(!isnull($('postform').typeid) ? typeid.options[typeid.selectedIndex].value : 0)+'&amp;amp;special=$special&amp;amp;modelid=$modelid&amp;amp;fid='+this.options[this.selectedIndex].value+'&amp;amp;sid=$sid', 'typeselect', 'threadtypeswait')&quot;&gt;
                                                &lt;option value=&quot;$fid&quot; selected=&quot;selected&quot;&gt;{lang post_newthread_forumselect_none}&lt;/option&gt;
                                                &lt;option value=&quot;&quot;&gt;&amp;nbsp;&lt;/option&gt;
                                                $forumselect
                                        &lt;/select&gt;
                                &lt;/td&gt;
                        &lt;/tr&gt;
                &lt;!--{/if}--&gt;改成view plaincopy to clipboardprint?
<!--{if !$special}-->
            <tr>
                <th>
                    {lang post_newthread_forumselect}
                </th>
                <td>
                    <select name="fid" size="1" style="width: 20em;" onchange="ajaxget('post.php?action=typeselect&amp;selecttypeid='+(!isnull($('postform').typeid) ? typeid.options[typeid.selectedIndex].value : 0)+'&amp;special=$special&amp;modelid=$modelid&amp;fid='+this.options[this.selectedIndex].value+'&amp;sid=$sid', 'typeselect', 'threadtypeswait')">
                        <option value="$fid" selected="selected">{lang post_newthread_forumselect_none}</option>
                        <option value="">&nbsp;</option>
                        $forumselect
                    </select>
                    <!--{if $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])}-->
                    <select name="fidcopy" size="1" style="width: 20em;">
                        <option value="0" selected="selected">{lang post_newthread_forumselect_copy_none}</option>
                        <option value="">&nbsp;</option>
                        $forumselect
                    </select>
                    <!--{/if}-->
                </td>
            </tr>
        <!--{/if}-->
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid12546

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

有問題請ADMIN大大代為解決, 麻煩你了...謝謝
我的問題是依照第七樓的方法改動, 大部份功能正常, 只是當身處不用分類發貼的版內, 欲發貼至其他版區(需強行分類版區),這時, 發貼版面並未有加上分類選擇, 到發貼時便會出現[需要分類的警告字眼及要返回上一頁], 且在瀏覽器右下角發現三角符號, 點選後出現 SCRIPT 錯誤, 錯誤:'typeid' 未被定義
而當身處有分類的版內發貼至不用分類的版區時, 原有的分類下拉選擇會自動消失, 發貼亦正常。
希望大大能為小的解決問題, 我的版本是6.0, 有安裝發貼之星, 虛擬形象等插件
複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid15356

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP

RE: [插件交流] 發新主題時 可以選擇發送到哪個版塊 [3P]

我也有發現這個TYEID的問題~
在沒有正式辦法以前 提供一個小撇部

1.全面都給分類欄位~但是未必要強迫使用(如果是連結 也要啟用分類,然後隨便給一個即可反正那裏不能發表)
2.<option value="">&nbsp;</option>改成<option value="$fid">&nbsp;</option>

這樣應該就可以暫時解決
1

評價次數

+2

Points

  • System Message

2008-10-31 19:27:38 聲望 + 1 點 幸運 + 1 點

複製這篇網址分享給朋友: http://discuz.bluelovers.net/thread-4457-1.html#pid72706

本篇的內容不含引用除另有聲明外,如符合 CC授權條款 則套用 姓名標示-非商業性-相同方式分享 3.0 通用版

TOP