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.

  • "Sudarchikov Andrey" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

1

Saturday, March 1st 2014, 12:23pm

Social Media share

Hi!
social share simplest example:

Source code

1
2
3
4
5
6
7
<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="
        googleplus="https://plus.google.com/share?url="
        vkontakte="http://vkontakte.ru/share.php?url="
        odnoklassniki="http://www.odnoklassniki.ru/dk?st.cmd=addShare&amp;st.s=1&amp;st._surl="
/>

usage:

Source code

1
2
3
4
5
<layer name="face_book_button"
	....
	....
	onclick="social.share(facebook,http://your_domain.com/path_to_tour/page.html)"
/>



Include code above to a tour xml.
how to use:
to share url just call for example onlcick="social.share(facebook,http://your_domain.com/path_to_tour/page.html)"
and your link http://your_domain.com/path_to_tour/page.html url
will be shared on social net.


how to get direct link to specific scene read this thread "Direct link to specific scene"


Regards
Andrey.
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

This post has been edited 2 times, last edit by "Sudarchikov Andrey" (Nov 9th 2015, 8:21pm)


Alexey Tkachenko

Professional

Posts: 740

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

2

Monday, March 3rd 2014, 9:24am

Wow) cool) Never thought that it's possible to call an action from within an array)) like array.perform(par1,par2); *thumbsup* Really useful feature)
Regards,

Alexey

3

Friday, March 7th 2014, 4:02pm

Simple and powerful!

4

Thursday, March 13th 2014, 7:15pm

Wow,
Simple and powerful!

Great Andrey! and quite the endorsement!! :)

5

Friday, March 14th 2014, 10:28am

Hi Andrey, would it be possible for you to throw up an example so I can see it working, then I can understand the code better. Only if you have time of course :)

  • "Sudarchikov Andrey" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

6

Friday, March 14th 2014, 11:05am

Hi!
what exactly you don't understand?
I will try to explain of course

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

7

Friday, March 14th 2014, 1:12pm

Hi Andrey, I just wanted to see a working example, that way I can see how to place the source code correctly.

  • "Sudarchikov Andrey" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

8

Friday, March 14th 2014, 5:23pm

Hm..
I thought it's enough understandable :)
anyway here it is


Andrey

enjoy
Sudarchikov Andrey has attached the following file:
  • social.xml (984 Byte - 338 times downloaded - latest: Aug 11th 2019, 6:41am)
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

9

Friday, March 14th 2014, 6:09pm

Thanks Andrey, all clear now - I am a relative newbie so still learning bit by bit :)

Thanks for your patience and time *thumbsup*

  • "Sudarchikov Andrey" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

10

Saturday, March 15th 2014, 9:28pm

Hi!
good luck!

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

Felipeca

Beginner

Posts: 33

Location: México City

Occupation: Dsigner, 3dmodeler and photographer

  • Send private message

11

Friday, April 18th 2014, 12:53am

Amazing!

I´ve just ried it and it´s amazing! Thanks a lot.

12

Wednesday, January 28th 2015, 11:14am



looks great :), I didn't try jet I've bought two days ago the software.
I have a question: the line "http://your_domain.com/path_to_tour/page.html url " must be every time unique, or can be like
I found on a site:

Source code

1
2
3
4
5
6
7
8
 <a onclick="
		    window.open(
		      'http://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 
		      'facebook-share-dialog', 
		      'width=626,height=436'); 
		    return false;" href="#">
		  Share on Facebook
		</a>


this code open a dialog box 626x 436 with the current URL copied inside
I hope I was useful, and learned something from you
Best regards
Diego.

canadarama

Beginner

Posts: 31

Location: Canada

Occupation: Photographer

  • Send private message

13

Saturday, February 28th 2015, 7:18am

Perfect! Thank you Andrey *thumbsup*

canadarama

Beginner

Posts: 31

Location: Canada

Occupation: Photographer

  • Send private message

14

Saturday, February 28th 2015, 9:56pm

Is there any way that a thumb or small image could be grabbed to go along with the facebook share? I believe it would bump the post up and generate more clicks.

Anyone?

Thank you!

igor.socha

Intermediate

Posts: 168

Location: Tirol, Austria

Occupation: Photographer

  • Send private message

15

Thursday, March 19th 2015, 12:31pm

Nice, very helpful, thank you!
Best regards,
Igor Socha

This post has been edited 1 times, last edit by "igor.socha" (Mar 19th 2015, 5:02pm)


Sergey74

Trainee

Posts: 124

Location: Russia, Chelyabinsk

Occupation: professional noob

  • Send private message

16

Tuesday, October 6th 2015, 12:56pm

Hm..
I thought it's enough understandable :)
anyway here it is


Andrey

enjoy

Привет! Я тут подумал, что можно заменить в вашем примере get(tourlink) на get(browser.location)
http://krpano.com/docu/actions/#browser.location
translation difficulties *huh*

17

Tuesday, October 6th 2015, 4:02pm

Kewl *thumbsup*

  • "Sudarchikov Andrey" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

18

Tuesday, October 6th 2015, 9:29pm

Hi!
great, it depends on goal and situation, for example tour is in an iframe or window opened and so on ;)
just remember that and adjust code as you need

Regards
Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

Midhat

Beginner

Posts: 34

Location: Sarajevo, Bosnia & Herzegovina

  • Send private message

19

Sunday, February 7th 2016, 11:33pm

Hm..
I thought it's enough understandable :)
anyway here it is


Andrey

enjoy
Hi,
I tried, but to me does not work for me.
When I click on the share, always shared link "null" instead of the real address of panoramas.
Where I made a mistake?


Edit: SOLVED!

This post has been edited 2 times, last edit by "Midhat" (Feb 8th 2016, 11:35am)


Midhat

Beginner

Posts: 34

Location: Sarajevo, Bosnia & Herzegovina

  • Send private message

20

Monday, February 8th 2016, 4:22pm

Is it possible to do that:
<krpano tourlink="http://mysite/?startscene=current_scene">


current_scene should be a variable that will change depending on the scene that is currently active


Thanks in advance
Midhat