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.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.

© 2010- JoomLine

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.org is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.