Sie sind nicht angemeldet.

1

Samstag, 1. März 2014, 12:23

Social Media share

Hi!
social share simplest example:

Quellcode

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:

Quellcode

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

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Sudarchikov Andrey« (9. November 2015, 20:21)


Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Montag, 3. März 2014, 09:24

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

Freitag, 7. März 2014, 16:02

Simple and powerful!

4

Donnerstag, 13. März 2014, 19:15

Wow,
Simple and powerful!

Great Andrey! and quite the endorsement!! :)

virtual pete

Fortgeschrittener

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

5

Freitag, 14. März 2014, 10:28

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 :)

6

Freitag, 14. März 2014, 11:05

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

virtual pete

Fortgeschrittener

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

7

Freitag, 14. März 2014, 13:12

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

8

Freitag, 14. März 2014, 17:23

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


Andrey

enjoy
»Sudarchikov Andrey« hat folgende Datei angehängt:
  • social.xml (984 Byte - 524 mal heruntergeladen - zuletzt: Heute, 05:13)
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

virtual pete

Fortgeschrittener

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

9

Freitag, 14. März 2014, 18:09

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

Thanks for your patience and time *thumbsup*

10

Samstag, 15. März 2014, 21:28

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

Anfänger

Beiträge: 38

Wohnort: México City

Beruf: Dsigner, 3dmodeler and photographer

  • Nachricht senden

11

Freitag, 18. April 2014, 00:53

Amazing!

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

12

Mittwoch, 28. Januar 2015, 11:14



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:

Quellcode

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

Anfänger

Beiträge: 31

Wohnort: Canada

Beruf: Photographer

  • Nachricht senden

13

Samstag, 28. Februar 2015, 07:18

Perfect! Thank you Andrey *thumbsup*

canadarama

Anfänger

Beiträge: 31

Wohnort: Canada

Beruf: Photographer

  • Nachricht senden

14

Samstag, 28. Februar 2015, 21:56

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!

15

Donnerstag, 19. März 2015, 12:31

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

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »igor.socha« (19. März 2015, 17:02)


Sergey74

Fortgeschrittener

Beiträge: 193

Wohnort: Russia, Chelyabinsk

Beruf: professional noob

  • Nachricht senden

16

Dienstag, 6. Oktober 2015, 12:56

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*

18

Dienstag, 6. Oktober 2015, 21:29

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

Schüler

Beiträge: 46

Wohnort: Sarajevo, Bosnia & Herzegovina

  • Nachricht senden

19

Sonntag, 7. Februar 2016, 23:33

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!

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Midhat« (8. Februar 2016, 11:35)


Midhat

Schüler

Beiträge: 46

Wohnort: Sarajevo, Bosnia & Herzegovina

  • Nachricht senden

20

Montag, 8. Februar 2016, 16:22

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