Jump to content

Activation tagging


vagdou

Recommended Posts

Hi,

 

I want to display the tags bottom Right at footer but I can not  do.

 

I've already enabled module tag, and from the management, but also the theme that I installed

 

and from the management, but also the theme that I installed which is : Supermart.

 

I show and a screenshot..

 

or even if there is a guide to guide me.

 

 

Thank you very much

 

Yours sincerely

 

vag dou

post-1282611-0-32176600-1467644802_thumb.png

Link to comment
Share on other sites

The "Tags block" is not designed to be placed in the footer, so you'll have to modify the module to enable it to be placed there. For example, you can copy and rename the hookLeftColumn function from modules/blocktags/blocktags.php and change the template from blocktags to blocktags_footer like this:

	function hookFooter($params)
	{
		if (!$this->isCached('blocktags.tpl', $this->getCacheId('blocktags')))
		{
			$tags = Tag::getMainTags((int)($params['cookie']->id_lang), (int)(Configuration::get('BLOCKTAGS_NBR')));

			$max = -1;
			$min = -1;
			foreach ($tags as $tag)
			{
				if ($tag['times'] > $max)
					$max = $tag['times'];
				if ($tag['times'] < $min || $min == -1)
					$min = $tag['times'];
			}

			if ($min == $max)
				$coef = $max;
			else
				$coef = (Configuration::get('BLOCKTAGS_MAX_LEVEL') - 1) / ($max - $min);

			if (!count($tags))
				return false;
			if (Configuration::get('BLOCKTAGS_RANDOMIZE'))
				shuffle($tags);
			foreach ($tags as &$tag)
				$tag['class'] = 'tag_level'.(int)(($tag['times'] - $min) * $coef + 1);
			$this->smarty->assign('tags', $tags);
		}
		return $this->display(__FILE__, 'blocktags_footer.tpl', $this->getCacheId('blocktags'));
	}

You can then copy themes/<your_theme>/modules/blocktags/blocktags.tpl to themes/<your_theme>/modules/blocktags/blocktags_footer.tpl and then modify the file so it matches the other modules in the footer. You may need to add code to themes/<your_theme>/css/modules/blocktags/blocktags.css to style the block too.

Link to comment
Share on other sites

Hi

 

Unfortunately there was a change

 

I did as you told me, but did not change anything.

 

at document which gives the theme file as PDF
It gives without saying somewhere to change as you wrote me.

 

at document which gives the theme file as PDF
It gives without saying somewhere to change as you wrote me.

unless I mistake somewhere in that you told me to do.

 

the theme where I bought is this : http://addons.prestashop.com/en/21834-supermart-hightech-responsive.html

 

I only got the theme without modules.

 

Thank you very much

 

Yours sincerely

 

vag dou

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...