[SOLVED] remove FLEXI_APPLYING_FILTERING in code?

More
10 years 6 months ago - 9 years 10 months ago #51215 by kath
hi there,

[my situation]
i get this code in my pages:
Code:
<script type="text/javascript"> (function() { var strings = {"FLEXI_APPLYING_FILTERING":"Applying Filtering","FLEXI_TYPE_TO_LIST":"... type to list","FLEXI_TYPE_TO_FILTER":" ... type to filter"}; if (typeof Joomla == 'undefined') { Joomla = {}; Joomla.JText = strings; } else { Joomla.JText.load(strings); } })(); </script>
It's there on category pages.

[my problem]
i think it's a security issue since it reveals joomla and FC.

[my question]
since i don't use filtering anyway in this project: can i get rid of this bit of code somehow?

[my setup]
j 3.3.6
fc 2.2.1 rc 29 October 2014

thanks a lot for your input, guys!
kath :)
Last edit: 9 years 10 months ago by ggppdk.

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

More
10 years 6 months ago #51218 by ggppdk
Hello

there are many other ways to detect Joomla and FLEXIcontent

there is no option to remove this code now without breaking the form, it may be possible just now there is no option to do this


-- 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...

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

More
10 years 6 months ago #51237 by kath
ok, thank you for your time.
>> there are many other ways to detect Joomla and FLEXIcontent
you're absolutely right, just stumbled across it...

thanks again,
kath :)

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

More
10 years 2 months ago - 10 years 2 months ago #53592 by iamrobert
Hi,

As a quickfix - if you don't want the code - as you like to put jquery files at the bottom of page and FLEXIcontent calling the script causes errors. You can hack the core:

File: : components/com_flexicontent/classes/flexicontent.helper.php

From Line 903 comment it out:
Code:
/* FLEXI_J16GE ? JText::script("FLEXI_APPLYING_FILTERING", true) : fcjsJText::script("FLEXI_APPLYING_FILTERING", true); FLEXI_J16GE ? JText::script("FLEXI_TYPE_TO_LIST", true) : fcjsJText::script("FLEXI_TYPE_TO_LIST", true); FLEXI_J16GE ? JText::script("FLEXI_TYPE_TO_FILTER", true) : fcjsJText::script("FLEXI_TYPE_TO_FILTER", true); */

Unfortunately - you will need to update it with every FLEXIcontent update and it *may* break something.

If you also don't want the clayout code as well:
Code:
<script type="text/javascript"> var _FC_GET = {"clayout":"article","limitstart":0}; jQuery(document).ready(function(){ jQuery('.hasTooltip').tooltip({"html": true,"container": "body"}); }); </script>

Comment it out in your template index.php adding a preg_replace near the top of the page:
Code:
if (isset($this->_script['text/javascript'])) { $this->_script['text/javascript'] = preg_replace('/\s*var _FC_GET = {\"clayout\":\"article\",\"limitstart\":0};\s*\n.*\n.*\n.*/', '',$this->_script['text/javascript']); if (empty($this->_script['text/javascript'])) unset($this->_script['text/javascript']); }

More here:
www.robertwent.com/blog/joomla/62-stripping-joomla-3
Cheers,

Robert
Last edit: 10 years 2 months ago by iamrobert.
The following user(s) said Thank You: micker

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

More
9 years 10 months ago #56640 by iamrobert
I was having issues with this. So - I have put together a quick hack here:

github.com/iamrobert/remove-flexicontent-js-css

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.313 seconds
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