Override Plugin [DUPLICATE AND CHANGE]

More
10 years 1 week ago - 10 years 1 week ago #59659 by ggppdk
Hello

1. do not display the field

2. instead add custom code inside your
item(_html5).php
category_items(_html5).php
Code:
$favourites = & $item->favs; $favoured = & $item->fav; $field->value[] = 'button'; // dummy value to force display $favs = flexicontent_html::favoured_userlist( $field, $item, $favourites); echo ' <div class="fav-block"> '.flexicontent_html::favicon( $field, $favoured, $item ).' <div id="fcfav-reponse_item_'.$item->id.'" class="fcfav-reponse-tip"> <div class="fc-mssg fc-info fc-iblock fc-nobgimage '.($favoured ? 'fcfavs-is-subscriber' : 'fcfavs-isnot-subscriber').'"> '.JText::_($favoured ? 'FLEXI_FAVS_YOU_HAVE_SUBSCRIBED' : 'FLEXI_FAVS_CLICK_TO_SUBSCRIBE').' </div> '.$favs.' </div> </div>';

3. also find the function favicon(...) inside
component/com_flexicontent/classes/flexicontent.helper.php

and copy it at the top of your Joomla template index,php
as
Code:
function myFAVdisplay(...) { }

then inside your custom code replace:
flexicontent_html::favicon
with
myFAVdisplay

- we have already updated the code to be prepared for supporting "favouring" type since in future version we will support favouring
categories
users


so the server URL variable will not change, but be prepared in future that they might change and you might need to update something

- We have delayed added custom layouts for many fields until things have finalized !! e.g. fieldgroup support, (now most have)
favourites will also get / allow custom layouts in future release


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
Last edit: 10 years 1 week ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
10 years 1 week ago #59663 by lclaude
Waowww...

As always : you're support is awesome!
I thank you for your technical answer, I'll test ASAP.
And I thank you for informations about the near future of FC,
your annonces are allways for progress, we need all when we know you're working on ;)

Laurent

Please Log in or Create an account to join the conversation.

More
10 years 1 week ago #59665 by ggppdk
Hello

please re-copy the code,
i have made some updates to it, because it was a quick copy out of the field


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save