Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: unformatted_ on June 03, 2011, 08:07:45 PM

Title: iLikeViral
Post by: unformatted_ on June 03, 2011, 08:07:45 PM
Hi!

I have the standalone script iLikeViral.com
But cant get ir working on /template/default/index.template.php

Here it is the example code:
<html>
<head>
<title>Test ilikeviral</title>
<script type="text/javascript" src="viral/script.js"></script>
<script type="text/javascript">
var expires = 60 * 60 * 24 * 3; // 3 days
var obj = new viral({
'title'  : 'Example', // String. box title
'content': 'Example content', // String. box content
'url'    : 'http://example.com', // String. Url to share
'timeout': 30, // Int. Display lock time
'type'   : 'like', // String. Button type ['like', 'share']
'show_counter': true, // Bool. Show countdown
'close_mode'  : 'button', // String. Close mode ['button', 'timer']
'close_text'  : 'Close', // String. Close button text
'expires'     : expires, // Int. Show again after (min)
'transperent' : 0.6, // Float. Overlay transperent (0-1)
'affiliate'   : 'affiliate_id', // String. Your affiliate id
'times': 2, // Int. Only show once in every
'new_window': 'http://example.com', // String. Open new window after Likes, if is set url for new window
'base_path': 'viral/' // String. Base path. Default base path equal 'viral/'
});
</script>
</head>
<body>
<h2><a href="http://ilikeviral.com/">iLikeViral</a></h2>
</body>
</html>


I uploaded the /viral folder to root and template directory

If I configure this code adn ulpoad I get an error on the forum (something related with expected , and ;)
Title: Re: iLikeViral
Post by: CapadY on June 04, 2011, 04:59:47 AM

This doen't realy seems to be a SMF problem but a problem with the script you are using.
So contact the script author.