把ECshop的商品推到FB及其它
[i=s] 本帖最後由 hivenus 於 2010-8-13 01:11 編輯 [/i]版本:2.72
模版:lativ
推文語法:網路上抄的
圖例:
[attach]240[/attach]
作法:
1. 複製下列推文語法
[quote] <!-- PUSH TO -->
<div style="text-align:left; margin: 5px 0;">
<a href="javascript:void(window.open('http://www.facebook.com/share.php?u='.concat(encodeURIComponent(location.href))));"><img src="../images/facebook.gif" title="分享到facebook" alt="分享到facebook" border="0" /></a>
<a href="javascript:void(window.open('http://www.plurk.com/?qualifier=shares&status='.concat(encodeURIComponent(location.href)) .concat(' ') .concat('(').concat(encodeURIComponent(document.title)) .concat(')')));"><img src="../images/bookmark/plurk.jpg" title="推到Plurk" alt="推到Plurk" border="0" /></a>
<a href="javascript: void(window.open('http://twitter.com/home/?status='.concat(encodeURIComponent(document.title)) .concat(' ') .concat(encodeURIComponent(location.href))));"><img src="../images/twitter.jpg" title="推到twitter" alt="推到twitter" border="0" /></a>
<a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://cang.baidu.com/do/add?iu='+encodeURIComponent(location.href)+'&it='+encodeURIComponent(document.title)+'&dc='+encodeURIComponent(desc)));"><img src="../images/baidu.gif" title="Baidu" alt="Baidu" border="0"></a> <!-- Baidu //-->
<a href="javascript:desc='';if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&annotation='+encodeURIComponent(desc)));"><img src="../images/google.jpg" title="Google Bookmarks" alt="Google Bookmarks" border="0"></a> <!-- Google Bookmarks //-->
<a href="javascript:desc='';via='';if(document.referrer)via=document.referrer;if(typeof(_ref)!='undefined')via=_ref;if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://www.hemidemi.com/user_bookmark/new?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(desc)+'&via='+encodeURIComponent(via)));"><img src="../images/hemidemi.jpg" title="HemiDemi" alt="HemiDemi" border="0"></a> <!-- HemiDemi //-->
<a href="javascript:(function(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');var%20furlit=window.open('http://www.furl.net/storeIt.jsp?t='+encodeURIComponent(d.title)+'&u='+escape(d.location.href)+'&r='+escape(d.referrer)+'&c='+encodeURIComponent(t)+'&p=1');})();"><img src="../images/furl.jpg" title="furl" alt="furl" border="0"></a> <!-- furl //-->
<!-- udn //--> <a href="javascript:desc='';via='';if(document.referrer)via=document.referrer;if(typeof(_ref)!='undefined')via=_ref;if(window.getSelection)desc=window.getSelection();if(document.getSelection)desc=document.getSelection();if(document.selection)desc=document.selection.createRange().text;void(open('http://bookmark.udn.com/add?f_TITLE='+encodeURIComponent(document.title)+'&f_URL='+encodeURIComponent(location.href)+'&f_DIGEST='+encodeURIComponent(desc)+'&via='+encodeURIComponent(via)));"><img src="../images/udn.gif" border="0" alt="UDN" /></a><br><br>
</div>
<!-- PUSH TO END -->[/quote]
2. 找你使用的模板的goods.dwt
[quote]</li>
<li>{$goods.goods_brief}</li>[/quote]
約在200~255行其中(因為我的已經改太多了,原始檔實際位置我不曉得, sorry)
3.中間插入推文語法
[quote]</li>
[color=Red]語法插在這裡[/color]
<li>{$goods.goods_brief}</li>[/quote]
4.Done
5.萬一不喜歡,請自己調整到你喜歡的位置吧 感謝分享,太實用了 程式碼中的哭臉請用":("取代即可 感謝!這非常實用,在這個甚麼都要分享的時代... 馬上試了~ 有效^^{:3_48:} 大大有圖檔嗎? gd stuff!~~ 我使用預設模版(default)怎麼不能用呢?有人可告知嗎?謝謝! 仔細看了您的程式碼後,請教一下:[color=Magenta]是否fb等等的圖檔需自行做並放在images資料夾裡才能運作呢[/color] 是的,但是,網路上有有很多流通已久的圖檔可供選用 感謝hivenus的指導,在此深表謝意!
分享及提問
1.(分享)預設模板的goods.dwt更改位置,應該在398行左右
2.(分享)furl已變成diigo網站,請使用此功能者,自行更改.
3.(提問)分享到facebook這項,能進到傳送頁面,但似乎無法傳送,出現警告頁面,這能解決嗎?
我更改後的情形,請指教一下[url]http://you168.summerhost.info/you888/goods.php?id=3[/url]
謝謝!
祝 順安! [i=s] 本帖最後由 hivenus 於 2010-10-25 18:05 編輯 [/i]
我猜想:您所推出去的讚,被其他人舉發是垃圾信,所以,無法再推上FB.
[attach]252[/attach]
我並不知道要如何解決,不過你有向FB要求解除被設定為垃圾信的權利.
Good luck! 真是太棒了 抱歉
但是可以分享圖檔嗎 >_<
感雞萬分 [quote]抱歉
但是可以分享圖檔嗎 >_<
感雞萬分
[size=2][color=#999999]saleen 發表於 2010-12-10 15:44[/color] [url=http://ecshop.tw/bbs/redirect.php?goto=findpost&pid=7243&ptid=1405][img]http://ecshop.tw/bbs/images/common/back.gif[/img][/url][/size][/quote]
1.請到[url=http://vogue.hivenus.com]我的小站[/url]點選任何商品就會出現商品描述檔,按右鍵,另存新檔,即可
2.請到[url=http://vogue.hivenus.com/goods-18.html]我的小站的商品檔[/url],按右鍵,另存新檔,即可
哈,應網友要求,確像是像是打廣告,金啪謝! 真是太棒了 感謝分享~ 拍拍手!! 超實用的^^ :(:(:(:(:(:(:( 感謝分享 想問推到FB之後只有人頭像+站的連結
那可能連商品圖一起分享出去嗎? 當然可以,如果先將你的網站優化(SEO化)
效果更精準 多謝回答
但我是新手想問那有關於的教學
SEO又是甚麼? 讚~
感謝大大分享~ 感謝大大的提供~
已完成上線囉
頁:
[1]