You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,019

Location: Denmark

Occupation: Photographer

  • Send private message

1

Sunday, May 24th 2020, 7:22pm

Facebook share popupwindow

I have managed to ad sharing Facebook/Twitter icons using the code Sudarchikov Andrey published.
https://krpano.com/forum/wbb/index.php?p…media#post52211

However I can not not get it working as opening in an iframe like the examples in this
https://krpano.com/releases/1.20.6/viewe…tml5=only+webgl

I made a special socialmedia.xml which includes the codes for the iframe popup but how do I write the code to make the
sharing page popup the same way.

<krpano tourlink="http://www.360-foto.dk/nationalhistorisk-museum/english.html">

<social share="txtadd(urltext,get(social.%1),%2);openurl(get(urltext),_blank);"
facebook="http://facebook.com/share.php?u="
twitter="http://twitter.com/intent/tweet?status="

/>

<layer name="facebook_btn" url="facebook.png" keep="true"
align="righttop" x="20" y="30" scale="0.15"
onclick="social.share(facebook,get(tourlink));"
/>

<layer name="twitter_btn" url="twitter.png" keep="true"
align="righttop" x="60" y="30" scale="0.15"
onclick="social.share(twitter,get(tourlink));"
/>


<layer name="popup2" url="redlink.png" scale="0.3" visible="true" keep="true" align="lefttop" x="100" y="100"
html="Web"
onclick="popup('iframe','http://www.dnm.dk', 1000, 600, true);"
/>