ECSHOP 交流討論區's Archiver

hivenus 發表於 2010-8-13 01:03

把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)+'&amp;it='+encodeURIComponent(document.title)+'&amp;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&amp;bkmk='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)+'&amp;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)+'&amp;url='+encodeURIComponent(location.href)+'&amp;description='+encodeURIComponent(desc)+'&amp;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)+'&amp;u='+escape(d.location.href)+'&amp;r='+escape(d.referrer)+'&amp;c='+encodeURIComponent(t)+'&amp;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)+'&amp;f_URL='+encodeURIComponent(location.href)+'&amp;f_DIGEST='+encodeURIComponent(desc)+'&amp;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.萬一不喜歡,請自己調整到你喜歡的位置吧

i_hyua 發表於 2010-8-14 15:02

感謝分享,太實用了

cheneric 發表於 2010-8-23 09:46

程式碼中的哭臉請用":("取代即可

flashdes 發表於 2010-9-3 13:57

感謝!這非常實用,在這個甚麼都要分享的時代...

SHU87001 發表於 2010-9-9 00:42

馬上試了~ 有效^^{:3_48:}

gh70641 發表於 2010-10-11 16:37

大大有圖檔嗎?

chunyu 發表於 2010-10-13 06:17

gd stuff!~~

you168 發表於 2010-10-14 16:49

我使用預設模版(default)怎麼不能用呢?有人可告知嗎?謝謝!

you168 發表於 2010-10-14 17:15

仔細看了您的程式碼後,請教一下:[color=Magenta]是否fb等等的圖檔需自行做並放在images資料夾裡才能運作呢[/color]

hivenus 發表於 2010-10-14 23:16

是的,但是,網路上有有很多流通已久的圖檔可供選用

you168 發表於 2010-10-15 12:15

感謝hivenus的指導,在此深表謝意!
分享及提問
1.(分享)預設模板的goods.dwt更改位置,應該在398行左右
2.(分享)furl已變成diigo網站,請使用此功能者,自行更改.
3.(提問)分享到facebook這項,能進到傳送頁面,但似乎無法傳送,出現警告頁面,這能解決嗎?
我更改後的情形,請指教一下[url]http://you168.summerhost.info/you888/goods.php?id=3[/url]

謝謝!

祝 順安!

hivenus 發表於 2010-10-25 18:03

[i=s] 本帖最後由 hivenus 於 2010-10-25 18:05 編輯 [/i]

我猜想:您所推出去的讚,被其他人舉發是垃圾信,所以,無法再推上FB.
[attach]252[/attach]
我並不知道要如何解決,不過你有向FB要求解除被設定為垃圾信的權利.
Good luck!

legai 發表於 2010-12-10 12:13

真是太棒了

saleen 發表於 2010-12-10 15:44

抱歉
但是可以分享圖檔嗎 >_<
感雞萬分

hivenus 發表於 2010-12-11 12:40

[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],按右鍵,另存新檔,即可

哈,應網友要求,確像是像是打廣告,金啪謝!

weijian26 發表於 2011-1-21 05:28

真是太棒了

allex 發表於 2011-1-21 18:34

感謝分享~

denise 發表於 2011-1-23 01:15

拍拍手!! 超實用的^^

mywayne 發表於 2011-2-6 21:18

:(:(:(:(:(:(:(

shinwella 發表於 2011-2-18 22:24

感謝分享

sand666 發表於 2011-2-25 20:21

想問推到FB之後只有人頭像+站的連結
那可能連商品圖一起分享出去嗎?

hivenus 發表於 2011-2-26 12:18

當然可以,如果先將你的網站優化(SEO化)
效果更精準

sand666 發表於 2011-2-26 17:38

多謝回答
但我是新手想問那有關於的教學
SEO又是甚麼?

leowong0811 發表於 2011-7-31 01:55

讚~
感謝大大分享~

udo999 發表於 2011-8-1 13:15

感謝大大的提供~
已完成上線囉

頁: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.