News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

iLikeViral

Started by unformatted_, June 03, 2011, 08:07:45 PM

Previous topic - Next topic

unformatted_

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

CapadY


This doen't realy seems to be a SMF problem but a problem with the script you are using.
So contact the script author.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Advertisement: