Social Share and Comment option for nodes

Q&A about the latest versions
Post Reply
User avatar
nasirkhan
Posts: 4
Joined: Fri Apr 28, 2017 3:38 pm

Social Share and Comment option for nodes

Post by nasirkhan » Mon Apr 09, 2018 6:05 am

I want to add social share option for each nodes. I found an option to add Facebook Twitter share buttons, but it only shares the main url not the node specific URL. Is there anyway to to do this?

I also need to add comment/ feedback option on the tour. can anyone please suggest a solution for this? I also want to get the link of the specific node along with the comments. How can i achieve this?
--
Nasir Khan
http://nasirkhn.com

User avatar
Hopki
Gnome
Posts: 8222
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Social Share and Comment option for nodes

Post by Hopki » Wed May 16, 2018 1:52 pm

Hi Nasir,
I have had a look into this, there was a time you could add text to the Facebook feed links.
But from what I can see Facebook have stopped parameters on the feed dialog links.
So I can not see how you can do this, I will put a message on our internal message board for the developers to have look.
Regards,
Hopki

User avatar
nasirkhan
Posts: 4
Joined: Fri Apr 28, 2017 3:38 pm

Re: Social Share and Comment option for nodes

Post by nasirkhan » Wed May 16, 2018 2:03 pm

Thanks for the response.

Along with the facebook/twitter share, i want to add an option to submit feedback.

I want to publish a tour and let the visitors submit their feedback. The comments/ feedback will be node specific and sometimes for overall tour. Please help me add this feature.
--
Nasir Khan
http://nasirkhn.com

User avatar
Hopki
Gnome
Posts: 8222
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Social Share and Comment option for nodes

Post by Hopki » Wed May 16, 2018 10:11 pm

Hi,
I would look at a web based database that you can then bring in with an iframe.
Research web based feed back forms.
Example: https://www.w3schools.com/howto/howto_c ... t_form.asp
Regards,
Hopki

User avatar
nasirkhan
Posts: 4
Joined: Fri Apr 28, 2017 3:38 pm

Re: Social Share and Comment option for nodes

Post by nasirkhan » Thu May 24, 2018 6:09 am

Thanks for sharing your thoughts. I can create a web form in javascript and display via iframe or just simple popup/modal.

The point i am stuck at is, I do not know how to get the node_id of the current node of the tour and i need a button where user will click and the form will appear. Can you please help me to resolve this?
--
Nasir Khan
http://nasirkhn.com

mbb
Posts: 127
Joined: Mon Oct 19, 2009 11:42 pm

Re: Social Share and Comment option for nodes

Post by mbb » Thu May 24, 2018 10:00 am

nasirkhan wrote:
Thu May 24, 2018 6:09 am
I do not know how to get the node_id of the current node of the tour and i need a button where user will click and the form will appear. Can you please help me to resolve this?
Current nodeID is exposed via the P2VR javascript API-

pano.getCurrentNode()

You can see how this works yourself by creating a "Go to URL" action in P2VR with the following value as the URL-

javascript: alert(pano.getCurrentNode());

Post Reply

Who is online

Users browsing this forum: domel, keith@fachwen.org and 4 guests