Home » Categories » Multiple Categories

Adding Facebook Thumbs-up Button to Events

Note: Please only follow these instructions if you have basic experience in editing code.

This article is in regards the feature described in our blog post:
 

To add this feature to your Events calendar, your Events calendar version needs to be at least 7.14. If this is the case, then this "Facebook Like" feature is supported. If your system is on an earlier version, please email support at support@evancedsolutions.com to get it updated.

The next thing that you need to determine is whether your Events calendar application is hosted on your own server or server that belongs to Evanced Solutions. Usually, you can tell if you look at your calendar system's web address (URL), If it has the domain "evanced.info" in it, then please email support at support@evancedsolutions.com to get it added. If you host your calendar on your own server and have version 7.14 or higher, then below is the minor code update that you will need to make. Keep in mind, that if you would prefer that Evanced support staff handle this part, we will be more than happy to take care of it for you. Evanced staff will just need a remote access method to your server.
 
1- Find the "defines.inc" file that resides in the common folder of your Evanced web folder installation and create a copy of it for back up.
2- Open the "defines.inc" file in Notepad and insert the following line of code:
 
<!--#include FILE="facebook_meta.inc"-->  
 
in two spots:
 
  • Right after the starting <head> tag in the "Common Header Routine For Patron Pages" section.
  • Right after the starting <head> tag in the "Common Header Routine For Maintenance Pages" section.
3- Save defines.inc.
 
Here is a sample of how that section of the code will look like after the insertion of the facebook include file:
.
.
.
.
Sub DisplayHeader(TitleText, HeaderText, LibNameFlag)

If LibNameFlag = LIBHEADER Then
HeaderTextStr = LIBNAME & "<BR>" & HeaderText
Else
HeaderTextStr = HeaderText
End If

%>
<html>
<head>

<!--#include FILE="facebook_meta.inc"-->

<title><%=TitleText%></title>
<%If WRITESTYLES = "1" Then %>
<link rel="stylesheet" type="text/css" href="niftyCorners.css">
<link rel="stylesheet" type="text/css" href="niftyPrint.css" media="print">
<script type="text/javascript" src="nifty.js"></script>
<style type="text/css">
<%ShowStyle "public" %>
</style>
<%Else %>
<link rel="stylesheet" type="text/css" href="dynamicsheet.asp?st=public">
<%End If %>
</head>

<body>
<div id="header">
<table border="0" width="100%">
<tr>
<td width="10%">&nbsp;</td>
<td width="80%" align="center"><div class="title"><%=HeaderTextStr%></div></td>
<td width="10%"><!--#include FILE="textadjust.asp"--></td>
</tr>
</table>
</div>
<%
End Sub

.
.
.
 
4- Access your calendar pages from both staff and patron sides, clicking on an event to make sure the Like button is showing up on the event's details page and actually working. 
 
0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles
E-Notify Status Notification
Viewed 5964 times since Fri, May 11, 2012
Frequently Asked Questions About Migration to SignUp from Events
Viewed 17768 times since Wed, Sep 12, 2012
Adding Google Analytics to the Event Calendar and Room Request public pages
Viewed 21944 times since Thu, Dec 8, 2011
What happens to archived events?
Viewed 3326 times since Thu, Oct 27, 2011
Looking at Events and Rooms Side by Side
Viewed 21622 times since Wed, Dec 7, 2011
How To Events-Change the list of locations
Viewed 6113 times since Tue, Sep 27, 2011
Why do I get a warning message, about removing my event’s attendees information, when I try to edit a recurring event
Viewed 12967 times since Thu, Oct 27, 2011
How To Events-Include a link to a calendar on my website
Viewed 13496 times since Tue, Sep 27, 2011
Deleting a single session in a recurring event
Viewed 8700 times since Thu, Oct 27, 2011
Events and Room Reserve Files to Back up
Viewed 3530 times since Tue, Sep 25, 2012