OXID Community Forum> Move a facebook share button. |
Login |
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Reply |
|
|
Thread Tools | Display Modes |
|
Right now there is a share button for my product designer in the designer.tpl
I would like that button on the frontpage in my sidebar.tpl how do I get it there. Here´s the code from the designer.tpl [{capture append="oxidBlock_content"}] [{capture assign="pageScript"}] function snw_showTaxInfo(){ } function sendDesignerImageToFacebook(){ document.getElementById("snw_designer").snw_create Snapshot("onDesignerImageStored"); } function onDesignerImageStored(result,error){ if(result){ var picture = result.url; var infos = document.getElementById("snw_designer").snw_getInf os(); var title = infos.product.name; var fb = "http://www.facebook.com/sharer.php?u="; var picurl = "[{$oView->getPreviewPictureUrl()}]" + picture; var dlink = "[{$oViewConf->getSelfLink()}]cl=designer&fnc=showFacebookFrame&title="+title+"& img="+picurl; window.open(fb+escape(dlink),"Facebook", "width=550,height=320,left=100,top=100"); } } [{/capture}] [{oxscript add=$pageScript}] [{$designer}] [{include file="page/shirtnetwork/designer_description.tpl"}] [{/capture}] [{capture append="oxidBlock_sidebar"}] [{oxifcontent ident="designerhelp" object="oCont"}] <div id="designerHelpBox" class="box"> <h3>[{$oCont->oxcontents__oxtitle->value}]</h3> <div class="content">[{$oCont->oxcontents__oxcontent->value}]</div> </div> [{/oxifcontent}] [{oxifcontent ident="facebooklikedesigner" object="oCont"}] <div id="designerFbBox" class="box"> <h3>[{$oCont->oxcontents__oxtitle->value}]</h3> <div class="content"> [{$oCont->oxcontents__oxcontent->value}] <img onclick="sendDesignerImageToFacebook()" src="[{$oViewConf->getImageUrl()}]facebook_icon.gif" alt="[{$oCont->oxcontents__oxtitle->value}]" style="cursor ointer;cursor:hand;" /></div> </div> [{/oxifcontent}] [{/capture}] [{include file="layout/page.tpl" sidebar="Left"}] |
|||
|
http://sitedemo.dittskal.se/designer/ on this site i see the facebook button in the sitebar.
regards rafael |
||||
|
Yes, and now I changed the code back as it where before. and it´s still there.
It´s been there all along. What I want is to have it show on the http://sitdemo.dittskal.se directly. Thanks, |
|||
| Reply |
| Bookmarks |
| Tags |
| button, facebook, share |
| Thread Tools | |
| Display Modes | |
|
Nicht Sichtbar
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Facebook Like Button | imd | eCommerce-Recht | 25 | 01-12-2012 11:24 AM |
| Facebook Like + Share Button / Artikelbild verwenden | coarsy | Templates und Design | 17 | 08-13-2011 11:28 PM |
| Facebook Like Button mit Kommentar | MaGro | Bug-Verdacht | 3 | 07-06-2011 11:34 AM |
| Facebook Like-Button | ans316 | Installation und Konfiguration | 14 | 04-20-2011 07:56 AM |
| facebook share pictures | stasysd | Newbies | 9 | 10-29-2010 05:10 PM |