Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
ok thanks
in fact i'm using Firefox on mac, but i tested with several browser it's the same.
the problem is not the url in the address bar, it is updated immediatly, the problem is the content of the copied value with copylink() function which is not up to date (it copy "fullurl" value not "value" value)
one thing i don't get : i the newest example you use a variable data[viewurl].content to set the url, ok, but how can this value be copied with copylink() ? it doesn't work.
for the moment the best workaround for me is to not use bitly, use setparam, and tell user to manually copy the link in adresse bar, as copylink don't work with params.
regards
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »pano_ramic« (19. September 2012, 15:29)
Hi Jaydee,
is it possible to creat pano subnodes dynamically?
i mean i have a routine that browse all scenes at start, i would like to add then pano subnode for each scene, with its title, path etc..
thanks
hi jaydee,
would it be possible, to get the facebook-sharing-image (the picture aside the text when clicking the facebook button) to be dynamically/predefined per xml/scene?
i mean, right now you can set a path to an image which appears left from the text. is there a way to use an dynamic image (eg. to a thumb-image, like generated in the vtour droplet) per scene/xml?? that would be really cool!
EDIT: so the result should/would be, to have one predefined facebook-thumb per xml-file or scene.
is there any way to achieve this?
cheers
christian
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 |
<pano name="pano1"
scene="pano1"
pageurl="/pano1/"
pagetitle="Panorama 1"
onxmlcomplete="set_share_image('http://site.com/fbthumb1.gif');"
/>
<pano name="pano2"
scene="pano2"
pageurl="/pano2/"
pagetitle="Panorama 2"
onxmlcomplete="set_share_image('http://site.com/fbthumb2.gif');"
/>
|
|
|
Quellcode |
1 2 3 |
<action name="set_share_image"> set(data[facebook_share_image].content, %1); </action> |
Hi Jaydee,
I bought the plugin yesterday, but i do something wrong.
But i can't find out, i used the basic demo.
the link is: http://www.andrewils.nl/iphoneipad/swfa/index.html
and the email, facebook and twitter don't open.
Can you help me to solved this.
regards
Wilsan
Thanks for you quick response Zephyr, but I have the adjustment done but unfortunately no change doesn't work.De url wordt goed geupdate. Ik zie zo niet waarom het sharen niet goed gaat. Ik denk dat het hier aan ligt:Hi Jaydee,
I bought the plugin yesterday, but i do something wrong.
But i can't find out, i used the basic demo.
the link is: http://www.andrewils.nl/iphoneipad/swfa/index.html
and the email, facebook and twitter don't open.
Can you help me to solved this.
regards
Wilsan
openurl(get(%1), get(data[link_target].content)))); in swfaddress.xml
get(%1) moet gewoon %1 zijn
in english:
The linkable url is working. I can't see directly why sharing isnt working. I think its because the openurl(get(%1), get(data[link_target].content)))); in swfaddress.xml. get(%1) should be %1
Zephyr
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
<krpano> <!-- Data --> <data name="email_subject_text" content="Check out this view!"/> <data name="email_body_text" content="I really liked this scene inside VIRTUAL_TOUR_NAME! "/> <data name="facebook_share_title" content="VIRTUAL_TOUR_NAME"/> <data name="facebook_share_text" content="I really liked this scene inside this virtual tour!"/> <data name="facebook_share_image" content="http://jaydee.ru/kp/sa/demo/images/fbthumb.gif"/> <data name="tweeter_share_text" content="Check out this view inside VIRTUAL_TOUR_NAME!"/> <!-- Plugins --> <plugin name="swfaddress" url="plugins/sa.swf" alturl="plugins/sa.js" keep="true" preload="true" mode="auto" randomroot="false" parsepaths="true" titlePrefix="Virtueel Rondwandelen: " titlePostfix="" onurlchange="activatepano(%PANOID, %TYPE);" onpathchange="" onparamschange="paramschangeaction();" oninvalidaddress="showlog(); trace(Invalid address);" > <pano name="pano1" xmlurl="%SWFPATH%/pano/0.xml" pageurl="/Concert-zaal/" pagetitle="Het Blauw uurtje in Tilburg. Concert-zaal." onxmlcomplete="trace(Eerste bolpanorama geladen);" /> <pano name="pano2" xmlurl="%SWFPATH%/pano/1.xml" pageurl="/Koningsplein-fontein/" pagetitle="Het Blauw uurtje in Tilburg. Koningsplein-fontein." onxmlcomplete="trace(Tweede bolpanorama geladen);" /> <pano name="pano3" xmlurl="%SWFPATH%/pano/2.xml" pageurl="/Prinses-Irene plein/" pagetitle="Het Blauw uurtje in Tilburg. Prinses-Irene plein." onxmlcomplete="trace(Derde bolpanorama geladen);" /> <pano name="pano4" xmlurl="%SWFPATH%/pano/3.xml" pageurl="/Uitzicht-Heikesekerk/" pagetitle="Het Blauw uurtje in Tilburg. Uitzicht-Heikesekerk." onxmlcomplete="trace(Vierde bolpanorama geladen);" /> </plugin> <plugin name="bitly" url="plugins/bitly.swf" alturl="plugins/bitly.js" keep="true" preload="true" apikey="R_3d14ee49332b7a5659eb2ab8a188b137" login="wilsan44" onerror="showlog(); trace(The URL cannot be shortened);" /> <!-- Actions --> <action name="activatepano"> if (%2 == scene, loadscene(%1,null,KEEPBASE,BLEND(1))); if (%2 == xml, loadpano(%SWFPATH%/%1,null,KEEPBASE,BLEND(1))); wait(blend); </action> <action name="paramschangeaction"> ifnot (plugin[swfaddress].hasparams === false, parseparams(); plugin[swfaddress].removeparams();); </action> <action name="parseparams"> if (plugin[swfaddress].param_ath !== null, copy(p_ath, plugin[swfaddress].param_ath), copy(p_ath, view.hlookat)); if (plugin[swfaddress].param_atv !== null, copy(p_atv, plugin[swfaddress].param_atv), copy(p_atv, view.vlookat)); if (plugin[swfaddress].param_fov !== null, copy(p_fov, plugin[swfaddress].param_fov), copy(p_fov, view.fov)); lookto(get(p_ath), get(p_atv), get(p_fov)); </action> <action name="getlinktothisview"> set(data[viewurl].content, null); txtadd(data[viewurl].content, get(plugin[swfaddress].baseurl), '#', get(plugin[swfaddress].path), '?ath=', get(view.hlookat), '&atv=', get(view.vlookat), '&fov=', get(view.fov)); </action> <action name="prepareurl"> getlinktothisview(); plugin[bitly].shorten(data[viewurl].content, true); </action> <action name="openlink"> if (ishtml5, plugin[swfaddress].replaceampersands(get(%1), %1)); if (ishtml5, set(data[link_target].content, '_self'), set(data[link_target].content, '_blank')); if (plugin[swfaddress].isiframe, set(data[link_target].content, '_top')); openurl(%1, get(data[link_target].content)))); </action> <!-- Share via e-mail actions --> <action name="share_via_email"> set(plugin[bitly].onsuccess, share_url_via_email(%URL);); prepareurl(); </action> <action name="share_url_via_email"> set(data[link].content, null); txtadd(data[link].content, 'mailto:?subject=', get(data[email_subject_text].content), '&body=', get(data[email_body_text].content), %1); openlink(data[link].content); </action> <!-- Share on Facebook actions --> <action name="share_on_facebook"> set(plugin[bitly].onsuccess, share_url_on_facebook(%URL);); prepareurl(); </action> <action name="share_url_on_facebook"> set(data[link].content, null); txtadd(data[link].content, 'http://www.facebook.com/sharer.php?s=100&p[title]=', get(data[facebook_share_title].content), '&p[url]=', %1, '&p[images][0]=', get(data[facebook_share_image].content), '&p[summary]=', get(data[facebook_share_text].content)); openlink(data[link].content); </action> <!-- Share on Twitter actions --> <action name="share_on_twitter"> set(plugin[bitly].onsuccess, share_url_on_twitter(%URL);); prepareurl(); </action> <action name="share_url_on_twitter"> set(data[link].content, null); txtadd(data[link].content, 'http://twitter.com/share?text=', get(data[tweeter_share_text].content), '&url=', %1); openlink(data[link].content); </action> </krpano> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
<krpano version="1.0.8.14" showerrors="true" logkey="true"> <include url="swfaddress.xml"/> <include url="skin/defaultskin.xml" /> <plugin name="pano1" url="images/thumb1.jpg" keep="true" align="topleft" alpha="0.5" scale="0.30" x="10" y="10" altonloaded="if(isphone, mul(scale,2));" onclick="activatepano(pano/0.xml, xml);" onhover="showtext(Concert-zaal, hotspottextstyle);" onover="tween(plugin[pano1].alpha, 1, distance(5,2), linear); tween(plugin[pano1].scale, 0.35, distance(5,2), linear);" onout="tween(plugin[pano1].alpha, 0.5, distance(5,2), linear); tween(plugin[pano1].scale, 0.30, distance(5,2), linear);" root="false" /> <plugin name="pano2" url="images/thumb2.jpg" keep="true" align="topleft" alpha="0.5" scale="0.30" x="10" y="95" altonloaded="if(isphone, mul(y,2); mul(scale,2));" onclick="activatepano(pano/1.xml, xml);" onhover="showtext(Koningsplein-fontein, hotspottextstyle);" onover="tween(plugin[pano2].alpha, 1, distance(5,2), linear); tween(plugin[pano2].scale, 0.35, distance(5,2), linear);" onout="tween(plugin[pano2].alpha, 0.5, distance(5,2), linear); tween(plugin[pano2].scale, 0.30, distance(5,2), linear);" root="false" /> <plugin name="pano3" url="images/thumb3.jpg" keep="true" align="topleft" alpha="0.5" scale="0.30" x="10" y="180" altonloaded="if(isphone, mul(y,2); mul(scale,2));" onclick="activatepano(pano/2.xml, xml);" onhover="showtext(Prinses-Irene plein, hotspottextstyle);" onover="tween(plugin[pano3].alpha, 1, distance(5,2), linear); tween(plugin[pano3].scale, 0.35, distance(5,2), linear);" onout="tween(plugin[pano3].alpha, 0.5, distance(5,2), linear); tween(plugin[pano3].scale, 0.30, distance(5,2), linear);" root="false" /> <plugin name="pano4" url="images/thumb4.jpg" keep="true" align="topleft" alpha="0.5" scale="0.30" x="10" y="265" altonloaded="if(isphone, mul(y,2); mul(scale,2));" onclick="activatepano(pano/3.xml, xml);" onhover="showtext(Uitzicht-Heikesekerk, hotspottextstyle);" onover="tween(plugin[pano4].alpha, 1, distance(5,2), linear); tween(plugin[pano4].scale, 0.35, distance(5,2), linear);" onout="tween(plugin[pano4].alpha, 0.5, distance(5,2), linear); tween(plugin[pano4].scale, 0.30, distance(5,2), linear);" root="false" /> <plugin name="email_button" url="images/email.png" align="topright" x="10" y="10" altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));" onhover="showtext(Share this view via e-mail, hotspottextstyle);" onclick="share_via_email();" /> <plugin name="facebook_button" url="images/facebook.png" align="topright" x="50" y="10" altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));" onhover="showtext(Share this view on Facebook, hotspottextstyle);" onclick="share_on_facebook();" /> <plugin name="twitter_button" url="images/twitter.png" align="topright" x="90" y="10" altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));" onhover="showtext(Share this view on Twitter, hotspottextstyle);" onclick="share_on_twitter();" /> <textstyle name="hotspottextstyle" font="Arial" fontsize="18" bold="true" italic="true" textcolor="0xFFF7EF" background="false" border="false" alpha="1" blendmode="layer" effect="glow(0x000000,0.5,4,3);dropshadow(4,45,0x000000,4,0.66);" origin="cursor" edge="bottom" textalign="center" xoffset="0" yoffset="-3" noclip="true" showtime="0.1" fadetime="0.25" fadeintime="0.1" /> <plugin name="logo" url="skin/Logo_andrewils.png" keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="1.00" blendmode="normal" smoothing="true" origin="rightbottom" edge="" x="10" y="10" width="85" height="85" scale="1.3" onloaded="" altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));" onover="" onhover="showtext(voor meer informatie bezoek www.andrewils.nl, hotspottextstyle);" onout="" ondown="" onup="" onclick="openurl(http://www.andrewils.nl);" /> <scene name="scene0"> <view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmax="120" limitview="auto" /> <preview url="%SWFPATH%/tiles/0.tiles/preview.jpg" /> <image> <cube url="%SWFPATH%/tiles/0.tiles/pano_%s.jpg" /> <mobile> <cube url="%SWFPATH%/tiles/0.tiles/mobile_%s.jpg" /> </mobile> </image> </scene> <scene name="scene1"> <view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmax="120" limitview="auto" /> <preview url="%SWFPATH%/tiles/1.tiles/preview.jpg" /> <image> <cube url="%SWFPATH%/tiles/1.tiles/pano_%s.jpg" /> <mobile> <cube url="%SWFPATH%/tiles/1.tiles/mobile_%s.jpg" /> </mobile> </image> </scene> <scene name="scene2"> <view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmax="120" limitview="auto" /> <preview url="%SWFPATH%/tiles/2.tiles/preview.jpg" /> <image> <cube url="%SWFPATH%/tiles/2.tiles/pano_%s.jpg" /> <mobile> <cube url="%SWFPATH%/tiles/2.tiles/mobile_%s.jpg" /> </mobile> </image> </scene> <scene name="scene3"> <view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmax="120" limitview="auto" /> <preview url="%SWFPATH%/tiles/3.tiles/preview.jpg" /> <image> <cube url="%SWFPATH%/tiles/3.tiles/pano_%s.jpg" /> <mobile> <cube url="%SWFPATH%/tiles/3.tiles/mobile_%s.jpg" /> </mobile> </image> </scene> </krpano> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »igor.socha« (30. November 2012, 10:54)
|
|
Quellcode |
1 2 3 4 5 |
<action name="activatepano"> if (%2 == scene, loadscene(%1,null,KEEPBASE,BLEND(1))); if (%2 == xml, loadpano(%SWFPATH%/%1,null,KEEPBASE,BLEND(1))); wait(blend); </action> |
|
|
Quellcode |
1 2 3 4 5 |
<action name="activatepano"> if (%2 == scene, loadscene(%1,null,KEEPBASE,BLEND(1))); if (%2 == xml, mainloadpano(%SWFPATH%/%1,null,KEEPBASE,BLEND(1))); wait(blend); </action> |
|
|
Quellcode |
1 |
activatepano('YOUR XML FILE', 'xml');
|
|
|
Quellcode |
1 |
onclick="looktohotspot(get(name),get(view.fovmin),smooth(400,20,100));mainloadpano(YOUR XML FILE);activatepano('YOUR XML FILE', 'xml');lookat(get(panoview.h),get(panoview.v),get(panoview.fov));wait(blend);lookto(get(hview),get(vview),get(fovview),smooth(100,20,50));"
|
Hi sisso,to solve the issue of the share, you just have to replace bitly.swf by an older version of the plugin. as you can see bitly.js allready works !
bitly just change some features and those are not fully compatible with de last version of bitly.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »a_tekautz« (28. Januar 2013, 17:52)