By Mel on Tuesday, 27 June 2017
Posted in General
Replies 3
Likes 0
Views 269
Votes 0
Hi,

if I want to create a button that opens up another users calendar/appointments what would I use to call the calendar?

I have a button code that Arlex/Mark gave me and I want to adapt it to show a user's calendar:

$ESuser = ES::user($agent->user_id);
?>
<li>
<button type="button" class="btn btn-warning"
data-es-conversations-compose
data-id="<?php echo $ESuser->id;?>">
VIEW MY CALENDAR
</button>
</li>



I am guessing it is this line:

data-es-conversations-compose

I have gone through the documentation but there isn't much on the calendar application.

What should that be for a user's calendar - I am hoping the rest of the code is ok?

Kind regards

Mel
Hello Mel,

You need to generate the link to the calendar app for the particular user and not just a button like this. You can take a look at the existing calendar link and generate a similar link with the user's id.
·
Tuesday, 27 June 2017 15:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

I shall take a look at that now. Are you able to tell me what file is responsible for producing the users calendar link?

Is there any tool out there that would help us identify where things like this are - i.e. what file a piece of code is in so we don't have to keep asking/wasting your support team's time?

Mel
Mel
·
Tuesday, 27 June 2017 17:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mel,

It's more about searching for the html codes throughout EasySocial because there is really no way to write any documentation to pin point every single link as the documentation would eventually end up thicker than a bible

I think you would want to take a look at the link generated in the address bar when you are viewing the calendar (probably turn off sef) so you can get the raw non sef url.
·
Tuesday, 27 June 2017 17:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post