<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "[v2.1.8]增加Xuite Vlog和I'm Vlog的BBCode支援"]]></title>
		<link>https://forum.andowson.com/posts/list/7.page</link>
		<description><![CDATA[Latest messages posted in the topic "[v2.1.8]增加Xuite Vlog和I'm Vlog的BBCode支援"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>[v2.1.8]增加Xuite Vlog和I&#39;m Vlog的BBCode支援</title>
				<description><![CDATA[ 1.修改WEB-INF/config/bb_code.xml，加上下列match rule： 
<br>
[code=xml] 
<br>
 &lt;!-- Xuite Vlog --&gt; 
<br>
 &lt;match name="xuite"&gt; 
<br>
 &lt;regex&gt; 
<br>
 (?i)\[xuite\]http\:\/\/vlog.xuite.net\/vlog\/guest\/basic.php\?media_id\=(.*?)\[/xuite\] 
<br>
 &lt;/regex&gt; 
<br>
 &lt;replace&gt; 
<br>
 &lt;![CDATA[ 
<br>
 &lt;iframe marginwidth="0" marginheight="0" frameborder="0" scrolling="no" width="420px" height="365px" src="http://vlog.xuite.net/vlog/guest/external.php?media_id=$1=&amp;pt=0&amp;ar=0&amp;as=0"&gt;&lt;/iframe&gt; 
<br>
 ]]&gt; 
<br>
 &lt;/replace&gt; 
<br>
 &lt;/match&gt; 
<br>
<br>
 &lt;!--I'm Vlog --&gt; 
<br>
 &lt;match name="imvlog"&gt; 
<br>
 &lt;regex&gt; 
<br>
 (?i)\[imvlog\]http\:\/\/www.im.tv/vlog/Personal\/(.*?)/(.*?)\[/imvlog\] 
<br>
 &lt;/regex&gt; 
<br>
 &lt;replace&gt; 
<br>
 &lt;![CDATA[ 
<br>
 &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="vlog$2" width="450" height="338"&gt; 
<br>
 &lt;param name="allowScriptAccess" value="always" /&gt; 
<br>
 &lt;param name="allowFullScreen" value="true" /&gt; 
<br>
 &lt;param name="movie" value="http://myvlog.im.tv/?id=$2&amp;mid=$1&amp;MemberID=&amp;inIMTV=Y&amp;album=0&amp;playnext=" /&gt; 
<br>
 &lt;param name="quality" value="high" /&gt; 
<br>
 &lt;embed src="http://myvlog.im.tv/?id=$2&amp;mid=$1&amp;MemberID=&amp;inIMTV=Y&amp;album=0&amp;playnext=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" name="vlog$2" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" width="450" height="338"&gt;&lt;/embed&gt; 
<br>
 &lt;/object&gt; 
<br>
 ]]&gt; 
<br>
 &lt;/replace&gt; 
<br>
 &lt;/match&gt; 
<br>
[/code] 
<br>
<br>
使用語法： 
<br>
Xuite Vlog: 
<br>
[code=html][xuite]Xuite Vlog URL[/xuite][/code] 
<br>
<br>
I'm Vlog: 
<br>
[code=html][imvlog]I'm Vlog URL[/imvlog][/code] 
<br>
<br>
2.新增發表文章時的按鈕 
<br>
修改templates/default/post_form.htm 
<br>
參考下面的位置加上按鈕 
<br>
[code=html] 
<br>
... 
<br>
<br>
 &lt;input class="button" onmouseover="helpline('v')" style="WIDTH: 40px" accesskey="v" onclick="bbstyle(22)" type="button" value="WMV" name="addbbcode22" /&gt; 
<br>
 &lt;input class="button" onmouseover="helpline('x')" style="WIDTH: 70px" accesskey="x" onclick="bbstyle(24)" type="button" value="Xuite Vlog" name="addbbcode24" /&gt; 
<br>
 &lt;input class="button" onmouseover="helpline('m')" style="WIDTH: 62px" accesskey="m" onclick="bbstyle(26)" type="button" value="I'm Vlog" name="addbbcode26" /&gt; 
<br>
 &lt;/td&gt; 
<br>
... 
<br>
[/code] 
<br>
因順序改變，需要修改原有的兩個變數名稱 
<br>
字型顏色：addbbcode24-&gt;addbbcode28 
<br>
字型大小：addbbcode26-&gt;addbbcode30 
<br>
<br>
增加滑鼠移動過去的說明： 
<br>
修改templates/default/js/post.js 
<br>
[code=javascript] 
<br>
... 
<br>
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]',..., '[wmv]', '[/wmv]', '[xuite]', '[/xuite]', '[imvlog]', '[/imvlog]'); 
<br>
... 
<br>
[/code] 
<br>
<br>
修改templates/default/js/.js，在v_help下面插入x_help和m_help： 
<br>
[code=javascript] 
<br>
... 
<br>
x_help = "Xuite Vlog: [xuite]${I18n.getMessage("PostForm.helplineXuite")}[/xuite]"; 
<br>
m_help = "I'm Vlog: [imvlog]${I18n.getMessage("PostForm.helplineImVlog")}[/imvlog]"; 
<br>
[/code] 
<br>
<br>
3.新增PostForm.helplineXuite和PostForm.helplineImVlog到語系檔 
<br>
編輯WEB-INF/config/languages/en_US.properties: 
<br>
PostForm.helplineImVlog = I'me Vlog video URL 
<br>
PostForm.helplineXuite = Xuite Vlog video URL 
<br>
<br>
4.重新載入JForum即可。 
<br>
參考網址：[url]http://herb-tw.com/viewtopic.php?f=4&amp;t=14644&amp;p=72412[/url]]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/235/362.page</guid>
				<link>https://forum.andowson.com/posts/preList/235/362.page</link>
				<pubDate><![CDATA[Sat, 19 Apr 2008 11:56:49]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>