Documentation extansion JL Social Interlock.

Showing social lock in any place

This method created by us especially for projects that need to hide a coupon code or other regular information that can offer this or that site.

Consider the case when you need to bring a coupon code from an online store Virtuemart in place to acquire. This method will work anywhere in Joomla, template, module, plugin or component.

In the file:

/templates/template_joomla/html/com_virtuemart/productdetails/default.php

If you have not overridden component template recommended you do so in advance.

In the desired location, insert the following code:

 <div class="inter-lock">
	<?php
		require_once JPATH_ROOT.'/plugins/content/jllikelock/helpers/helper.php';
		$link = 'http://site.ru';
		$hiddenHtml = '<p>TEXT</p>';
		echo plgJLLikeLockHelper::loadLikeLock($hiddenHtml, $link);
	?>
</div>

$link = 'http://site.ru'; - Specify the page of the site, you can specify any page or regular expression generates an array of pages.

$hiddenHtml = '<p>TEXT</ p>'; In quotes you can enter any text with any formatting, it will be displayed when you open the lock.

Warning! In this derivation social plug-lock settings effectively ceased to function, disable this social castle in any category you can not, just this method actually does not allow partially or completely hide the content of the page.

Configuring plugins JL Social interlock

For correct operation of the plugin is required to perform several configuration steps.

To do this, pass the "Manage Plugins" Joomla. Find a list of plugins JL Social interlock. Go to the settings.

Now we have to make the basic settings:

Find the setting "key for domain" to specify your key, the key can be received in his office on the site joomline.net in the key.

Find the setting "prefix domain" and specify your site with www or without www. Just recommend to do a redirect to the primary domain with an additional. This is a very important step, because social networks are two different domain and for the plugin, just two different domain.

Now you have a few ways:

Set the category to be excluded for social lock. To do this, select AutoAdd and eliminate unnecessary search.

Use tags:

{jllikelock }text{/jllikelock}

Use the tag with reference to:

{jllikelock url=http://site.ru }text{/jllikelock}

Tags are used with no spaces.

Requirements for JL Social Interlock

We do not deal with web server configuration, and do not deal with the diagnosis, web server configuration, advice on setting up and detect problems with the server software we do not provide.

Carefully read the requirements to plugin JL Social Interlock:

  • Joomla 2.5 release 2.5.6 or above Joomla 3.x.
  • Version PHP 5.2 and above, we recommend PHP 5.3.
  • MySQL 5.0.41 or higher.
  • Curl Support of file_getcontent
  • Finding a site in on the existing DNS address, as social networks are turning directly to the site.

This highlights required by your server. However, we note that it is possible that there may be other problems with the web server settings.

Attention! Widgets work services social commentary at the closed site or the site is located on a local web server can not be carried out correctly.