Hide Pin It Button

This is the place to post questions and comments about the FlexBanner component
Post Reply
MarsFrog
Posts: 15
Joined: Wed Sep 18, 2013 5:11 pm

Hide Pin It Button

Post by MarsFrog » Mon Jan 20, 2014 2:07 pm

Hi

I just wondered if there was anyway of having this - nopin = "nopin" - added to every advert to stop the Pinterest button being shown on them?

Thanks

MarsFrog
Posts: 15
Joined: Wed Sep 18, 2013 5:11 pm

Re: Hide Pin It Button

Post by MarsFrog » Mon Jan 20, 2014 3:20 pm

Should have said I am able to add it to each advert separately but I wondered if it is possible to add it to the PHP so it is automatically applied to all adverts.

I tried adding it to the end of the lines 376, 383, 394 and 402 in flexbanner.php but it didn't work.

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Hide Pin It Button

Post by Andrew998 » Tue Jan 21, 2014 2:27 pm

It isn't something I would add to the extension at present but if you want to do it I'd just add it in the module. The file is mod_flexbanners.php and you can add it on line 148 and/or 155. Remember, you'll need to redo it each time you update the extension.
Andrew998
Developer

MarsFrog
Posts: 15
Joined: Wed Sep 18, 2013 5:11 pm

Re: Hide Pin It Button

Post by MarsFrog » Tue Jan 21, 2014 3:34 pm

Hi Thanks. Is this the right bit?

require (JModuleHelper::getLayoutPath('mod_flexbanners'));

I have tried

require (JModuleHelper::getLayoutPath('mod_flexbanners')); nopin;

&

require (JModuleHelper::getLayoutPath('mod_flexbanners')); 'nopin';

&

require (JModuleHelper::getLayoutPath('mod_flexbanners', 'nopin'));

But none of these worked. I am using Custom code in Flexbanners and not images. I don't know is this makes any difference.

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Hide Pin It Button

Post by Andrew998 » Tue Jan 21, 2014 3:36 pm

If you are using custom code FlexBanners doesn't add anything. You need to make the change in your custom code.
Andrew998
Developer

MarsFrog
Posts: 15
Joined: Wed Sep 18, 2013 5:11 pm

Re: Hide Pin It Button

Post by MarsFrog » Tue Jan 21, 2014 3:37 pm

OK thanks

Post Reply